Joining two Ogg Theora FilesIf you want to quickly join two Ogg Theora video files then you can simply use the Linux command cat cat'cat' is short for concatenate which is rather a lengthy English word meaning to 'join together'. It might have been easier if they called the command 'join' - evidence that he minds of Linux gurus are mysterious and complex things. So if you have two .ogg files, for this example lets say they are called 'file1.ogg' and 'file2.ogg', then you can join ('concatenate') them by using the following command:
cat file1.ogg file2.ogg > output.ogg
A word of warning about this method : this may not work for replaying the joined file with some players. The problem is that this is not the right way to do it. Its a quick hack that might work. The reason it might not work for some players is that Ogg Theora video files have timestamps in them and some players rely on these timestamps so they can replay the content properly. If you just join the files using cat then the timestamps are not correctly altered and the players may throw errors. So check it before you come to rely on it. oggCat, a small command line tool from the Ogg Video Tools provide a better way to concatenate ogg video tools.
|