17

New ffmpeg version check for file extension due to security issue in ffmpeg.org that use #EXT-X-KEY:METHOD=AES-128

since the key usually doesn't use file extension or use *.key extension so example

ffmpeg -i "C:\streamingtest.m3u8" -c copy "test.ts"

inside the m3u8 I have :

#EXT-X-KEY:METHOD=AES-128,URI="C:/keytest.key"

And ffmpeg will spew an error

[hls,applehttp @ 0000000000dc6460] Filename extension of 'C:/keytest.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 Unable to open key file c:/keytest.key

But it doesn't explain how to use the ALL options in allowed_extensions

So how do i allow key extension in ffmpeg or allow all extension

Thanks

Ali
  • 3,373
  • 5
  • 42
  • 54
Juddy
  • 173
  • 1
  • 1
  • 6

2 Answers2

30

It's a private option of the HLS demuxer, so

ffmpeg -allowed_extensions ALL -i "C:\streamingtest.m3u8" -c copy "test.ts"
Gyan
  • 85,394
  • 9
  • 169
  • 201
1

I think this is directive for the player -allowed_extensions

try the following:

ffplay -allowed_extensions ALL index.m3u8

it is working form me with the key stored in the local folder

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73
user2308728
  • 91
  • 1
  • 2