使用ffmpeg合并多个视频文件

发布时间:2021-05-18编辑:佚名阅读(950)

ffmpeg开源免费

方法1、直接写文件名,使用“|”来分割:

ffmpeg -i "concat:1.ts|2.ts|3.ts|" -c copy output.ts

方法2、先编辑一个txt的文本文件,其中罗列了需要合并的子文件路径和名称:

ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.ts

filelist.txt的内容:

file  'D:\1.ts'
file  'D:\2.ts'
file  'D:\3.ts'

注意:为了防止出现“Unsafe file name 'D:\1.ts' filelist.txt: Operation not permitted” 必须在命令中加入“-safe 0”

  关键字:ffmpeg合并视频文件


鼓掌

0

正能量

0

0

呵呵

0


评论区