ffmpeg如何允许文件扩展名
ffmpeg how to allow a file extension
由于安全问题,新的 ffmpeg 版本检查文件扩展名
in ffmpeg.org 使用 #EXT-X-KEY:METHOD=AES-128
因为密钥通常不使用文件扩展名或使用 *.key 扩展名
例如
ffmpeg -i "C:\streamingtest.m3u8" -c copy "test.ts"
在我的 m3u8 中:
#EXT-X-KEY:METHOD=AES-128,URI="C:/keytest.key"
而且 ffmpeg 会报错
[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
但它没有解释如何使用 allowed_extensions
中的 ALL 选项
那么我如何在 ffmpeg 中允许密钥扩展或允许所有扩展
谢谢
它是 HLS 解复用器的私有选项,所以
ffmpeg -allowed_extensions ALL -i "C:\streamingtest.m3u8" -c copy "test.ts"
我认为这是对玩家的指示 -allowed_extensions
尝试以下操作:
ffplay -allowed_extensions ALL index.m3u8
它正在使用存储在本地文件夹中的密钥从我那里工作
由于安全问题,新的 ffmpeg 版本检查文件扩展名
in ffmpeg.org 使用 #EXT-X-KEY:METHOD=AES-128
因为密钥通常不使用文件扩展名或使用 *.key 扩展名 例如
ffmpeg -i "C:\streamingtest.m3u8" -c copy "test.ts"
在我的 m3u8 中:
#EXT-X-KEY:METHOD=AES-128,URI="C:/keytest.key"
而且 ffmpeg 会报错
[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
但它没有解释如何使用 allowed_extensions
中的 ALL 选项那么我如何在 ffmpeg 中允许密钥扩展或允许所有扩展
谢谢
它是 HLS 解复用器的私有选项,所以
ffmpeg -allowed_extensions ALL -i "C:\streamingtest.m3u8" -c copy "test.ts"
我认为这是对玩家的指示 -allowed_extensions
尝试以下操作:
ffplay -allowed_extensions ALL index.m3u8
它正在使用存储在本地文件夹中的密钥从我那里工作