Why does ffmpeg ignore protocol_whitelist flag when converting https m3u8 stream?

前端 未结 1 1244
Happy的楠姐
Happy的楠姐 2021-02-07 00:57

I am attempting to download and convert an m3u8 stream to mp4 using ffmpeg. The command I first tried was

ffmpeg -i MIE.m3u8 -c copy -bsf:a aac_adtstoasc -safe 0         


        
1条回答
  •  粉色の甜心
    2021-02-07 01:43

    protocol_whitelist is a parameter only on the input file (in your case, MIE.m3u8), so it must be specified before the input in your command.

    Specify -protocol_whitelist file,http,https,tcp,tls prior to -i and it'll work as you expect:

    ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i MIE.m3u8 -c copy -bsf:a aac_adtstoasc MIE.mp4
    

    You can a similar case on a Debian Bugs discussion board, and read up more on the syntax of ffmpeg commands.

    0 讨论(0)
提交回复
热议问题