VideoHelp Forum




+ Reply to Thread
Results 1 to 17 of 17
  1. 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>
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Originally Posted by Obo View Post
    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.
    The problem is it is DRM-protected, so I can't give URL
    Quote Quote  
  4. 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)
    Quote Quote  
  5. Originally Posted by Obo View Post
    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)
    Thank you a lot! The problem is it is not free service, it is subscription-based one.
    Quote Quote  
  6. Originally Posted by Obo View Post
    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?
    Quote Quote  
  7. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Code:
    --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c
    Quote Quote  
  8. Originally Posted by iamghost View Post
    Code:
    --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c
    Many thanks to you!
    Quote Quote  
  9. Originally Posted by iamghost View Post
    Code:
    --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c
    Could you please briefly explain me how did you do it?
    Quote Quote  
  10. Ambassador Of Atmosphere
    Join Date
    Nov 2024
    Location
    Brooklyn, NY
    Search Comp PM
    Originally Posted by iamghost View Post
    Code:
    --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c
    I've been attempting to grab this video too, but each time I do there's no audio. Please help.
    We all bleed blue from the inside....
    Quote Quote  
  11. Originally Posted by Lupine Assassin View Post
    Originally Posted by iamghost View Post
    Code:
    --key ce1ae4b3267b446299f4b0b2eea7ac2a:31827947897f973133bd255a8f44171c
    I've been attempting to grab this video too, but each time I do there's no audio. Please help.
    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
    Quote Quote  
  12. Ambassador Of Atmosphere
    Join Date
    Nov 2024
    Location
    Brooklyn, NY
    Search Comp PM
    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 found
    We all bleed blue from the inside....
    Quote Quote  
  13. 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
    Quote Quote  
  14. Originally Posted by cedric8528 View Post
    Command don't work for me...need to use more steps
    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
    Quote Quote  
  15. Ambassador Of Atmosphere
    Join Date
    Nov 2024
    Location
    Brooklyn, NY
    Search Comp PM
    Okay, after upgrading to the latest version of shaka-packager, your code worked. Thanks so much, IceM!
    We all bleed blue from the inside....
    Quote Quote  
  16. Originally Posted by Lupine Assassin View Post
    Okay, after upgrading to the latest version of shaka-packager, your code worked. Thanks so much, IceM!
    Cool, thanks for your feedback
    Quote Quote  
  17. Thanks IceM

    Version of Shaka also too old...
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!