- ffmpeg compiled with libx264 and libvorbis. Even ffmpeg without libx264 and libvorbis will do with minor changes to the source code.
- Python 2.7 (Tested on Python 2.7.1, running on Mac OSX Lion)
- A shell containing the 'cat' command. (Preferably the BASH Shell)
- Make sure that you have ample free space on your drive as the conversion from mp4 to mpg increases the file size by a large factor.
- It is discouraged to merge more than 3-4 mp4's at a time.
- Copy the code into an empty text file and give it a name, say "JoinMP4.py"
- Execute
chmod u+x /PATH/TO/JoinMP4.py
in the BASH shell, giving the path to the created JoinMP4.py. - Execute the python script by
./JoinMP4.py
I'm getting the following error -