下载m3u8文件
ffmpeg -i "http://www.example.com/index.m3u8" -c copy out.ts
合并ts文件
ffmpeg -f concat -i filelist.txt -acodec copy -vcodec copy -absf acc_adtstoasc output.mp4
filelist.txt里的内容如
file 'file001.ts'
file 'file002.ts'
file 'file003.ts'
本文介绍使用ffmpeg工具下载M3U8格式的流媒体文件,并将其转换为TS格式,最后将多个TS文件合并成一个MP4文件的方法。通过具体的命令行示例,展示了如何操作和配置参数。
下载m3u8文件
ffmpeg -i "http://www.example.com/index.m3u8" -c copy out.ts
合并ts文件
ffmpeg -f concat -i filelist.txt -acodec copy -vcodec copy -absf acc_adtstoasc output.mp4
filelist.txt里的内容如
file 'file001.ts'
file 'file002.ts'
file 'file003.ts'
转载于:https://my.oschina.net/diguo2046/blog/3006147
3424
3101
1460
4768

被折叠的 条评论
为什么被折叠?