How to download aes encrypted m3u8 using ffmpeg or youtube-dl?

Solution 1:

You can use ffmpeg like so:

ffmpeg -i video.m3u8 -c copy -bsf:a aac_adtstoasc video.mp4

Also if the urls are https you can add https to allowed protocols like so:

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i video.m3u8 -c copy -bsf:a aac_adtstoasc video.mp4

Original article: Download encrypted HLS content with ffmpeg - davd.io