Need help downloading DRM encrypted MPD stream, please PM me for more details. I was able to download the encrypted max stream size - 1080p and AAC audio, using yt-dlp.
Here is the output from mp4dump:
D:\>mp4dump 1.mp4 | findstr /I /L "kid key_id"
default_KID = [40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30]
kid 0 = [40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30]
D:\>mp4dump init.mp4 | findstr /I /L "kid key_id"
default_KID = [40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30]
kid 0 = [40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30]
D:\>mp4dump 1.mpa | findstr /I /L "kid key_id"
ERROR: cannot open input (-4)
D:\>mp4dump 1.m4a | findstr /I /L "kid key_id"
default_KID = [40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30]
kid 0 = [40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30]
MPD file contains the following:
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" />
<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="cenc" />
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" value="cenc" />
<InbandEventStream schemeIdUri="urncte
cte35:2013
ml" value="1" />
<Accessibility schemeIdUri="urncte:dash:cc:cea-608:2015" value="CC1=" />
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
<SegmentTemplate timescale="1000000" media="$RepresentationID$/Time=$Time$.mp4" initialization="$RepresentationID$/Time=init.mp4">
<SegmentTimeline>
I tried to generate PSSH to get the decryption keys, but with little to no success. Any help would be much appreciated. Thanks !
+ Reply to Thread
Results 1 to 16 of 16
-
Last edited by shock; 24th Apr 2022 at 10:40.
-
Try this PSSH
Code:AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEEAEOpMduOCaPDqoSEisGDA=
-
-
It seems the License URL (https://nbaapi.neulion.com/api_nba/v1/publishpoint) is being protected with some cookies, such as "drmtoken=true", "deviceid=web-" etc. And the PSSH doesn't look like what people in this forum have described in the past:
MediaKeySession::generateRequest
Session ID: (not available)
Init Data Type: cenc
Init Data: AAACeHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAlhYAgAAAQ ABAE4CPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9 ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAG MAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAA NwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQ ByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAw ACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAE YATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwA RQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQ BMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ ADwASwBJAEQAPgBrAHoAbwBFAFEATABnAGQAbQB1AEEAOABPAH EAaABJAFMASwB3AFkATQBBAD0APQA8AC8ASwBJAEQAPgA8AEwA QQBfAFUAUgBMAD4AaAB0AHQAcAA6AC8ALwBwAGwAYQB5AHIAZQ BhAGQAeQAuAGQAaQByAGUAYwB0AHQAYQBwAHMALgBuAGUAdAAv AHAAcgAvAHMAdgBjAC8AcgBpAGcAaAB0AHMAbQBhAG4AYQBnAG UAcgAuAGEAcwBtAHgAPAAvAEwAQQBfAFUAUgBMAD4APAAvAEQA QQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgAAAABIcH NzaAEAAADt74upedZKzqPIJ9zVHSHtAAAAAUAEOpMduOCaPDqo SEisGDAAAAAUCAESEEAEOpMduOCaPDqoSEisGDA= -
post the video id
https://www.nba.com/game/mil-vs-chi-0042100124?watch
ie : 0042100124 -
HTML Code:
drm_token: "xxxxxxxxxxxxxxxxx.eyJqdGkiOiI1ZDJkZTAyMC04NTE0LTNkZTctMxxxxxxxxxxxxxxxxxxxxxxxxxhcGkubmV1bGlvbi5jb20iLCJlaWQiOiI2OEQ5N0NGMC03QjMxLTNERTctQzI4MC1ENDRCN0YwMDAwMDEixxxxxxxxxxxxxxxxxuLTM1MC1jaWFtLWM5NmU5OGM4OWY3YjAxMDFxxxxxxxxxxxxxxxxxxxxxxxxWIyYmNiMmUzOGVjMmQ0MTdjOWQyM2Y1MTZiZDczZjU0YjY3Zjc0MTdmNTUwNmY3YWUzNmNmM2E5ZjA0NWQ0ZWU0MmY1ZjIwMjY4ZDcwOGU2ZTg0MDY5OTg0ZGFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiOmZhbHNlLCJkZWYiOiJxxxxxxxxxxxxxxxxiZXhwIjoxNjUwOTIxNTI3LCJpc3MiOiJuYmFhcGkubmV1bGlvbi5jb20ifQ.WaxER-am2EL_kC75xXYbI6JJ6jJ2ITgde8ENVyAX_m4", pssh: "CAESEE77HN6jzKpWT0Gya/VIGlc=", key: "4efb1cdea3ccaa564f41b26bf5481a57:362376f8711940b971d4e5d7c35dce0b", mpd: "https://neuclnbavodns.akamaized.net/nlds_vod/nba/vod/drm/nlncp/2022/04/23/42100134/68d97cf0-7b31-3de7-c280-d44b7f000001/v1/stream/68d97cf0-7b31-3de7-c280-d44b7f000001_1_android.mp4.mpd?h=4ccbe485c133612fc3287ad6238b3c17.1650914327330&hdnea=exp=1650914387~acl=/*~hmac=E78C2DCB4C28E3D4AA8833C3B9F3EB8CFBFE3B2CDB6A5C18018B6774B432F8FE&nltid=nba&nltdt=8&nltnt=1&uid=15856582"
-
-
-
Gotha. so in my case the Key ID is 40 04 3a 93 1d b8 e0 9a 3c 3a a8 48 48 ac 18 30, which in base64 is QAQ6kx244Jo8OqhISKwYMA==, which seems a few bytes shorter, than what you posted, but i guess lenght can vary.
Other than the DRM token, do i need to parse any other Headers to authenticate? Thanks for your help, much appreciated ! -
https://base64.guru/converter/encode/hex >>>> hex to base64
of course if your coding a script you can automate the process with mp4dump
yes u should use the same headers as is used by your request
just depends on how your planning on getting keys -
-
Similar Threads
-
Download encrypted video via DRM protected MPD manifest
By Beta2k in forum Video Streaming DownloadingReplies: 19Last Post: 15th Jan 2024, 10:47 -
Download encrypted video via DRM protected MPD
By wondercheck in forum Video Streaming DownloadingReplies: 7Last Post: 4th Sep 2021, 10:59 -
Help downloading a documentary (mpd... most likely encrypted)
By oopargentina in forum Video Streaming DownloadingReplies: 5Last Post: 25th Aug 2021, 10:13 -
Please help me download this video encrypted with Playready DRM from .mpd
By PescaGialla in forum Video Streaming DownloadingReplies: 6Last Post: 2nd Feb 2021, 12:23 -
Downloading mpd stream (DRM protected?)
By odyssey1234 in forum Video Streaming DownloadingReplies: 8Last Post: 14th Aug 2019, 21:26