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

Step one: Lets get the right programs.
HTML Code:
sudo apt-get install mencoder mplayer
Step two: Now 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.
HTML Code:
cat b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi > movie.avi
Step three: Now 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).
HTML Code:
mencoder -forceidx -oac copy -ovc copy movie.avi -o movie_final.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.