Hi all.
I have long studied the forum and came to the conclusion that only here can help me to download and decrypt the DRM video
I want to download videos from kinescope.io hosting, apparently they use protection not similar to Widevine, it seems to me that it is ClearKey.
There are 2 videos on the page, EME logger shows the following output
Can you please tell me what to do?)Code:[EME] Navigator::requestMediaKeySystemAccess Key System: org.w3.clearkey Supported Configurations: [ { "initDataTypes": [ "cenc" ], "videoCapabilities": [ { "contentType": "video/mp4;codecs=\"avc1.4D401E\"", "robustness": "" } ], "distinctiveIdentifier": "optional", "persistentState": "optional", "sessionTypes": [ "temporary" ] } ] [EME] MediaKeySystemAccess::createMediaKeys Key System: org.w3.clearkey Configurations: { "audioCapabilities": [], "distinctiveIdentifier": "not-allowed", "initDataTypes": [ "cenc" ], "label": "", "persistentState": "not-allowed", "sessionTypes": [ "temporary" ], "videoCapabilities": [ { "contentType": "video/mp4;codecs=\"avc1.4D401E\"", "robustness": "" } ] } [EME] MediaKeys::createSession Session Type: temporary [EME] MediaKeySession::generateRequest Session ID: (not available) Init Data Type: keyids Init Data: eyJraWRzIjpbIlpsRnZXRVY0YUhOQldHVnplVUZyUFEiXX0= [EME] MediaKeys::createSession Session Type: temporary [EME] MediaKeySession::generateRequest Session ID: (not available) Init Data Type: keyids Init Data: eyJraWRzIjpbIlpsRnZXRVY0YUhOQldHVnplVUZyUFEiXX0= [EME] MediaKeySession::message Session ID: 1 Message Type: license-request Message: eyJraWRzIjpbIlpsRnZXRVY0YUhOQldHVnplVUZyUFEiXSwidHlwZSI6InRlbXBvcmFyeSJ9 Listeners: Array [ {…} ] [EME] MediaKeySession::message Session ID: 2 Message Type: license-request Message: eyJraWRzIjpbIlpsRnZXRVY0YUhOQldHVnplVUZyUFEiXSwidHlwZSI6InRlbXBvcmFyeSJ9 Listeners: Array [ {…} ] [EME] Navigator::requestMediaKeySystemAccess Key System: org.w3.clearkey Supported Configurations: [ { "initDataTypes": [ "cenc" ], "videoCapabilities": [ { "contentType": "video/mp4;codecs=\"avc1.4D401E\"", "robustness": "" } ], "distinctiveIdentifier": "optional", "persistentState": "optional", "sessionTypes": [ "temporary" ] } ] [EME] MediaKeySystemAccess::createMediaKeys Key System: org.w3.clearkey Configurations: { "audioCapabilities": [], "distinctiveIdentifier": "not-allowed", "initDataTypes": [ "cenc" ], "label": "", "persistentState": "not-allowed", "sessionTypes": [ "temporary" ], "videoCapabilities": [ { "contentType": "video/mp4;codecs=\"avc1.4D401E\"", "robustness": "" } ] } [EME] MediaKeys::createSession Session Type: temporary [EME] MediaKeySession::generateRequest Session ID: (not available) Init Data Type: keyids Init Data: eyJraWRzIjpbImJWWkxVSE00YnpCS0xVUXRSRWxSUFEiXX0= [EME] MediaKeys::createSession Session Type: temporary [EME] MediaKeySession::generateRequest Session ID: (not available) Init Data Type: keyids Init Data: eyJraWRzIjpbImJWWkxVSE00YnpCS0xVUXRSRWxSUFEiXX0= [EME] MediaKeySession::message Session ID: 3 Message Type: license-request Message: eyJraWRzIjpbImJWWkxVSE00YnpCS0xVUXRSRWxSUFEiXSwidHlwZSI6InRlbXBvcmFyeSJ9 Listeners: Array [ {…} ] [EME] MediaKeySession::message Session ID: 4 Message Type: license-request Message: eyJraWRzIjpbImJWWkxVSE00YnpCS0xVUXRSRWxSUFEiXSwidHlwZSI6InRlbXBvcmFyeSJ9 Listeners: Array [ {…} ] [EME] MediaKeySession::update Session ID: 1 Response: eyJrZXlzIjpbeyJrdHkiOiJvY3QiLCJhbGciOiJBMTI4S1ciLCJraWQiOiJabEZ2V0VWNGFITkJXR1Z6ZVVGclBRIiwiayI6IlZEUm9VM1kwVUd0cGJuSkdjV2cwUFEifV19 [EME] MediaKeySession::keystatuseschange Session ID: 1 [USABLE] ZlFvWEV4aHNBWGVzeUFrPQ== Listeners: Array [ {…} ] [EME] MediaKeySession::update Session ID: 2 Response: eyJrZXlzIjpbeyJrdHkiOiJvY3QiLCJhbGciOiJBMTI4S1ciLCJraWQiOiJabEZ2V0VWNGFITkJXR1Z6ZVVGclBRIiwiayI6IlZEUm9VM1kwVUd0cGJuSkdjV2cwUFEifV19 [EME] MediaKeySession::keystatuseschange Session ID: 2 [USABLE] ZlFvWEV4aHNBWGVzeUFrPQ== Listeners: Array [ {…} ] [EME] MediaKeySession::update Session ID: 4 Response: eyJrZXlzIjpbeyJrdHkiOiJvY3QiLCJhbGciOiJBMTI4S1ciLCJraWQiOiJiVlpMVUhNNGJ6QktMVVF0UkVsUlBRIiwiayI6ImRESmpXbXBNZDBGWlQwZFdVRkpSUFEifV19 [EME] MediaKeySession::keystatuseschange Session ID: 4 [USABLE] bVZLUHM4bzBKLUQtRElRPQ== Listeners: Array [ {…} ] [EME] MediaKeySession::update Session ID: 3 Response: eyJrZXlzIjpbeyJrdHkiOiJvY3QiLCJhbGciOiJBMTI4S1ciLCJraWQiOiJiVlpMVUhNNGJ6QktMVVF0UkVsUlBRIiwiayI6ImRESmpXbXBNZDBGWlQwZFdVRkpSUFEifV19 [EME] MediaKeySession::keystatuseschange Session ID: 3 [USABLE] bVZLUHM4bzBKLUQtRElRPQ== Listeners: Array [ {…} ]
With widevine I know how to bypass protection, but with clearkey has not yet encountered
+ Reply to Thread
Results 1 to 30 of 264
-
-
Maybe it works like this.
The last base64 response is:
Code:eyJrZXlzIjpbeyJrdHkiOiJvY3QiLCJhbGciOiJBMTI4S1ciLCJraWQiOiJiVlpMVUhNNGJ6QktMVVF0UkVsUlBRIiwiayI6ImRESmpXbXBNZDBGWlQwZFdVRkpSUFEifV19
Code:{"keys":[{"kty":"oct","alg":"A128KW","kid":"bVZLUHM4bzBKLUQtRElRPQ","k":"dDJjWmpMd0FZT0dWUFJRPQ"}]}
Code:6d564b5073386f304a2d442d4449513d
Code:7432635a6a4c7741594f47565052513d
Buuuut I see the last 4 characters are the same and it kinda makes me think that it doesn't work like this. -
@Marsha0xGriffith
Please kindly give the top url of the video.
Btw: another great job [ss]vegeta
I have a suspicion the you can use those credentials with hlsdl -
Curl command to get master.mpd
https://pastebin.com/v7NWHkcF
But there is one strange thing, the video itself does not last more than 15 minutes, but when downloaded through mpd in the worst quality you get a file size of 9 GB
downloaded with
Code:yt-dlp --allow-u --downloader aria2c
-
-
Weird stuff is happening.
I downloaded the audio and MediaInfo says 163 hours.
Windows and media players say 25 minutes 30 seconds.
I tried decrypting the audio with the key I mentioned up there. Even after decryption, MediaInfo says it is still encrypted, and yet the audio is playable, at least for those 25 minutes and 30 seconds. -
key above works...but size of video not matches with time...getting nearly 3 minutes for 3gb plus size
-
Hi all, finally found a suitable vps server to test
It looks like it really works, only I still can't figure out how to bring the final file to a normal size.
I can also get the master.m3u8 from this site using the same link, but not sure if that helps.
I think the video/audio should be no bigger than 150 mb, but definitely not 50+ GB
Maybe someone has encountered a similar situation?
Is it possible to change mpd file in some way, maybe remove some extra parts to get normal sized files?
Or is it the only option - to download files of that size, decrypt them and then convert them?
If there are ffmpeg experts here - I'll be grateful for hints -
looks like its not being parsed properly by yt-dlp (maybe its all the extra linebreaks and tabs thats causing a problem - or thats just what i see)
the mpd breaks up the file into fragments by using range requests.
you can grab the correct file by downloading the full mp4 file for video and audio, decrypting them and then joining them.
ie. for 360p
Code:curl -o 360p.mp4 "https://kinescopecdn.net/7a16ef25-a06d-4915-b783-b59db753c39e/videos/a9f74926-8279-44e6-a08d-3462436e692c/assets/195901bf-9039-4f73-9f6d-dd1a5554b2f6/360p.mp4?expires=1652743983&sign=<blah>"
heres a fixed up version of that mpd that works with yt-dlp
https://transfer.sh/get/tEyIGn/kinescope1.mpd -
sort of.
even when i cleaned up the spaces and line breaks it still didnt want to work, so i recreated it similar to another mpd that used progressive download.
the mpd is much smaller now, but itd be much quicker to just grab one of the video and audio file links and manually grab the whole mp4 file, then decrypt, join etc. -
Yay, I finally figured it out!
Special thanks to [ss]vegeta and ElCap!
And thanks to everyone who helped me solve this difficult problem! -
The solution for those who do not understand (windows):
yt-dlp.exe --merge-output-format mp4 https://kinescope.io/NumbersOfYourLesson/master.m3u8 --referer https://kinescope.io -o "NameYourLesson"
You should have the latest versions of "yt-dlp.exe" and "ffmpeg.exe" in the folder.
This command will download the video and audio streams separately, then merge them and give them the name you specify.
P.S All the participants in this thread deserve thanks, without their help I would not have guessed how to download from kinescope.io. You are cool!!! -
Can you help me and explain step by step how to download video? Thank you very much, friends!
-
Good, very helpful! Thank you very much!
Did everything by the tutorial, the video is downloaded and merged with audio, however it looks like this:
[Attachment 68113 - Click to enlarge]
[Attachment 68114 - Click to enlarge]
The lenght is perfect - same as the online source. The size and resolution also should be fine (1,71 GB for a hour+ video source, 720p). Also noticed this error while downloading audio:
[Attachment 68115 - Click to enlarge]
There are some squeaky noise when Im trying to play the file in MPCHC and the video plays fast.
Is there some new "protection" on the kinescope side? Why it looks like this?
Thank you! -
Yeap, looks like it. Tried it with another video and noticed "failed to seek for auxiliary info will only parse..." messages while downloading. So it is a DRM (by StackOverflow). So basically you can download only not DRM protected files using this method? Or is there a setting i can turn on to make it work?
-
-
-
A bit strange seems that if you used the above
yt-dlp.exe --merge-output-format mp4 https://kinescope.io/NumbersOfYourLesson/master.m3u8 --referer https://kinescope.io -o "NameYourLesson"
why it was possible to download encrypted streams without an --allow-u. -
Similar Threads
-
Help Downloading video
By gilbertati in forum Video Streaming DownloadingReplies: 4Last Post: 27th Mar 2021, 15:39 -
help downloading this video
By Lionking in forum Video Streaming DownloadingReplies: 7Last Post: 1st Dec 2020, 22:04 -
Help downloading a video
By mainblue01 in forum Video Streaming DownloadingReplies: 2Last Post: 1st Aug 2019, 16:15 -
downloading subtitles that are not part of video and are overlayed on video
By 3dsmaxed in forum Newbie / General discussionsReplies: 1Last Post: 7th May 2019, 02:41 -
Help me out downloading this video
By smithmike in forum Video Streaming DownloadingReplies: 3Last Post: 5th Oct 2017, 19:14