Split a Media Video File (AVI, FLV,...) using Mencoder and Mplayer
Mencoder is a movie encoder program that allows us to split a media video(e.g AVI) file into several AVI files.
We are going to split a media video file maintaining same video and audio codecs.
As mencoder accepts other file formats than avi files, we will be able to split them too, but result will be avi files.
SPLIT ONE FILE INTO TWO
E.g: We are going to split foo.avi file into foo1.avi(600 seconds long) and remaining length in foo2.avi.
Following mencoder man page advice, we could try these options:
$ mencoder foo.avi -o foo1.avi -oac copy -ovc copy -endpos 600
$ mencoder foo.avi -o foo3.avi -oac copy -ovc copy -ss 600
mencoder options: