Everybody loves DIVX/XVID .avi files. Here’s a couple of useful tips when dealing with them. You may want to join together two halves or split a large video file into multiple, smaller files for easier handling between storage devices.
MERGING AVI FILES
install transcode (sudo apt-get install transcode)
avimerge -o merged.avi -i part1.avi part2.avi
Its as simple as that.
SPLITTING AVI FILES
To split a file into two pieces, install mencoder (sudo apt-get install mencoder) and execute the following commands:
mencoder -endpos 01:00:00 -ovc copy -oac copy movie.avi -o first_half.avi
mencoder -ss 01:00:00 -oac copy -ovc copy movie.avi -o second_half.avi
Done!