[https @ 000001a69f0bae00] Protocol 'https' not on whitelist 'file,crypto,data'!

  ffmpeg下载视频并合并到一个视频中,执行如下命令:

ffmpeg -i index.m3u8 -c copy result.mp4

  出现 [https @ 000001a69f0bae00] Protocol 'https' not on whitelist 'file,crypto,data'! 问题,详情如下:

  因fmpeg默认不使用https协议,https协议没有在白名单内,所以无法下载。

  更新协议白名单-protocol_whitelist concat,file,http,https,tcp,tls,crypto,执行如下命令:

ffmpeg -protocol_whitelist concat,file,http,https,tcp,tls,crypto  -i index.m3u8 -c copy result.mp4

  再次执行命令,详情如下:

0
 
posted @ 2023-12-03 09:33  无虑的小猪  阅读(242)  评论(0编辑  收藏  举报