[FFmpeg-trac] #5375(avformat:open): Can't download a m3u playlist stream that uses AES encryption
FFmpeg
trac at avcodec.org
Fri Oct 29 19:50:04 EEST 2021
#5375: Can't download a m3u playlist stream that uses AES encryption
-------------------------------------+-------------------------------------
Reporter: viv1d- | Owner: (none)
shadows |
Type: enhancement | Status: open
Priority: wish | Component: avformat
Version: git-master | Resolution:
Keywords: hls | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Daniel Cantarín):
Replying to [comment:19 Balling]:
> >However, I can't find the proper way to enable it.
>
> echo "0123456789ABCDEF" > keyfile
> dd if=keyfile bs=16 count=1 of=inputkey
>
> mediafilesegmenter --encrypt-key-file=myKey.bin --encrypt-key-
url=http://127.0.0.1/keyOnly.bin --stream-encrypt --iso-fragmented
bbb_sunflower_native_60fps_normal.mp4
>
> From a different terminal:
>
> ./ffmpeg -i http://127.0.0.1/prog_index.m3u8
Thank you very much for your example.
I understand your example has an encryption key URL in the playlists, and
so ffmpeg is able to get that key this way. But my setup involves FairPlay
DRM, so I get this kind of errors:
{{{
Unable to open key file skd://REDACTED-URI-HERE
}}}
What happens next is that ffmpeg actually do download the segments, and
creates the mp4 container with the h264 copied from the input, but does
not decrypt it. The end video is noise.
I was hoping to be able to feed the decryption key somehow to ffmpeg by
command line, as I know all the encryption parameters applied to my
streams. Yet, I didn't find a proper syntax so far. Are you aware of any
way of doing that?
Thanks again.
(For the record: I DO NOT want ffmpeg to implement fairplay, but just to
test the currently implemented SAMPLE-AES decryption using my own already
encrypted streams)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5375#comment:20>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list