ffmpeg 下载转换
2024年1月3日
预计阅读:1min
转换为MP4格式
ffmpeg -i xxx.m3u8 -vcodec copy -acodec copy xxx.mp4
多个ts文件合并mp4
- 创建一个文本文件
filelist.txt
,列出所有要合并的 .ts 文件的路径。每行一个文件路径。 - file data/0.ts
- file data/1.ts
- file data/2.ts
- file data/3.ts
- file data/4.ts
- …
合并文件:
ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4
参数解释:
- -f concat:指定输入文件是使用 concat 协议。
- -safe 0:允许使用绝对路径或相对路径。
- -i filelist.txt:指定包含文件列表的文本文件。
- -c copy:使用复制编码,不对视频进行重新编码,以保持原有质量。
- output.mp4:指定输出文件的名称。
在线下载
http://tools.bugscaner.com/m3u8.html