Video Capture I
Summary:- My Hardware and Software
- Configuration Files
- Performance Tuning of Hard Drives
- Customizing Bashrc for Xawtv
My Hardware And Software
- 2x750 Intel P3's
- 1 AGP NVIDIA Geforce 32MB DDR
- 3 Western Digital IDE HDD's (two are 66UDMA & the other is a 100UDMA)
- Sblive value card (emu10k1) (using this to record video from)
- PCTV Studio Video Capture Card (bt848 based)
- Mandrake 8.1 (with cooker kernel-smp-2.4.13-4mdk - this version now includes a functional supermount)
- xawtv-3.64-1mdk.src.rpm (v3.60 is included with Mandrake 8.1 & is just fine. No need to upgrade to v3.64)
- xanim-28010-14mdk (This is required for xawtv to playback your recorded video/audio. It does not playback stereo correctly tho.)
rpm ––rebuild ––clean {packagename-version}.src.rpm
optflags: i686 -O9 -march=i686 -mcpu=i686
Configuration Files
~/.xawtv
Just some clippings from my messy config file. Hit Google Groups for some more config options. I'm hoping the author of Xawtv will work allot more config settings into here such as "Default record filename", "Default Movie Driver", and so on. If you know them, let me know. I'm really tired of typing the same options over and over. Also, beware of word wrapping in configuration files posted here.{global} ~#Sound - if your having problems finding the correct channel to record in, do ~#'mixer=mixer' will cause a dump of all the 'valid values' (hint hint) ~#mixer = vol ~#/dev/mixer: available: 'vol' 'bass' 'treble' 'pcm' 'speaker' 'line' 'mic' ~#'cd' 'rec' 'ogain' 'line1' 'line2' 'line3' 'dig1' 'dig2' 'phin' mixer = line freqtab = us-bcast ~#Set the pixsize to the value you record in1.1 ~#pixsize = 128 x 96 ~#pixsize = 640x480 pixsize = 320x240 ~#pixsize = 800x600 pixcols = 1 jpeg-quality = 75 mjpeg-quality = 75 toggle-mouse = 0 keypad-ntsc = yes osd = yes {defaults} norm = NTSC capture = over input = Composite1 ~#input = svideo ~# The following appear to increments of 500's. ignore the 'bright' & ~#'contrast' as i just copied these values & they happen to be ~#correct1.1 bright = 38966 contrast = 44280 ~#up'ed hue & color for my personal video tape hue = 41500 color = 43000
/etc/modules.conf
Here's the REAL MAGIC1.1 Per my hardware system resources, I was able to add a line "gbuffers=8". Once i did so, capturing smooth flowing video was possible. Prior to doing this, I was getting "choppy video & sound". If you get "v4l: waiting for a free buffer" then you may want to experiment with this option. I've also included my sblive line to show that i'm using a video capture card w/o onboard audio.alias sound-slot-0 emu10k1
alias char-major-81 bttv
options bttv gbuffers=8 card=1 tuner=3 radio=0rmmod bttv
modprobe bttv
/etc/X11/XF86Config-4
Only the module section here. May not be really needed if it's already loaded. And with Mandrake 8.0/8.1, I believe it is unless you're using your own XF86Config-4 config file. So, most users can really ignore this part.Section "Module" ~# This loads the DBE extension module. Load "dbe" ~# This loads the miscellaneous extensions module, and disables ~# initialization of the XFree86-DGA extension within that module. ~SubSection "extmod" #Option "omit xfree86-dga" ~EndSubSection ~# This loads the Type1 and ~FreeType font modules Load "type1" Load "freetype" ~# Other Load "glx" Load "dri" Load "GLCore" Load "v4l" Load "bitmap" ~EndSection
Performance Tuning
Refer to the MU article on tuning hard drive performance with 'hdparm'. section indexChecking .bashrc Settings For ~XawTV
You will need to customize the 'xawtv' command to start up with at least-noxv
Add it to the following file including any other switches:
'~/.bashrc'
alias xawtv='xawtv -noxv -parallel 2 -dspdev /dev/dsp -geometry 320x240+35+25 - -bpp 32 -outfile /mnt/winc2/video-captured/ -v 0'
alias xawtv='nice -n-20 xawtv -noxv -parallel 2 -dspdev /dev/dsp -geometery352x240+35+25 -bpp 32 -v 0'
alias cdrecord='nice -n-20 cdrecord'
exec bash -$-
-noxv
I found that this was required on loading xawtv to allow 'record mode'-parallel 2
Dunno. sounds good tho1.1 (maybe it's smp stuff?...lol)-dspdev /dev/dsp
Just in case sblive (your sound device) wasn't detected. (May not be needed)
Related Resources:
man xawtv
~XawTV homepage
The BTTV Mini-HOWTO Revision / Modified: Dec. 18, 2001
Author: Roger Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.
Video Capture I
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!
Mandriva.com
Store
Club

