[MPlayer-users] Concatenate avi files

D Richard Felker III dalias at aerifal.cx
Fri Dec 6 21:52:02 CET 2002


On Fri, Dec 06, 2002 at 04:28:22PM +0200, Valentin Cozma wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
> >
> >    cat file1.avi file2.avi > big.avi
> >    mencoder -ovc copy -oac copy -o out.avi -forceidx big.avi
> 
> I understand that at least the header will get messed up.
> What about the rest ? Will the audio/video streams be ok ?
> Thanks.

In practice, the answer is usually yes, but this isn't a 'recommended'
use of mencoder. :) At least be sure the codecs and encoding
parameters are the same between the files. You might get one or two
broken frames right at the merge point, but they'll normally just get
dropped when decoding so it won't be noticable. Hopefully the person
who originally split the movie wasn't so stupid as to cut it at a
point with sound.

Rich




More information about the MPlayer-users mailing list