This little tutorial shows how to join multiple avi files (or almost any other container) into a single sync'ed file using mencoderI am going to be using the CLI for this tutorial - its faster anyway :001_tt2:
Step oneLets get the right programs
Step twoNow that the hard part is out of the way, we’re going to make use of the wonderful cat command. I've renamed each video as b1.avi – b7.avi. Now to string them all end to end.
sudo apt-get install mencoder mplayer
Step threeNow we’re 2/3 of the way there! Stringing together .avi files can cause a breakdown in the sync between video and sound. So, we’ll use mencoder to sort things out. (subsequently, you can use this tool to resync any avi that is out of sync)
cat b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi > movie.avi
That’s it! You’ve got one contiguous .avi file. This will of course work with other .avi files. It will also work with .mpg or .mpeg files as well.
mencoder -forceidx -oac copy -ovc copy movie.avi -o movie_final.avi