Joining video files in Ubuntu

I've been tidying up some video's that were taken on my camera and wanted to merge the short snippets of video so I could convert them to DVD for easy family viewing.

A quick google turned up the relevant details:

Ensure you have mplayer & mencoder installed

sudo apt-get install mencoder mplayer

Merge the files together

cat video1.avi video2.avi video3.avi > merged.avi

Reindex the audio and video

mencoder -forceidx -oac copy -ovc copy merged.avi -o merged_final.avi

All done - if you want to convert it to a DVD check out HOWTO Create DVD's from AVI's on Ubuntu.

Thanks to the good folk at ArsGeek for the tip.

Related Blog Entries

Comments
misterniark's Gravatar cat video[0-9].avi > merged.avi

is better and faster

if you are more ten video you can try :
cat video[0-9][0-9].avi > merged.avi

thanks for the Reindex the audio and video tips

Misterniark
# Posted By misterniark | 1/12/08 11:57 AM
ikaruga's Gravatar I'm not even sure if you need to use cat at all....

mencoder -forceidx -oac copy -ovc copy video01.avi video02.avi video03.avi -o merged_final.avi

should work....
# Posted By ikaruga | 1/23/08 2:45 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.