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: