ffmpegでm3u8ファイルのURLを処理する際のエラー対応

ffmpegでURL付きのm3u8ファイルを処理する際に、

[https @ 0x55941b4b6f00] Protocol 'https' not on whitelist 'file,crypto,data'!

というエラーが発生した。

いろいろ調べたら、

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

に対応策が書かれている。

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i m3u8ファイル -c copy 出力ファイル

のコマンドで処理できる。

最初からhttpとhttpsをwhitelistに入れてほしい。