how to join movie files
Examples
mencoder ./a.avi ./b.avi -oac copy -ovc copy -o joined.avi
Basically, there are three sets of parameters, in whatever order..
1) a list of files to join (paths)
2) -o the name of the output file (path)
3) settings for how to deal with audio (-oac) and video (-ovc)
There are a lot more settings then this, for that please see man mencoder.