VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. ShadoWalkeR ShadoWalkeR's Avatar
    Join Date
    Dec 2022
    Location
    Portugal
    Search Comp PM
    Hi,
    I'm new to this, I'm trying to get a national series that's locked to my country and it's not available anywhere else for the streaming site: https://opto.sic.pt/
    I learned how to do most things and can get all info needed, but I'm having trouble downloading the encrypted data.

    This is what I already have:

    Original Link:
    Code:
    https://opto.sic.pt/vod/81ad7b26-9746-46e6-9f53-8601e878c232
    License:
    Code:
    https://udrmv3.kaltura.com//cenc/widevine/license?custom_data=eyJjYV9zeXN0ZW0iOiJPVlAiLCJ1c2VyX3Rva2VuIjoiZGpKOE5EVXlOalU1TTN5ejhDNDdrYjM5YXlWd0s0dDJVMDlZVW9mRy1kLXZCTm41ZEp0WTVEWlIzQ1lHUEd1dWxwbFktRGlLN1RSVlk2VTdlcHNCRDhPdGFubFhadnU4QXhkY0FjQnhSenB5dFRVQlM3NkhRME9FakE9PSIsImFjY291bnRfaWQiOjQ1MjY1OTMsImNvbnRlbnRfaWQiOiIxX2F2cGMwNWV1IiwiZmlsZXMiOiIxX213NGY0NDJkLDFfb2w1ZmEzZ24sMV84ZnhpeGllaCwxX2lodWt6NXdrLDFfYTVhNjV4ZmUsMV9vbmJkeWNpeiJ9&signature=v%2FIS6QlFtKQx8zP68WfOYL6Nz74%3D&sessionId=d17bb3ec-e6c0-eec3-3888-8e6c9c33c016:949a3f9b-a96a-7f50-ed7a-973188b77f04&clientTag=html5:v7.55&referrer=aHR0cHM6Ly9vcHRvLnNpYy5wdC92b2QvODFhZDdiMjYtOTc0Ni00NmU2LTlmNTMtODYwMWU4NzhjMjMy
    PSSH:
    Code:
    AAAAUHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADAIARIQjPfsovub+Zlj7V7EJFlH2RoHa2FsdHVyYSIKMV9hdnBjMDVldSoFU0RfSEQ=
    MPD
    Code:
    https://cfvod.kaltura.com/edash/p/4526593/sp/452659300/serveFlavor/entryId/1_avpc05eu/v/11/ev/6/flavorId/1_,mw4f442d,ol5fa3gn,8fxixieh,ihukz5wk,a5a65xfe,onbdyciz,/forceproxy/true/name/a.mp4.urlset/manifest.mpd
    Key:
    Code:
    8cf7eca2fb9bf99963ed5ec4245947d9:d3eb493f7468c231abac420e7f1ea7eb
    Ok, so you'd think I'm set right? Nope, for some reason when i use yt-dlp to download the encrypted data I get this error:
    Code:
    ERROR: unable to download video data: [Errno 13] Permission denied: 'manifest [manifest].ff4-a1-x3.m4a.ytdl'
    This error occurs on the audio file, so right now I was able to get the encrypted video and fully decrypt it with the key I have, but I can't get the audio.
    Anyone knows what's causing this?

    I'm using this command to download from the .mdp
    Code:
    yt-dlp.exe --allow-unplayable-formats "my-mpd-link"
    Thank You
    Quote Quote  
  2. ShadoWalkeR ShadoWalkeR's Avatar
    Join Date
    Dec 2022
    Location
    Portugal
    Search Comp PM
    Hi,
    Between the post coming up and now i managed to solve this problem.

    What I did was use aria2c and this command instead:
    Code:
    yt-dlp.exe --allow-u --downloader aria2c -f bv,ba "mpd-link"
    Quote Quote  
  3. Member rafman's Avatar
    Join Date
    Jan 2023
    Location
    Portugal
    Search Comp PM
    Hi,

    How did you managed to get the key from opto.sic?
    I'm trying to get it to decrypt my files.
    Quote Quote  
  4. Is very simple , you need a cdm or subscription on discord getwkeys.
    Quote Quote  
  5. Member rafman's Avatar
    Join Date
    Jan 2023
    Location
    Portugal
    Search Comp PM
    Many thanks
    Great, I've asked for a verification already on their discord.
    Quote Quote  
  6. Member rafman's Avatar
    Join Date
    Jan 2023
    Location
    Portugal
    Search Comp PM
    Ok, nice! Got this working now.
    But it seems like it gives me a wrong key to decrypt one video. It's always giving me this key, and I rechecked 3 or 4 times already the license and PSSH. There's no way to decrypt with this key, is this possible? A wrong key? All others decripted with no problems.
    Quote Quote  
  7. Originally Posted by rafman View Post
    Ok, nice! Got this working now.
    But it seems like it gives me a wrong key to decrypt one video. It's always giving me this key, and I rechecked 3 or 4 times already the license and PSSH. There's no way to decrypt with this key, is this possible? A wrong key? All others decripted with no problems.
    if it plays in the browser then there is a correct key to decrypt it.
    i assume you are getting it from getwvkeys, have you tried choosing the force option so it forces it to send the request to the license server?
    Quote Quote  
  8. Member rafman's Avatar
    Join Date
    Jan 2023
    Location
    Portugal
    Search Comp PM
    I get it... I was trying with a wrong key, my bad... All good
    Quote Quote  
  9. Member
    Join Date
    Jun 2023
    Location
    Portugal
    Search PM
    Originally Posted by ShadoWalkeR View Post
    Hi,
    Between the post coming up and now i managed to solve this problem.

    What I did was use aria2c and this command instead:
    Code:
    yt-dlp.exe --allow-u --downloader aria2c -f bv,ba "mpd-link"
    Hi ShadoWalkeR, I tried use this command you shared, passing this MPD url:

    Code:
    https://cfvod.kaltura.com/edash/p/4526593/sp/452659300/serveFlavor/entryId/1_w1tu0hz5/v/1/ev/7/flavorId/1_,1e6hx6nu,00w0y4n6,yv9mynll,bywhnti3,ozcoe3gi,gh1yfmdj,/forceproxy/true/name/a.mp4.urlset/manifest.mpd
    But it's giving me this SSL error all the time:

    Code:
    ERROR: [generic] None: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
    Can you please help me? Have I missed something?

    Thanks
    Quote Quote  
  10. your code work fine. maybe update yt-dlp (with -U)

    Image
    [Attachment 71863 - Click to enlarge]
    Quote Quote  
  11. Member
    Join Date
    Jun 2023
    Location
    Portugal
    Search PM
    Originally Posted by lomero View Post
    your code work fine. maybe update yt-dlp (with -U)

    Image
    [Attachment 71863 - Click to enlarge]
    After updating the yt-dlp, the error stop happening.

    Strange, because I thought that had already installed the latest version available on the GitHub.

    Thanks a lot for the help lomero.
    Quote Quote  



Similar Threads

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