[HowTo] Join Audio Or Video Files In Ubuntu

Sometimes you want to join a couple of files into 1 file. You can do that really easily in Ubuntu or any Linux. But in this case I will show it in Ubuntu only, since my PC is using Ubuntu. You can join files with the “cat” command. What file types can be joined with this command? Well as far as I know you can join text files, audio files and video files. Haven’t tried other files like ISO files. If you try it and succeed please let me know by leaving a comment.

Well the “cat” command is really useful. I use it a lot for joining text files. But for now I want to show you how to join audio files or video files. Here is the command format:

cat file1 file2 file3 > joinedfile

Example of joining audio files:

cat audio1.mp3 audio2.mp3 > compiled.mp3

Example of joining video files:

cat video1.mpg video2.mpg > compiled.mpg

Please be careful if you are joining a large file, it will take many resources and may make your system freeze. So please make sure your resources are sufficient. You can see how to use the “cat” command by typing:

cat --help

or

man cat

PS: you can join video files by using mencoder too, here is the example:

mencoder -oac copy -o joined.mpeg movie1.mpeg movie2.mpeg