[wellylug] DSE & Linux

David Antliff dave.antliff at paradise.net.nz
Tue Apr 20 23:08:21 NZST 2004


On Tue, 20 Apr 2004, Pizbit wrote:
> Don't suppose you could share how you use mencoder to record and encode video
> from tv? I found a few examples using google not too long ago but none of them
> seemed to work for me.

Here's a few command lines I've used recently:

mencoder -tv channels=1:driver=v4l2:width=640:height=480:input=0:device=/dev/video0 tv:// -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 -oac mp3lame  -lameopts cbr:br=128 -vf pp=fd -o tv.avi

mencoder -tv driver=v4l2:width=640:height=480:input=0:device=/dev/video0 tv:// -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:vhq:vqmin=2 -oac  mp3lame -lameopts cbr:br=128 -vf pp=fd -o tv2.avi

mencoder -tv driver=v4l2:width=320:height=240:input=0:device=/dev/video0 tv:// -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:vhq:vqmin=2 -oac mp3lame -lameopts cbr:br=128 -vf pp=fd -o prime.avi

mencoder -tv driver=v4l2:width=640:height=480:input=0:device=/dev/video0 tv:// -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200:vhq:vqmin=2 -oac mp3lame -lameopts cbr:br=128 -vf pp=fd -endpos 03:10:00 -o prime.avi

Pick-n-mix! :)

You can use pp=lb instead for similar results. Also, smaller size requires
less CPU cycles of course. Turn off ntpd when using mencoder, it messes
the timing up.

-- 
David.




More information about the wellylug mailing list