avconv HLS加密无法正常工作

时间:2018-06-13 13:10:57

标签: encryption hls avconv

我在OSX终端上使用AVCONV,尝试生成加密的HLS .ts块。 我使用FFMPEG,according to the documentation AVCONV也应该能够做到这一点。但是,当我运行以下命令时:

avconv -i <filename> -c:v h264 -flags +cgop -g 30  -hls_time 10  -hls_enc 1 -hls_enc_key "<mykey>" <filename>.m3u8

这会导致错误: 无法为'hls_enc_key'找到合适的输出格式

尽管我运行的是最新版本(使用brew install libav),hls选项不会显示在'man avconv'中。

avconv version 12.3, Copyright (c) 2000-2018 the Libav developers built on Feb 13 2018 11:14:42 with Apple LLVM version 9.0.0 (clang-900.0.39.2)
avconv 12.3
libavutil     55. 20. 0 / 55. 20. 0
libavcodec    57. 25. 0 / 57. 25. 0
libavformat   57.  7. 2 / 57.  7. 2
libavdevice   56.  1. 0 / 56.  1. 0
libavfilter    6.  7. 0 /  6.  7. 0
libavresample  3.  0. 0 /  3.  0. 0
libswscale     4.  0. 0 /  4.  0. 0

由于我找不到avconv hls加密的真实世界示例,我想知道这个功能是否存在,或者我的命令结构是否有问题。

0 个答案:

没有答案