Command line encoding of an input MPEG2 file into an mp4 format (XViD) in Linux.
# remove conflicting files rm -f divx2pass.log frameno.avi
# rip audio track (bitrate: 192, gain: 0) mencoder -oac mp3lame -lameopts mode=0:cbr:br=192:vol=0 \ -ovc frameno -o frameno.avi [input].mpg
# video track (pass: 1, bitrate: 1800) mencoder -sws 2 -oac copy -ovc lavc -lavcopts \ vcodec=mpeg4:vbitrate=1800:vhq:vpass=1 -ffourcc XVID -vf \ crop=704:560:6:10,scale=720:756 [input].mpg -o /dev/null
# video track (pass: 2, bitrate: 1800) mencoder -sws 2 -oac copy -ovc lavc -lavcopts \ vcodec=mpeg4:vbitrate=1800:vhq:vpass=2 -ffourcc XVID -vf \ crop=704:560:6:10,scale=720:756 [input].mpg -o "[output].avi"
You forgot to muliplex back the audio.
In essence, the first line is redundant
Yes, there are issues with that.
However, the article is quite outdated, I would do it differently already, something like: