4 PASS1_OPTS="-mc 0 -oac mp3lame -lameopts cbr:cbr=196 -ffourcc XVID -fps 29.97 "
5 PASS1_OPTS="$PASS1_OPTS -ovc xvid -xvidencopts me_quality=0:vhq=0:pass=1:bitrate=$BITRATE"
6 PASS2_OPTS="-mc 0 -oac mp3lame -lameopts cbr:cbr=196 -ffourcc XVID -fps 29.97 "
7 PASS2_OPTS="$PASS2_OPTS -ovc xvid -xvidencopts me_quality=6:vhq=3:pass=2:bitrate=$BITRATE"
9 OUTFILE=`echo $* | sed 's/\.avi/\.xvid.avi/g'`
12 echo "-> 1st pass: /usr/bin/mencoder $PASS1_OPTS -o \"$OUTFILE\" -idx \"$INFILE\""
13 /usr/bin/mencoder $PASS1_OPTS -o "$OUTFILE" -idx "$INFILE"
15 echo "-> 2nd pasS: /usr/bin/mencoder $PASS2_OPTS -o \"$OUTFILE\" -idx \"$INFILE\""
16 /usr/bin/mencoder $PASS2_OPTS -o "$OUTFILE" -idx "$INFILE"