ffmpeg合并多个视频文件

  • 其他
  • 2023-04-29
  • 428 已阅读
  • 作者: huwhois
  • 来源:
   
简介从某站下载的流媒体视频, 使用 ffmpeg 合并.

1. 编辑文件目录文件 files.txt

file '/test/01.mp4'
file '/test/02.mp4'
file '/test/03.mp4'
file '/test/04.mp4'
file '/test/05.mp4'
file '/test/06.mp4'
file '/test/07.mp4'
file '/test/08.mp4'
file '/test/09.mp4'
file '/test/10.mp4'
file '/test/11.mp4'
file '/test/12.mp4'

2. 使用 ffmpeg 合并

ffmpeg.exe -f concat -safe 0 -i files.txt -c copy -y o1.mp4

-f concat 是指合并

-safe 为了避免权限报错

-c copy 一定要指定,不然会重新封装,数据文件就会变大。

很赞哦! ( 0 )