[MPlayer-users] how to convert wmv to mpeg2

Jouni.Lohikoski@iki.fi jlohikos at cc.hut.fi
Mon Aug 15 10:42:41 CEST 2005


As the question and thread is still open, I ask in the same time, why
you can't join several similar (same resolution, same codecs, ...) wmv-files
together with mencoder? (or not even mpeg1/2-files)

When played: 
    mplayer [-fs] 1.wmv 2.wmv 3.wmv
...it works.

But when converting:
    mencoder -ovc lavc -oac copy -lavcopts vcodec=mpeg4:vbitrate=500
      -ofps 24 -o test.avi 1.wmv 2.wmv 3.wmv
....it usually hangs in some stage and has to kill -9'ed to stop it.

Ofcourse mplayer just restarts new video feed between every file and our
brain can join them seamesly, but couldn't mencoder handle wmv-files
just as streams where between the files there has been stream error
(like missing UDP packets)?

Also just joining plain MPEG1/2 files does not work:

OPTS="-ovc lavc -oac topy -lavciots vcodec=mpeg4:vbitrate=500"
    mencoder <OPTS> -o test.avi 1.mpg 2.mpg 3.mpg

Neither following work, A-V sync is usually f'd up or somehow the video
content of the first file is not encoded at all:
    cat 1.mpg 2.mpg 3.mpg | mencoder <OPTS> -o test.avi -

This works:
    mpgtx -o test.mpg -j 1.mpg 2.mpg 3.mpg
    mencoder <OPTS> -o test.avi test.mpg 

So with a help of mpgtx, several (enough similar) MPEG1/2 files can be
joined, but how to join and encode to MPEG4 several WMV files with
mencoder?




More information about the MPlayer-users mailing list