All you never wanted to know

View on GitHub
:new: 2010-03-02 :wavy_dash: :up: 2010-03-02

Merge Video Files

To merge multiple (similar) video files into one big file, there are different ways.


This only works with avi files. avimerge is part of the transcode-utils package.

avimerge -o output.avi -i file1.avi file2.avi file3.avi fileN.avi

If the sound doesn’t match from the second file on, use the -c switch.

Check your files after merging! If you have no audio near the end of the final video file, use mencoder below.


This should also work with mpg videos. Install the mencoder package.

mencoder -oac copy -ovc copy file1.avi file2.avi file3.avi fileN.avi -o output.avi