VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 6 of 6
  1. Hello,

    I am trying to download from bein Sports Connect (US version). Here is a link to a sample video, it requires a TV provider login which unfortunately I am unable to provide: https://connect-us.beinsports.com/m/MfJjlrSc/dreams-fc-gha-vs-acadmica-do-lobito-ago?r=c9WvRoTi

    I extract the pssh from the manifest.mpd file (attached), but pywidevine gives the following error:

    unable to parse, unsupported init data format
    unable to parse init data
    session ID does not exist

    What is weird is that pywidevine works on maybe 1 in 10 videos, but the rest return this error. This is not an issue with headers, etc., as the error occurs even before I try to obtain a license. I am taking the pssh directly from the mpd, but somehow pywidevine is unable to parse it.

    I have a working CDM, and I am able to pass the correct headers, as evidenced by the fact that I can extract keys for a small subset of videos from this website using the same methods. But most give this error. What gives? Thanks.
    Image Attached Files
    Quote Quote  
  2. did you use this pssh in mpd?
    Code:
    AAAAjHBzc2gBAAAA7e+LqXnWSs6jyCfc1R0h7QAAAAGEDVzJ+kUjqDFkRRxhWyBqAAAAWCJQbVZVVnEzUE4tTWZKamxyU2MtRG1DTDViMWktMzQ1MDQ5NjZfMzQ1MDQ5NjdfMzQ1MDQ5NjhfMzQ1MDQ5NzFfMzQ1MDQ5NzJfMzQ1MDQ5NzNI49yVmwY=
    Quote Quote  
  3. Code:
    AAAAjHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAFgiUG1WVVZxM1BOLU1mSmpsclNjLURtQ0w1YjFpLTM0NTA0OTY2XzM0NTA0OTY3XzM0NTA0OTY4XzM0NTA0OTcxXzM0NTA0OTcyXzM0NTA0OTczSOPclZsG
    Quote Quote  
  4. Originally Posted by shellcmd View Post
    did you use this pssh in mpd?
    Code:
    AAAAjHBzc2gBAAAA7e+LqXnWSs6jyCfc1R0h7QAAAAGEDVzJ+kUjqDFkRRxhWyBqAAAAWCJQbVZVVnEzUE4tTWZKamxyU2MtRG1DTDViMWktMzQ1MDQ5NjZfMzQ1MDQ5NjdfMzQ1MDQ5NjhfMzQ1MDQ5NzFfMzQ1MDQ5NzJfMzQ1MDQ5NzNI49yVmwY=
    Yes, that's what led to the exact error I presented in the post
    Quote Quote  
  5. Originally Posted by firaso View Post
    Code:
    AAAAjHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAFgiUG1WVVZxM1BOLU1mSmpsclNjLURtQ0w1YjFpLTM0NTA0OTY2XzM0NTA0OTY3XzM0NTA0OTY4XzM0NTA0OTcxXzM0NTA0OTcyXzM0NTA0OTczSOPclZsG
    This one appears to work (I haven't followed it all the way through to get the keys, but it gets past the very first step, which is where my problem lies). How did you obtain this?
    Quote Quote  
  6. OK I think I got it. Define `pssh` to be whatever the pssh is in the mpd.

    Then:

    Code:
    psshb16 = base64.b16encode(base64.b64decode(pssh))
    pssh = base64.b64encode(base64.b16decode(psshb16[:16] + b"00000000EDEF8BA979D64ACEA3C827DCD51D21ED" + psshb16[96:]))
    Plug this new pssh into WvDecrypt and the script returns keys!

    Edit: And just confirmed that the keys do in fact work (not that that was ever a doubt)

    Thanks!
    Last edited by fhpro; 13th Jan 2024 at 11:13.
    Quote Quote  



Similar Threads

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