FFmpeg concat
这种方法成功率很高,但是需要 FFmpeg 1.1 以上版本。
先创建一个文本文件 filelist.txt:
file '1.mp4' file '2.mp4' file '3.mp4'
然后:
ffmpeg -f concat -safe 0 -i filelist.txt -c copy concat.mp4
注意:使用 FFmpeg concat 时,如果文件名有奇怪的字符,要在 filelist.txt 中转义。