[FFmpeg-trac] #10441(avformat:closed): ffmpeg cannot generate the `hls_enc_key`

FFmpeg trac at avcodec.org
Thu Aug 17 17:51:03 EEST 2023


#10441: ffmpeg cannot generate the `hls_enc_key`
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  alexey.rodionov                    |
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:  fixed
             Keywords:  HLS          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by alexey.rodionov):

 I've found that running

 {{{
 ffmpeg -i input.mp4 -f hls -hls_enc 1 stream.m3u8
 }}}

 now successfully randomly generates the key, but not the initialization
 vector (IV):

 {{{
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:4
 #EXT-X-MEDIA-SEQUENCE:9
 #EXT-X-KEY:METHOD=AES-128,URI="stream.m3u8.key",IV=0x00000000000000000000000000000000
 }}}

 Is it ok? Shouldn't the IV be randomly generated too, if the `-hls_enc_iv`
 option is omitted (as it is for the key if the `-hls_enc_key` option is
 omitted)?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10441#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list