Ffmpeg how to allow file extension

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 does not use the file extension or uses the * .key extension therefore the example

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

inside m3u8 I have:

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

And ffmpeg will throw an error

[hls, applehttp @ 0000000000dc6460] The file name extension "C: /keytest.key" is not a common multimedia extension that is blocked for security reasons. If you want to override this allowed_extensions setting, you can set it to "ALL" to allow all invalid open key file c: /keytest.key

But he does not explain how to use ALL options in permitted_ instances

So how do I enable key extension in ffmpeg or allow all extensions

thanks

+5
source share
1 answer

This is a private version of the HLS demultiplayer, therefore

 ffmpeg -allowed_extensions ALL -i "C:\streamingtest.m3u8" -c copy "test.ts" 
+6
source

Source: https://habr.com/ru/post/1268751/


All Articles