widevine

command
v1.54.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: OSL-3.0 Imports: 11 Imported by: 0

README

Widevine

Example:

widevine `
-b 63363432-3534-6364-6237-656465336530 `
-a https://lic.drmtoday.com/license-proxy-widevine/cenc/?specConform=true `
-h x-dt-custom-data:eyJ1c2VySWQiOiJhbm9uaW0iLCJzZXNzaW9uSWQiOiJrRGJZZUlYeVM4VjNtNXVRMjRtU0F6cThXdDkiLCJtZXJjaGFudCI6ImNkYSJ9

How to get key id?

If you look in the MPD file, you should see it:

<ContentProtection value="cenc" schemeIdUri="urn:mpeg:dash:mp4protection:2011"
cenc:default_KID="63363432-3534-6364-6237-656465336530"/>

How to get license URL and header?

If you watch the requests on the video page, you should see a request similar to this:

POST https://lic.drmtoday.com/license-proxy-widevine/cenc/?specConform=true HTTP/1.1
Accept-Language: en-US,en;q=0.5
Accept: */*
Connection: keep-alive
DNT: 1
Origin: https://www.cda.pl
Referer: https://www.cda.pl/video/391634853/vfilm
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
x-dt-custom-data: eyJ1c2VySWQiOiJhbm9uaW0iLCJzZXNzaW9uSWQiOiJrRGJZZUlYeVM4VjNtNXVRMjRtU0F6cThXdDkiLCJtZXJjaGFudCI6ImNkYSJ9

Sometimes, only the URL is needed, in which case you can omit the header option. It depends on the license server.

How to get client ID and private key files?

https://github.com/89z/mech/tree/master/widevine

Note that if you choose to download the files someone else has dumped, you might need to either rename the files to match the defaults, or you can manually set the paths like this:

-c string
     client ID (default "C:\\Users\\Steven\\mech\\client_id.bin")
-k string
     private key (default "C:\\Users\\Steven\\mech\\private_key.pem")

Unrecognized option cenc_decryption_key

ffmpeg -cenc_decryption_key 66363435386631333730396636386565 `
-i http://vrbx507.cda.pl/3916348/3916348.mpd `
-c copy -map 0:0 dec.mp4

This option is only available with FFmpeg builds since 2022-05-16

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL