Hi, everyone.
I have encoded mp4 (some multi-colored stripes) and MPD file. Could you advise me, which key(s) from MPD piece (below) do I need for mp4decrypt command?
Code:<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="343fc3d2-b8f7-3636-aa80-6fd99b41e9da"></ContentProtection> <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="MSPR 2.0"> <cenc:pssh>AAACJnBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAgYGAgAAAQABAPwBPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgAwAHMATQAvAE4AUABlADQATgBqAGEAcQBnAEcALwBaAG0AMABIAHAAMgBnAD0APQA8AC8ASwBJAEQAPgA8AEMASABFAEMASwBTAFUATQA+AEMANwBpADEATQAyAGQAOQBsAE8AZwA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</cenc:pssh> <mspr:pro>BgIAAAEAAQD8ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AMABzAE0ALwBOAFAAZQA0AE4AagBhAHEAZwBHAC8AWgBtADAASABwADIAZwA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgBDADcAaQAxAE0AMgBkADkAbABPAGcAPQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA=</mspr:pro> </ContentProtection> <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" value="Widevine"> <cenc:pssh>AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQND/D0rj3NjaqgG/Zm0Hp2g==</cenc:pssh>
+ Reply to Thread
Results 1 to 17 of 17
-
-
There are no decryption keys hidden in MPD's.
Your browser uses the PSSH (presumably from the Widevine section) from the MPD to generate a so called license request, that is sent to a (for all of us unknown) license server. The license server in turn returns an encrypted message, that holds the keys to decrypt your video.
A browser extension like WidevineProxy2 can fetch the keys for you. Or if you are lucky a caching service has the keys, if you input the PSSH. Otherwise let us know the URL of the video (not the URL of the MPD, the URL of the video), and maybe someone can help to fetch the keys. -
-
DRM protection is the whole purpose of using content encryption. If you are not willing to tell us the URL, then so be it (the forum rules allow links to free services, regardless of DRM protection).
The best advice for you then probably is: use the browser extension WidevineProxy2 (https://forum.videohelp.com/threads/416316-%5BRelease%5D-WidevineProxy2-Extension-Bypa...s-Lic-wrapping) -
-
actually I have one video from free service:
https://player.eyefilm.nl/en/films/hold-back-the-sea
can you help me with key for it? -
Code:
--key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c
-
-
We all bleed blue from the inside....
-
Try the command comes from WidevineProxy2, it works for me
Code:N_m3u8DL-RE "https://fl-global-unified1.airflow.jetstre.am/a/0/unified/audp9-prod/kop1218485-lagelanden-en-xx-24fps-drm.ism/.mpd" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" -H "Accept: */*" -H "Origin: null" -H "Referer: https://player.eyefilm.nl/" -H "DNT: 1" -H "Sec-GPC: 1" --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c --use-shaka-packager -M format=mkv
-
Just tried your code, and the finished file is all pixelated. It shows the same errors I was getting before:
02:55:25.444 WARN : Muxing to _2025-04-26_02-54-00.MUX.mkv
02:55:25.872 WARN : [h264 @ 000001b1be32e700] top block unavailable for requested intra mode -1
02:55:25.873 WARN : [h264 @ 000001b1be32e700] error while decoding MB 0 0, bytestream 1378
02:55:25.961 WARN : [aac @ 000001b1c164d040] skip_data_stream_element: Input buffer exhausted before END element foundWe all bleed blue from the inside.... -
Command don't work for me...need to use more steps
Download mpd with yt-dlp
Code:yt-dlp --allow-u "mpd"
Decrypt video with mp4decrypt
Code:mp4decrypt --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c video.mp4 output.mp4
Decrypt audio with Shaka
Code:shaka-packager --enable_raw_key_decryption --keys key_id=ce1ae4b3267b446299f4b0b2eea7ac2a:key=31827947897f973133bd255a8f44171c stream=audio,in=audio.m4a,output=output.m4a
Merge with ffmpeg
Code:ffmpeg -i output.mp4 -i output.m4a -c copy new.mp4
-
I don't understand why the command doesn't work for you.
Code:09:31:00.968 INFO : Start downloading...Vid 1920x1080 | 5923 Kbps | video_eng=5923086 | avc1.640028 | Main 09:31:00.994 WARN : Type: cbcs 09:31:00.995 WARN : PSSH(WV): EhDOGuSzJntEYpn0sLLup6wqGgVlemRybUjzxombBg== 09:31:00.996 WARN : KID: ce1ae4b3267b446299f4b0b2eea7ac2a 09:31:00.997 WARN : Reading media info... 09:31:01.038 INFO : [0x1]: Video, h264 (avc1), 1920x1080 09:31:43.695 INFO : Binary merging... 09:31:45.143 WARN : Type: cbcs 09:31:45.145 WARN : PSSH(WV): EhDOGuSzJntEYpn0sLLup6wqGgVlemRybUjzxombBg== 09:31:45.146 WARN : KID: ce1ae4b3267b446299f4b0b2eea7ac2a 09:31:45.258 INFO : Decrypting using SHAKA_PACKAGE... 09:31:54.369 INFO : Start downloading...Aud audio_eng=127881 | 127 Kbps | mp4a.40.2 | en | 2CH | Main 09:31:54.409 WARN : Type: cbcs 09:31:54.411 WARN : PSSH(WV): EhDOGuSzJntEYpn0sLLup6wqGgVlemRybUjzxombBg== 09:31:54.413 WARN : KID: ce1ae4b3267b446299f4b0b2eea7ac2a 09:31:54.415 WARN : Reading media info... 09:31:54.456 INFO : [0x1]: Audio, aac (mp4a), 127 kb/s 09:31:59.917 INFO : Binary merging... 09:32:00.104 WARN : Type: cbcs 09:32:00.107 WARN : PSSH(WV): EhDOGuSzJntEYpn0sLLup6wqGgVlemRybUjzxombBg== 09:32:00.108 WARN : KID: ce1ae4b3267b446299f4b0b2eea7ac2a 09:32:00.110 INFO : Decrypting using SHAKA_PACKAGE... 09:32:00.733 WARN : _2025-04-26_09-30-56.en.mp4 09:32:00.733 WARN : _2025-04-26_09-30-56.en.m4a 09:32:00.735 WARN : Muxing to _2025-04-26_09-30-56.MUX.mkv 09:32:03.397 WARN : Cleaning files... 09:32:03.501 WARN : Rename to _2025-04-26_09-30-56.mkv 09:32:03.724 INFO : Done
Code:N_m3u8DL-RE.exe --v 09:36:25.441 INFO : N_m3u8DL-RE (Beta version) 20241123
Code:shaka-packager.exe -> 13.01.2025
-
Okay, after upgrading to the latest version of shaka-packager, your code worked. Thanks so much, IceM!
We all bleed blue from the inside....
Similar Threads
-
Help get PSSH or keys from this mpd file please
By Doremon in forum Video Streaming DownloadingReplies: 2Last Post: 27th Jul 2024, 12:26 -
mpd link and keys dump help
By denemeler in forum Video Streaming DownloadingReplies: 0Last Post: 3rd Jan 2024, 11:41 -
I can't get keys for this mpd
By tomtom12 in forum Video Streaming DownloadingReplies: 1Last Post: 16th Oct 2022, 14:44 -
Help finding WV Keys + And how to get them
By Shaico in forum Video Streaming DownloadingReplies: 4Last Post: 7th Oct 2022, 06:11 -
Help decrypting this MPD content (I have keys)
By royjeon215 in forum Video Streaming DownloadingReplies: 4Last Post: 5th May 2021, 11:41