ffmpegでm3u8ファイル変換時のエラー対応

ffmpegでm3u8を普通のファイルへ変換する際に、以下のエラーが発生した。

[hls @ 0x560cb61609c0] Filename extension of 'xxxxx.key' is not a common multimedia extension, blocked for security reasons.
If you wish to override this adjust allowed_extensions, you can set it to 'ALL' to allow all 

 ファイルの中身にはxxxxx.keyに関する記述は下記のように書かれている。

 #EXT-X-KEY:METHOD=AES-128,URI="xxxxx.key",IV=0x??????????????????????

 該当の行は使用されていないかは不明なため、いろいろffmpegのオプションを調べた。下記のサイトに解決法が書かれている。

http live streaming - ffmpeg how to allow a file extension - Stack Overflow

ffmpegのコマンドで下記のように実行すればよい。

ffmpeg -allowed_extensions ALL -i input.m3u8 -c copy output.ts 

普通のコマンドと異なり、ffmpegではオプションの順番にこだわってるようで、オプションの順番が違うとうまく動かないようだ。