[MPlayer-users] re:Recording with mencoder

Kichigai Mentat kichigai at comcast.net
Mon Mar 14 22:05:18 CET 2005


On Mar 14, 2005, at 05.43, Lee Jones wrote:

> 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
>
OK, that looks pretty good, except for the scaling. A more efficient 
way of handling it is changing the width settings and such up at the 
-tv option. But, we would need to know the numbers you put in there for 
video quality before we can tell you much more about this.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users

The price of seeking to force our beliefs on others is that someday 
they might force their beliefs on us.
-- Mario Cuomo




More information about the MPlayer-users mailing list