[MPlayer-users] re:Recording with mencoder

Lee Jones slothpuck at gmail.com
Mon Mar 14 12:43:07 CET 2005


Hi,

Thanks for all the replies, btw here is my scriptfile I'm using
(almost as a sort of simple video recorder!) ;

<----

#!/bin/sh
echo " "
echo "enter filename (e.g. out.avi)"
read name1
echo " "
echo "enter video quality (e.g. 32=low,1000=high)"
read quality
echo " "
echo "enter size (e.g. 352:288, 256:192, 768:576 etc)"
read size
echo " "
echo "enter audio quality (e.g. 48)"
read aquality
echo " "
echo "enter recording time (e.g. HH:MM:SS or 100mb)"
read rectime

if [ "$name1" = "" ]
then
 name1="out.avi"
fi

if [ "$quality" = "" ]
then
 quality=768
fi

if [ "$size" = "" ]
then
 size=352:288
fi

if [ "$aquality" = "" ]
then
 aquality=64
fi

echo " "
echo "--"
echo "Filename        : $name1"
echo "Video quality   : $quality"
echo "Size            : $size"
echo "Audio quality   : $aquality"
echo "Rec. time       : $rectime"
echo "--"
echo " "

if [ "$rectime" = "" ]
then
mencoder -tv input=1:driver=v4l:width=768:height=576 -ovc lavc
-lavcopts vcodec=mpeg4:vbitrate=$quality:vhq:vqmax=31:keyint=300 -oac
mp3lame -lameopts cbr:br=$aquality -vf scale=$size -sws 1 -o $name1
tv://
fi

mencoder -tv input=1:driver=v4l:width=768:height=576 -ovc lavc
-lavcopts vcodec=mpeg4:vbitrate=$quality:vhq:vqmax=31:keyint=300 -oac
mp3lame -lameopts cbr:br=$aquality -vf scale=$size -sws 1 -o $name1
tv:// -endpos $rectime

---->

I wasn't sure how to use the deinterlacer, and I didn't know about
mbd=2(!) Ooop!

ljones




More information about the MPlayer-users mailing list