Recently I have been working with a list of video files for JSecademy, and I don’t have the luxury of sitting down for hours at a time and editing every single little small part of a video. MP4Box allows you to stitch two or more videos together to have a final output of a file.
First, you have to Install MP4Box on your operating system.
This is important if you want to have a pre-roll and a post-roll for your videos.
You might be able to do a mid-role if you know where exactly you want to split the video.
Now onto the next part actually merging the files together.
MP4Box -cat 1.mp4 -cat 2.mp4 -new 3.mp4
In the example above the flag the flag
-cat is used along with
-new. The cat flag denotes that the files will be concatenated together and the new flag is the new file that will be created based on the two previous files.
You can find a complete list of all the flags that are possible with MP4Box.
That’s all there is to merging two files together. One note the transition between the videos are hard stops, meaning you will jump from one clip to another instantly.
Till Next Time,