Closed cdgriffith closed 2 years ago
Well in this case after a deeper dive it seems that a wrong IV was used during the encryption of the video segments. Somehow mpv
still plays it even with a bad IV
but video.js
does not (probably the correct behavior actually). Not sure how mpv
is ignoring the IV for AES-128 CBC
HLS is not working with clearkey for me. Tested on Chrome and Firefox on Windows 11. I have detailed example / files attached here: enc_example.zip
Simply run
python3 https_server.py
and navigate to "https://127.0.0.1:8444"The actual key and IV are referenced directly in the simple
m3u8
file that works correctly withmpv
accessing it.#EXT-X-KEY:METHOD=AES-128,URI="https://127.0.0.1:8444/key/a1aee6b36cef66cdcce2191fb15ababd.key",IV=0x763a312f2edf357c
Can test to make sure the encrypted version is working with
mpv
if you have it:mpv https://127.0.0.1:8444/point.m3u8 --demuxer-lavf-o=protocol_whitelist=[file,tcp,tls,http,https,crypto,data]
Using the most basic of player setups possible:
Any help would be appreciated!