I purchased a film (here's the URL i received: https://tickets.frameline.org/websales/pages/EntryPoint.aspx?ottgo=https://watch.frame...-32f4ecbf73e2& ), and I wanted to download it. (The link expires at the end of day 6/30/22.) I've had a lot of experience with youtube-dl, making modifications to access many streaming sites, but I hadn't seen these DRM protected streams!
I'm trying to understand if I have enough information to decrypt it. In Chrome debugger I see the MPD, which has the PSSH box ( <cencssh>AAACuHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAApiYAg AAAQABAI4CPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4A cwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQ BpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAw ADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAG QAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAA LgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQ BOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZ AEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC 8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYA TwA+ADwASwBJAEQAPgBzAEQAcQAvAGkAOABCAEUAVgBFADIALw BaAGYAVgB2ACsAcgA4ADYAYwB3AD0APQA8AC8ASwBJAEQAPgA8 AEMASABFAEMASwBTAFUATQA+AHQAMQA1AEcAawArAE0AeQBVAD IAOAA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AEwAQQBfAFUA UgBMAD4AaAB0AHQAcABzADoALwAvAHAAbABhAHkAcgBlAGEAZA B5AC4AZQB6AGQAcgBtAC4AYwBvAG0ALwBjAGUAbgBjAHkALwBw AHIAZQBhAHUAdABoAC4AYQBzAHAAeAA/AHAAWAA9ADkARgAyADMAOQBCADwALwBMAEEAXwBVAFIATAA+AD wALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A </cenc
ssh> ) and Default_KID ( <ContentProtection cenc:default_KID="8bbf3ab0-44c0-4d54-bf65-f56ffabf3a73" schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"/> ). I also see a POST message to ( https://widevine-dash.ezdrm.com/widevine-php/widevine-foreignkey.php?pX=DFC05E ) that returns some unreadable stuff. There is also an HLS stream in there that I was able to download using yt-dlp, but it uses AES 128 encryption. I also noticed a few "Bearer" authorization packet headers, but in all cases it shows "Bearer: null".
I have a few questions:
1) Is the response from the widevine-dash site the key? If so, how do I capture it (Chrome debug doesn't let me copy paste it).
2) Given that I have the key, KID, PSSH and mpd, how do I put them all together to download?
3) Are the mp4 packet responses I see in Chrome debug encrypted or decrypted? I'm guessing the javascript code decrypts them. Can they be extracted somehow (it's now ideal, as it would have to be done in real-time as the file streams, but it could be better then nothing.
Thank you for your time
Try StreamFab All-in-One and download Netflix, Amazon Prime, etc! Or Try DVDFab and copy all Blu-rays and DVDs!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
PSSH:
Code:AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEIu/OrBEwE1Uv2X1b/q/OnM=
Code:https://widevine-dash.ezdrm.com/widevine-php/widevine-foreignkey.php?pX=DFC05E
Code:8bbf3ab044c04d54bf65f56ffabf3a73:295afda00cf0eefe18786a2b7d90eebc
[Attachment 65638 - Click to enlarge] -
Thank you CrymanChen ! I guess obtaining the key is still a mystery, but I was able to get my video with it! I didn't really know what to do with the key, but I found a reference to Drm-Dash-stream-downloader, so I tried that out. That program didn't really work for my mpd (I wonder if it works for any mpds), but reading through the code I saw that most of it was unnecessary as I had already downloaded the encrypted audio and video with yt-dlp. The code to call mp4decrypt and ffmpeg was helpful.
-
the pssh was generated using this website with the default_KID from the mpd.
Code:8bbf3ab0-44c0-4d54-bf65-f56ffabf3a73
[Attachment 65651 - Click to enlarge]
the key was retrieved with getwvkeys.cc using the pssh and the license url that crymanchen posted.
Similar Threads
-
Can't play widevine encrypted video after decrypted
By hkghtk in forum Video Streaming DownloadingReplies: 5Last Post: 29th Jun 2022, 10:57 -
error downloading from kijk.nl widevine
By TopSkillGamer in forum Video Streaming DownloadingReplies: 3Last Post: 21st Apr 2022, 23:29 -
how do I find the key to the video (widevine)?
By jessezveneberg in forum Video Streaming DownloadingReplies: 3Last Post: 10th Feb 2022, 08:43 -
Downloading a Widevine encrypted livesteam
By muppler in forum Video Streaming DownloadingReplies: 27Last Post: 28th Aug 2021, 17:10 -
Widevine encrypted video
By Stevo1987 in forum Video Streaming DownloadingReplies: 1Last Post: 15th Jun 2021, 02:58