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