[MPlayer-users] mencoder -endpos <size>mb does not work, neither does mplayer -sb XXXXX -dumpstream

Nico Sabbi nicola_sabbi at fastwebnet.it
Mon Jan 2 23:42:35 CET 2006


Jouni.Lohikoski at iki.fi wrote:

>I am trying to split WMV (ASF) to two working video files without
>needing to re-encode anything.
>
>1)
>Why following (mencoder commandline) does not work as expected?
>
>$ du -sh video1.wmv
>540M video1.wmv
>
>$ mencoder -ovc copy -oac copy -endpos 391mb video1.wmv -mc 0 -noskip -o video2.wmv
>  
>

-endpos takes a TIME value, not size

>$ du -sh video2.wmv
>52M video2.wmv
>
>So only 52 MiB and not 391 MiB which was asked with -endpos!
>
>I believe it is because mencoder knows only AVI and MPEG container, and
>neither of them support variable FPS as ASF (WMV) files does?
>  
>
unrelated

>If I use -ofps 25, it kind of seem to work, but what if WMV has variable
>frame rate somewhere middle of the video. I really do not know if it has
>or not, or what would be the true average frame rate even. Will it brake
>the video file when framerate actually in the WMV is something else but
>25, maybe variable, and I am forcing to be 25 FPS?
>
>Is there any way to tell mencoder just copy everything like dd would?
>Oh yes I could use dd, but it is not "nice" for the end of the video.
>
>I would use mplayer -streamdump, but mplayer doesn't support -endpos
>
>2)
>And then the rest of the video:
>$ mplayer  -sb 409993216 video1.wmv -dumpstream -dumpfile video3.wmv
>$ du -sh video3.wmv
>149M video3.wmv
>
>Kind of seem to work if comparing the file size. (391M + 149M = 540M)
>
>But mplayer doesn't know how to show this video3.wmv then:
>  
>


 wmv is seekable, use the first approach




More information about the MPlayer-users mailing list