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 </cencssh> ) 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?
Thank you for your time
+ Reply to Thread
Results 1 to 4 of 4
[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.