[MPlayer-users] mencoder and usage of -ss and --endpos to split an avi

Luke Lathrop bryan.lathrop at gmail.com
Mon May 7 16:41:37 CEST 2007


I am trying to break a file into many equally sized pieces, using the
-ss and --endpos, at the same time as reencoding it. Then I put them
back together later.

example command line from script:

mencoder -ss $PARTBEGIN -endpos $PARTSIZE $INPUTFILE -o $OUTPUT.avi
-ovc copy  -oac copy

PARTBEGIN=$((PARTBEGIN+$PARTSIZE))


Trials seem to to show the -ss parameter rounding to the nearest
frame. This leads to the next segment being off, and putting them back
together gets lots of skips around these boudaries. The skips can be
as much as several seconds, depending on the video used.

Is their a more exact way to do this? Is their a way to split them up
at a particular frame instead?

I have tried this method on several types of video (uncompressed avi,
divx, mpeg) and
seen the same results, with uncompressed avi being the only one close
to working.

I appreciate any help!
-- 
Luke Lathrop



More information about the MPlayer-users mailing list