Monday, September 04, 2006

mencoder tv

my mencoder v4l tv recording command:

tvopts="driver=v4l:outfmt=i420:width=512:height=384:freq=$freq:amode=0:forcechan=1"
vbr=500
filter="pp=hb/vb/dr/al:a"
mencoder -tv "$tvopts" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$vbr -oac pcm -o $file -vf $filter tv://

you'll need to specify $file and $freq

i then convert the audio with mencoder -ovc copy -oac mp3lame -lameopts q=8:mode=3 -o mp3_$1 $1