[MEncoder-users] splitting mpegs

Giacomo Comes comes at naic.edu
Wed Sep 26 13:59:09 CEST 2007


On Wed, Sep 26, 2007 at 11:25:50AM +0100, Ross Clement wrote:
> On 9/25/07, Giacomo Comes <comes at naic.edu> wrote:
> 
> > That's not easy to do with mencoder.
> > You can try the script encode2mpeglight in the TOOLS directory of
> > the MPlayer source.
> >
> > encode2mpeglight -o <name> -encode 0:0:1 -dvd show.mpg -split <size im MB>
> >
> > It may take some time to process the 6GB file.
> > Better test encode2mpeglight with a smaller file first
> > (a 100MB source file to split in 40MB chunks for example).
> 
> 
> I'm sure I am showing my ignorance here. But why can't the original poster
> do a:
> 
> mencoder source.whatever -ovc copy -oac copy -ss 528(*) -frames 25000(*) -o
> partN.whatever
> 
> (*) Choosing start times and number of frames in order to get each chunk
> being from the right time and length.
> 
> This would take a long while, and require some hand-calculation of start
> times and frame numbers. But otherwise, it would work. Wouldn't it?

Two remarks.

1) the hand-calculation is the most difficult part of the process. There is
no magic formula that will give you the agruments of -ss and -frames.
Other tools (like mpeg2enc/mplex) allows you to specify directly the
size of the chunk, mencoder doesn't.


2) your command line is good if you want to copy to avi, for mpegs
you need to use more options.

Giacomo



More information about the MEncoder-users mailing list