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
Found 35 file extension associations related to FFmpeg and 6 file formats developed specifically for use with FFmpeg. FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.
You can select the output format of each frame with ffmpeg by specifying the audio and video codec and format. For example to compute the CRC of the input audio converted to PCM unsigned 8-bit and the input video converted to MPEG-2 video, use the command:
Here's how: Right-click the Windows/Start button and select File Explorer. Click the Downloads folder in the left panel (you may have to click This PC first to find it). Right-click ffmpeg-*-git-*full_build.7z (the file name will vary depending on the current release). Select Extract Here and wait for the files to extract.
If you want to preserve the quality of your source video file, use '-qscale 0' parameter: To check list of supported formats by FFmpeg, run: 3. Converting video files to audio files To convert a video file to audio file, just specify the output format as .mp3, or .ogg, or any other audio formats.
It's a private option of the HLS demuxer, so
ffmpeg -allowed_extensions ALL -i "C:\streamingtest.m3u8" -c copy "test.ts"
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With