VideoHelp Forum




+ Reply to Thread
Results 1 to 24 of 24
  1. Member
    Join Date
    Jul 2022
    Location
    United Kingdom
    Search Comp PM
    Hi I think I might have made progress with downloading Robot Wars from Mech-Plus as I think can download the full audio and video (originally it is an .mpd file but it will not download anything but an advert. After a few more steps I seem to be able to download a M3U8 link in M3U8DL and it comes in at around 700mb.) but I am having an error when entering the license URL in to WKS-KEYS.

    Original URL:
    Code:
    https://watch.mech-plus.com/player/24892/stream
    The .mpd can be found at the above link, however I think it might be time sensitive or something.

    I use the PSSH and the License URL from the .mpd in WKS-KEYS but I get this error.
    Code:
    PS C:\Users\Admin\Desktop\WKS-KEYS> py l3.py
    
    PSSH: AAAAVnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADYIARIQLYjgCrdWT7OVZMe+Yvl81xoNd2lkZXZpbmVfdGVzdCIIMTIzNDU2NzgyB2RlZmF1bHQ=
    License URL: https://manifest.prod.boltdns.net/license/v1/cenc/widevine/6277710345001/71ac9e1f-2ba7-4c3c-9eb0-2b8cda485ac4/2d88e00a-b756-4fb3-9564-c7be62f97cd7
    Traceback (most recent call last):
      File "C:\Users\Admin\Desktop\WKS-KEYS\l3.py", line 25, in <module>
        correct, keys = WV_Function(pssh, lic_url)
      File "C:\Users\Admin\Desktop\WKS-KEYS\l3.py", line 21, in WV_Function
        wvdecrypt.update_license(license_b64)
      File "C:\Users\Admin\Desktop\WKS-KEYS\pywidevine\L3\decrypt\wvdecryptcustom.py", line 58, in update_license
        self.cdm.provide_license(self.session, license_b64)
      File "C:\Users\Admin\Desktop\WKS-KEYS\pywidevine\L3\cdm\cdm.py", line 275, in provide_license
        session.session_key = oaep_cipher.decrypt(license.SessionKey)
      File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\Cryptodome\Cipher\PKCS1_OAEP.py", line 167, in decrypt
        raise ValueError("Ciphertext with incorrect length.")
    ValueError: Ciphertext with incorrect length.
    If anyone smarter than me could tell me where I might be going wrong or why it will not work for me please point me in the right direction. Thank you.
    Quote Quote  
  2. Looks like your license url isn't complete and trimmed. Try pasting it fully and it should work. This is the result I got:

    Code:
    --key 2d88e00ab7564fb39564c7be62f97cd7:5e8695cabb14d09422f9b27ce77ed679
    Quote Quote  
  3. Member
    Join Date
    Jul 2022
    Location
    United Kingdom
    Search Comp PM
    Thank you very much for that, I'll try decrypting it soon! I guess my CDM might not be working as I get multiple error come up in WKS-KEYS when I use the full URL. I'll keep trying.
    Quote Quote  
  4. Member
    Join Date
    Jul 2022
    Location
    United Kingdom
    Search Comp PM
    It seems I wasn't able to download the video properly, is there a recommended way to do it? I've tried yt-dlp --allow-u and also used M3U8DL but I'm either getting a short 10 minute video or in M3U8DL an "Invalid URi" error.
    Quote Quote  
  5. Originally Posted by Halomadman2 View Post
    is there a recommended way to do it?
    I'm not sure why would you be getting a 10 minute video with yt-dlp.
    Is your yt-dlp updated?
    Maybe you are feeding it a wrong mpd?
    Get The Stream Detector add-on for Firefox to get the following command
    Code:
    ytdlp --allow-u --no-part --restrict-filenames --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" --referer "https://watch.mech-plus.com/" "https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/6277710345001/71ac9e1f-2ba7-4c3c-9eb0-2b8cda485ac4/6s/manifest.mpd?fastly_token=NjJjODdlZTZfYjU1NDJlYjYwNTFjNGRkZTYwMjVjMThkMzZkMGQxMTNkYmI4YjA5ODdkOTE5ZGE4ZWYxYmU0ZWM0MWI0NDVmZg%3D%3D"
    This downloads the full ~700mb episode and it can be decrypted just fine with the key above from Jason Sudeikis.

    Here's your first episode
    https://we.tl/t-WS3oNscyJZ
    click click2
    If I/my posts ever helped you, and you want to give back, send me a private message!
    Quote Quote  
  6. Member
    Join Date
    Jul 2022
    Location
    United Kingdom
    Search Comp PM
    Thank you very much for your help! Your command seems to work fine but I was using The Stream Detector and yt-dlp (latest update) and I was only getting a one minute advert, then I noticed that I'm picking up a URL for "content.mpd" but not "manifest.mpd" like in your post and I can't seem to find it. Is yours coming up with The Stream Detector plugin? I appreciate your helping me thank you.
    Quote Quote  
  7. Originally Posted by Halomadman2 View Post
    Is yours coming up with The Stream Detector plugin? I appreciate your helping me thank you.
    Try installing ublock origin. Does the video actually start playing in your browser?
    The proper mpd comes up in both developer tools -> network and The Stream Detector add-on.
    Image
    [Attachment 65813 - Click to enlarge]

    I can't seem to find content.mpd
    click click2
    If I/my posts ever helped you, and you want to give back, send me a private message!
    Quote Quote  
  8. Member
    Join Date
    Jul 2022
    Location
    United Kingdom
    Search Comp PM
    That's it! I started getting 'manifest.mpd' instead of 'content.mpd' after that. Legend

    Now to decrypt...
    Quote Quote  
  9. Hi All, I am a bit late to this. I am stuck at the moment. I followed the steps above and used the https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseu.......... link but it does not download anything. It comes up with an error saying its DRM protected or something. Any help/tips would be useful. I am new to this. Regards,
    Quote Quote  
  10. Originally Posted by helpmeplease11 View Post
    Hi All, I am a bit late to this. I am stuck at the moment. I followed the steps above and used the https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseu.......... link but it does not download anything. It comes up with an error saying its DRM protected or something. Any help/tips would be useful. I am new to this. Regards,
    The full url includes the token attached at the end.

    Use n_m3u8dl

    Code:
    n_m3u8DL-RE "https://manifest.prod.boltdns.net/manifest/v1/dash...."
    Quote Quote  
  11. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Hello, is it possible to download the video and audio in a single file? I get two files instead and is a bit tricky to decrypt and merge them.
    Quote Quote  
  12. yes, use N_m3u8DL-RE -M format=mkv "mpd_link"
    or -M format=mp4

    anyway it's easy merge audio/video with ffmpeg
    ffmpeg.exe -i video.mp4 -i audio.m4a -c copy final_video.mp4
    Quote Quote  
  13. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Originally Posted by lomero View Post
    yes, use N_m3u8DL-RE -M format=mkv "mpd_link"
    or -M format=mp4

    anyway it's easy merge audio/video with ffmpeg
    ffmpeg.exe -i video.mp4 -i audio.m4a -c copy final_video.mp4
    thank you, I've tried with N_m3u8DL-RE but I get this warnings.

    Image
    [Attachment 70974 - Click to enlarge]

    The result mkv is only 700kb and it does not play. The url is right but I don't understand if it has to do with DRM. Do I need to specify the key somewhere?
    Quote Quote  
  14. This is how your command should look like -

    Code:
    .\N_m3u8DL-RE.exe "Complete MPD URL" --save-name _TEST --key 2d88e00ab7564fb39564c7be62f97cd7:5e8695cabb14d09422f9b27ce77ed679 -mt -M mp4 -sv best -sa best -ss lang="eng":for=all
    Last edited by pram0dm; 12th May 2023 at 16:12.
    Quote Quote  
  15. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Originally Posted by pram0dm View Post
    This is how your command should look like -

    Code:
    .\N_m3u8DL-RE.exe "<Complete MPD URL>" --save-name _TEST --key 2d88e00ab7564fb39564c7be62f97cd7:5e8695cabb14d09422f9b27ce77ed679 -mt -M mp4 -sv best -sa best -ss lang="eng":for=all
    Thank you very much. I'll try that. However I have a problem, I tried with the first video of the first series and no problem. However with the second video I cannot decypt it using the key up in this thread. Does the key changes for every video? What's the most updated way to get the key, I've found many guides but all outdated...
    Quote Quote  
  16. Yes, they do change with each and every video for this service, but not necessarily that's the case for all those that are out there.
    Some services even rotate keys for individual videos wherein the same key wouldn't work a second time after a period of time.

    Use https://cdrm-project.com/ to get them. That's the easiest way.
    Quote Quote  
  17. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Originally Posted by pram0dm View Post
    Yes, they do change with each and every video for this service, but not necessarily that's the case for all those that are out there.
    Some services even rotate keys for individual videos wherein the same key wouldn't work a second time after a period of time.

    Use https://cdrm-project.com/ to get them. That's the easiest way.
    Thank you very much. i tried with your command and it does work for the first episode, but not for the others. I guess the key is different. Is there a guide on how to get the PSSH, License and Headers? I'm using The Stream Detector and it gives some header but I'm not sure it's what I need.
    I don't want to hijack the thread so if you want you can DM me, but it could be useful for others like me with low experience.
    Thank you
    Quote Quote  
  18. I will definitely give you hints to get started and after that it's all you.

    License URL and its headers will change with each service, and this is obtained easily by pulling up your Developer Tools and searching to POST requests like auth, widevine, lic, license etc. In this case it was widevine.

    Next, fetch the PSSH using the EME PSSH Extractor script with Tampermonkey. You can search for it here on the forums.

    Finally, use the cdrm-project to recreate the request with the given PSSH and URL that you obtained from the first step and you receive the keys. You don't need to add anything else here.
    Quote Quote  
  19. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Originally Posted by pram0dm View Post
    I will definitely give you hints to get started and after that it's all you.

    License URL and its headers will change with each service, and this is obtained easily by pulling up your Developer Tools and searching to POST requests like auth, widevine, lic, license etc. In this case it was widevine.

    Next, fetch the PSSH using the EME PSSH Extractor script with Tampermonkey. You can search for it here on the forums.

    Finally, use the cdrm-project to recreate the request with the given PSSH and URL that you obtained from the first step and you receive the keys. You don't need to add anything else here.
    Hi, thanks to your help and some research I've been able to proceed, however I'm stuck on ONE video that for some reason returns 5 keys in the CDRM website. I've tried all of them singularly and together with multiple --key command in the script, like in the N_m3u8DL-RE documentation. But still the file cannot decrypt it. Do you have any suggestion?
    Thank you
    Quote Quote  
  20. try with shaka
    Quote Quote  
  21. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Originally Posted by lomero View Post
    try with shaka
    I tried with mp4decrypt but it does not work. Shaka is far too complicated for my abilities.

    This is the cmd I'm using:

    PHP Code:
    N_m3u8DL-RE "https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/6277710345001/b93ab009-7e9d-425a-b8d0-ed1ace1134df/6s/manifest.mpd?fastly_token=NjQ2YjliYTFfM2U1MGQ3OTdkOWViN2YzNWRhMTQ0Mjg1NzAzZDY1ZDc4MjNlMTM1YzdkYmI5NTlhOGQxMDJlNjYxYWRlMjExNw%3D%3D" --save-name Episode --key f326cd30c0f75519a010813942e54f23:553066d951be2e47bac6bf3dd14a6999 --key ccb1cb1e0be6575bb64bd354e4d3645f:1ff913a4607b61c1c003610960b5cba1 --key a5d79a4aafae5d6a902936b938fae514:7b2cea0375631051a710c71348cf2939 --key db6919bfdf085b8c8c039fce9a9e9269:460bb4400576552a8fc8cfb3dbef88aa --key 56632709aa855909b52d1428489554cc:8c64eba03d84ac1a44c602ec291b836d -mt -M mp4 -sv best -sa best -ss lang="eng":for=all 
    But I only get an encrypted file and warnings.

    Image
    [Attachment 71204 - Click to enlarge]
    Quote Quote  
  22. @Filippo:

    Try this one:

    Code:
    4ccfbdcfc1b942129a62db558141554e:e0aa5d97850beb21c62cbba82e86599d
    Quote Quote  
  23. Member
    Join Date
    May 2023
    Location
    Italy
    Search PM
    Originally Posted by stabbedbybrick View Post
    @Filippo:

    Try this one:

    Code:
    4ccfbdcfc1b942129a62db558141554e:e0aa5d97850beb21c62cbba82e86599d
    It worked. Thank you very much. May I ask how did you get only one? that CDRM website always returned 5.
    Quote Quote  
  24. If you look at the result on CDRM, it says "Cached PSSH: Time:Tue Nov 29 14:05:55 2022". CDRM caches PSSH from past requests, so if someone already did it once, you'd get the same keys. In this case, the cached keys are either old or wrong so they won't work.

    I used my own CDM with the license and PSSH found inside the mpd, which gave me a working key.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!