Howto convert video files using mencoder
From How2s
Translate Video (e.g. windows DV AVI) to XVID AVI (2-pass encoding)
in this example:
Video: Windows DV --> XVID AVI (2-pass)
Audio: noncompressed AVI sound --> mp3 vbr 3 128kbps
| video (-ovc) | audio (-oac) # mencoder source.avi -o newname.avi -ovc xvid -xvidencopts pass=1 -oac mp3lame -lameopts vbr=3 -aid 128 # mencoder source.avi -o newname.avi -ovc xvid -xvidencopts pass=2:bitrate=1400 -oac mp3lame -lameopts vbr=3 -aid 128
some more options:
to retain the existing audio steam
-oac copy
to use en external audio file (mp3, wav, ogg) as the audio of the new generated avi:
-audiofile <filename>
to retain the existing video stream
-ovc copy

