- Create a file named
FileList.txt
with the content:
file full/path/to/Video001.mp4
file full/path/to/Video002.mp4
file full/path/to/Video003.mp4
.
.
.
file full/path/to/Video030.mp4
One could use the full path instead
2. Run ffmpeg -f concat -safe 0 -i FileList.txt -c copy MergedFile.mp4
.
3. In case of the error Could not find tag for codec pcm_alaw in stream #1
or something related to PCM audio, know that FFMPEG
can't generate an MP4
file with PCM
audio. Hence chose another container: ffmpeg -f concat -safe 0 -i FileList.txt -c copy MergedFile.mkv
or encode the audio: ffmpeg -f concat -safe 0 -i FileList.txt -c:v copy -c:a aac MergedFile.mkv
.
Remark
The answer is based on: