IN file avi OUT file mpeg to resize etc uncomment extra -noskip -endpo

1
2
3
4
5
6
7
8
9
IN=file.avi
OUT=file.mpeg
# to resize etc uncomment:
#extra="-noskip -endpos 150 "
#vfs="-vf crop=690:565:20:10,pp=fd/hb/vb,hqdn3d=9:8:9:8,scale=640:480:0:0:0.00:0.75,scale=688:384:0:0:0.00:0.75,dsize=688/384"
bitrate=900
mencoder $extra -oac copy -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=$bitrate:vhq:keyint=250:vpass=1 -o /dev/null "${IN}"
mencoder $extra -oac copy -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=$bitrate:vhq:keyint=250:vpass=2 -o "${OUT}" "${IN}"