[MEncoder-users] Splitting video chunks at a given size

Federico 'Phate' Pistono fppain at gmail.com
Thu May 10 12:38:53 CEST 2007


Hi,
I've been trying to do some tests in splitting video files, I'm using
MPlayer dev-SVN-r22338-3.3.4.

>From the man:
−endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see −ss and −sb)
              Stop at given time or byte position.
              NOTE: Byte position is enabled only for MEncoder and will not be
              accurate, as it can only stop at a frame boundary.  When used in
              conjunction with −ss option, −endpos time will shift forward  by
              seconds specified with −ss.

              EXAMPLE:
                 −endpos 56
                      Stop at 56 seconds.
                 −endpos 01:10:00
                      Stop at 1 hour 10 minutes.
                 −ss 10 −endpos 56
                      Stop at 1 minute 6 seconds.
                 −endpos 100mb
                      Encode only 100 MB.

Now, suppose I do something like this:

mencoder kiwi.avi -ovc copy -oac copy -forceidx -ss 0b -endpos
1000000b -o kiwi.avi.0

it works pretty much:
7458658 2007-05-09 15:28 kiwi.avi
1035608 2007-05-10 12:33 kiwi.avi.0

But if I had to create the next piece I would need a time position for
the -ss option, which is not what I want. I'd like to be able to split
a file every MB (approximately), or at least in some small chunks
pretty much of the same size.

I also noticed:
AVI: Generated index table for 12964 chunks!

Is it possible to split the video file depending from the number of
chunks generated by the index table? Let's say "Split the video and
regenerate the index every 2000 chunks" aut similia.

Is is possible?
Thanks,
-- 
Federico Pistono   Department of Computer Science - Verona, Italy
Linux Registered User #340392

http://pain.altervista.org
http://www.federicopistono.org
http://studentiunivr.wordpress.com
http://todayitypedongoogle.wordpress.com

> "I can't afford to be sick, so I'm just gonna plow through it. I'm gonna get wasted tonight. You know, alcohol kills bacteria.'"
> "Mmm-hmm. So does bleach, why don't you drink that?"



More information about the MEncoder-users mailing list