Concatenating the MP4/MPEG Video isn’t the same as merging pure data files – as MP4/MPEG video files contain header information.
We can do this via FFMPEG, see this for instance:
1 | ffmpeg -f concat -safe 0 -i 'videos.lst' -c copy 'output.mp4' |
ffmpeg -f concat -safe 0 -i 'videos.lst' -c copy 'output.mp4'
For the videos.lst it lists each video file segment line by line:
file 1.mp4 file 2.mp4 file 3.mp4 ...