How to combine multiple video or audio files

There are multiple ways to combine or join two video.

=mencoder= These methods using mencoder should work with any file type. they have been tested for avi and mpg files

Method 1

 * mencoder -oac copy -ovc copy file1 file2 file3 … -o final_movie.mpg

Method 2

 * 1) cat file1 file2 file3 ... > final_movie.mpg
 * 2) mencoder -forceidx -oac copy -ovc copy final_movie.mpg -o final_movie.mpg

=References=
 * http://www.arsgeek.com/?p=435 How to join multiple .avi or .mpg files]

From HowTo Wiki, a Wikia wiki.