Sometimes I need to concatenate several mp4 files together. ffmpeg is a good tool for this job.
On OSX, it's easy to install using Homebrew:
If you have MP4 files, these could be losslessly concatenated by first transcoding them to mpeg transport streams.
Source – https://trac.ffmpeg.org/wiki/Concatenate
Say we have 2 mp4 files to concatenate or join together, first we transcode each of these into an intermediate format:
After that we can concatenate these together using the following:
For more files, just pipe separate the additional files here: