ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.49k stars 10.05k forks source link

DRM Widevine L3 decryption key parameters can be placed into youtube-dl ? #30770

Closed rajhlinux closed 2 years ago

rajhlinux commented 2 years ago

Checklist

Question

WRITE QUESTION HERE

I have decryption keys for Udemy website, I would like to know if I can download Udemy content using the decryption keys I have.

I have paid subscription videos which I would like to download that is DRM protected.

Udemy.com utilizes, L3 Widevine DRM protocol. Wondering if it is possible to download Udemy videos using this open source git.

If so, how do I place the syntax parameters?

Thank You.

CodingIsLife12345 commented 2 years ago

Are you crazy? What you are asking for is illegal even if you have the decryption keys. You know that this is PUBLIC. Do you think they will support it specially it's DRM related?

dirkf commented 2 years ago

yt-dl can't help with this.

If you would like to download encrypted media, say to test your hard disk, yt-dlp has the --allow-unplayable-formats option that enables that, if the yt-dlp Udemy extractor supports it.

dirkf commented 2 years ago

It can be argued that

yt-dl avoids such controversy generally by reproducing what is presented to a browser. Although it might be possible to connect yt-dl to the browser's (eg) WideVine EME, that looks like a research project.

Meanwhile yt-dl and yt-dlp have completely functional mechanisms (more extensive in the latter case) for post-processing the downloaded media, or just piping the output to a further processing stage. For the moment that is where the user should cast any magic spell to make the download usable; some people may wish to make an archive of unplayable content in case it may become playable in future. So I would be open to back-porting --allow-unplayable-formats and modifying relevant extractors to avoid skipping DRM formats under that option.