Hi all....Just posting this command for future reference and future
googlers.
A simple command template for TV capturing from a USB capture card.
Very easy to modify.
Uses V4L2 (Video 4 Linux version2), Ubuntu 8.04 and, in this instance,
an old Dazzle DV90 USB capture card, bought for $10 at a car boot sale
on the weekend. Fortunately for me V4L2 has the DV90 on its supported
hardware list.
Have viewed the output avi file using both vlc and mplayer and it
looks okay.
sudo nice --10 mencoder tv:// -v -tv
driver=v4l2:width=720:height=576:input=0:device=/dev/video0:adevice=/
dev/dsp1:immediatemode=0:forceaudio -o outputfile.avi -ovc lavc -
lavcopts vcodec=mpeg4:aspect=4/3 -aspect 4:3 -oac mp3lame -lameopts
cbr:br=128 -endpos 00:00:20
sudo nice --10
give this process high priority
mencoder tv://
expect tv input
-v
verbose
-tv driver=v4l2
use Video 4 Linux version 2
width/height dimensions
not too sure if it's 720x576 or 768x576 for PAL
If you get dropped frames make it 640x480
input=0
PAL=0, NTSC=1
device=/dev/video0:adevice=/dev/dsp1
video and audio input devices
'cat /proc/asound/pcm' will determine audio device
immediatemode=0
buffer audio and video together (normally default)
forceaudio
only way I could get the audio to work
-o outputfile.avi
path to output file
-ovc lavc
output video codec is a libavcodec
-lavcopts vcodec=mpeg4:aspect=4/3 -aspect 4:3
lavc options mpeg4 (divx), encode apect ratio to file
-oac mp3lame
output audio codec is mp3lame
-lameopts cbr:br=128
lame options - mp3 output constant bit rate of 128kb/s
-endpos 00:00:20
record for twenty seconds then exit
|