FFMpeg 无损合并多个视频

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 中转义。

 

posted @ 2021-08-09 14:43  kjcy8  阅读(349)  评论(0编辑  收藏  举报