How to join multiple .avi or .mpg files

Imagine that you for some reason end up having several files, such as,, and so on. How do you then join them up into one big avi file? The answer is actually pretty simple – cat and mencoder.

Do the following if you don’t have mencoder installed:

# yum install mencoder mplayer


$ cat >

That’s pretty much it, but there’s one final step before it’s done.

$ mencoder -forceidx -oac copy -ovc copy -o

And you’re done. :)