[MPlayer-users] Re: Question on "trans-coding" with mencoder...

Rainer Hantsch rainer at hantsch.co.at
Wed Aug 20 07:40:55 CEST 2003


I let a conversion run over night as you recommended:

1.  Concatenating both parts into one big mpg file
    cat part1.mpg part2.mpg > complete.mpg

2.  Extracting the audio track as-is (because it is already MP3):
    mencoder complete.mpg -ovc frameno -oac copy -o frameno.avi

3.  Doing the first pass of video conversion:
    mencoder $ori -oac copy -ovc lavc \
    -lavcopts vcodec=mpeg4:vpass=1:vbitrate=2100 \
    -o /dev/null -vop scale=720:540 -sws 2

4.  Doing the second pass of video conversion:
    mencoder $ori -oac copy -ovc lavc \
    -lavcopts vcodec=mpeg4:vpass=2:vbitrate=2100 \
    -o final.avi -vop scale=720:540 -sws 2

What I got is an AVI file which can be played with gmplayer only with option
-idx (otherwise I cannot skip scenes), while XINE can skip forward/backward
without problems.

But as I experienced with other similar done conversions too, it happens
with some files that synchronization is lost when the point of concatenation
is reached.

Is the above procedure (about how I convert) correct, or should I do something


  Ing. Rainer Hantsch

More information about the MPlayer-users mailing list