Support AES encryption in native HLS downloader #5591

Closed
opened 2026-02-21 02:53:42 -05:00 by deekerman · 5 comments
Owner

Originally created by @fb39ca4 on GitHub (Sep 19, 2015).

I am trying to get an extractor for daisuki.net working, but the M3U8 playlists have encryption keys.

Example:

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-KEY:METHOD=AES-128,URI="https://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/crypt.key?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d"
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10.000,
http://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/segment1_1000000_av.ts?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d
#EXTINF:10.000,
http://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/segment2_1000000_av.ts?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d
#EXTINF:10.000,
http://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/segment3_1000000_av.ts?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d
...
Originally created by @fb39ca4 on GitHub (Sep 19, 2015). I am trying to get an extractor for daisuki.net working, but the M3U8 playlists have encryption keys. Example: ``` #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-ALLOW-CACHE:YES #EXT-X-KEY:METHOD=AES-128,URI="https://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/crypt.key?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d" #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:10.000, http://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/segment1_1000000_av.ts?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d #EXTINF:10.000, http://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/segment2_1000000_av.ts?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d #EXTINF:10.000, http://bngn-vh.akamaihd.net/i/43383936/35470338/smil/CA/00020/356591040701399.smil/segment3_1000000_av.ts?null=&id=AgCAvZDZFzu8D7zB%2fVWWIHWJSVAxHhHvQvX7rIh3HuHom+D7tYdUh3WhlOWdnZuvwpxzfRMVvdeH8w%3d%3d ... ```
deekerman 2026-02-21 02:53:42 -05:00
  • closed this issue
  • added the
    request
    label
Author
Owner

@jaimeMF commented on GitHub (Sep 20, 2015):

There's a proposed implementation in #5882.
Note that ffmpeg should be able to download it (although it doesn't support ressuming)

@jaimeMF commented on GitHub (Sep 20, 2015): There's a proposed implementation in #5882. Note that ffmpeg should be able to download it (although it doesn't support ressuming)
Author
Owner

@fb39ca4 commented on GitHub (Sep 20, 2015):

Haven't been able to pass cookies to ffmpeg successfully, which are needed for Daisuki.

@fb39ca4 commented on GitHub (Sep 20, 2015): Haven't been able to pass cookies to ffmpeg successfully, which are needed for Daisuki.
Author
Owner

@remitamine commented on GitHub (Sep 20, 2015):

you can use the code in this commit github.com/remitamine/youtube-dl@801cfb8fa9 to be able to pass cookies to ffmpeg.

@remitamine commented on GitHub (Sep 20, 2015): you can use the code in this commit https://github.com/remitamine/youtube-dl/commit/801cfb8fa9e221d2e729d8b0d44446fe4281df03 to be able to pass cookies to ffmpeg.
Author
Owner

@remitamine commented on GitHub (Sep 22, 2015):

Haven't been able to pass cookies to ffmpeg successfully, which are needed for Daisuki.

it should work with latest master branch (https://github.com/rg3/youtube-dl/pull/6267#issuecomment-142416339)

@remitamine commented on GitHub (Sep 22, 2015): > Haven't been able to pass cookies to ffmpeg successfully, which are needed for Daisuki. it should work with latest master branch (https://github.com/rg3/youtube-dl/pull/6267#issuecomment-142416339)
Author
Owner

@yan12125 commented on GitHub (Jun 19, 2016):

Thanks to @remitamine (#8201), AES decryption will be supported in the next version.

@yan12125 commented on GitHub (Jun 19, 2016): Thanks to @remitamine (#8201), AES decryption will be supported in the next version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#5591
No description provided.