Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg how to allow a 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 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

like image 812
Juddy Avatar asked Jun 11 '17 16:06

Juddy


People also ask

What is the FFmpeg file extension?

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.

How to select the output format of each frame with ffmpeg?

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:

How do I download and install FFmpeg?

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.

How to preserve quality of a video file using FFmpeg?

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.


2 Answers

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

ffmpeg -allowed_extensions ALL -i "C:\streamingtest.m3u8" -c copy "test.ts"
like image 170
Gyan Avatar answered Sep 23 '22 12:09

Gyan


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

like image 21
2 revs, 2 users 80% Avatar answered Sep 26 '22 12:09

2 revs, 2 users 80%