Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

ERROR "Extracting Widevine Keys.. socket recv data failed. --> timed out generate requests data failed." #1

Open
alexxtg12 opened this issue May 6, 2021 · 9 comments

Comments

@alexxtg12
Copy link

alexxtg12 commented May 6, 2021

Hello, I just got this new error and I don't know how to fix it. Thanks

@alexxtg12 alexxtg12 changed the title ERROR "from Cryptodome.Hash import CMAC ModuleNotFoundError: No module named 'Cryptodome'" ERROR "Extracting Widevine Keys.. socket recv data failed. --> timed out generate requests data failed." May 6, 2021
@WHTJEON
Copy link
Owner

WHTJEON commented May 6, 2021

Try it again one more time. Remember that license_url expires and changes everytime. Use the proper license_url and you are good to go.

@alexxtg12
Copy link
Author

But a question the lincense_url how do you get it?

@gadhiamitul41
Copy link

Getting this error even with your example
--> python3 narrowvine.py -mpd "https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd" -license "https://widevine-proxy.appspot.com/proxy"

We get this response at the end
Extracting Widevine Keys.. socket recv data failed. --> timed out generate requests data failed.

I tried to play this MPD and License URL in the player and it work's fine.

@WHTJEON
Copy link
Owner

WHTJEON commented May 8, 2021

Getting this error even with your example
--> python3 narrowvine.py -mpd "https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd" -license "https://widevine-proxy.appspot.com/proxy"

We get this response at the end
Extracting Widevine Keys.. socket recv data failed. --> timed out generate requests data failed.

I tried to play this MPD and License URL in the player and it work's fine.

I tested it with 2 other windows machines but it works just fine.. My guess is that it's a firewall issue.
Did you allow the windows defender message when license_proxy.exe first launched? (Just like the image below)
스크린샷 2021-05-08 오후 1 28 41
Also, it can be caused by and antivirus software, so try disabling those.
Can you test it on a different windows machine? If the problem persists, let me know.

@WHTJEON
Copy link
Owner

WHTJEON commented May 8, 2021

But a question the lincense_url how do you get it?

Press F12 on Chrome and inspect packets. You will see a license_url. If you can't find a proper license_url, there is no way of ripping widevine contents.

@gadhiamitul41
Copy link

@WHTJEON : Thank you.
That worked as I turned the firewall off on Windows. I was able to extract key for your example where as I had an issue extracting key for live stream(s).
PSSH : AAAAP3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAB8IARIQLVV8qmsLQF6D/CcoQ52gqSIJNDAwMDAwMDA3

I have the correct license URL. I was able to play the URL in the browser.

@Ashish0804
Copy link

Press F12 on Chrome and inspect packets.

Anyway to do this for android apps? Say vootkids that are exclusive to mobile phones.

@WHTJEON
Copy link
Owner

WHTJEON commented May 16, 2021

Press F12 on Chrome and inspect packets.

Anyway to do this for android apps? Say vootkids that are exclusive to mobile phones.

Use a proxy HTTP Packet Sniffer to sniff mpd url and license url. It would be complicated though.

@danielgheoltan
Copy link

Hello,
I get this exception too. I checked the MPD URL and the LICENSE URL via https://bitmovin.com/demos/drm and the video is playing there...
I am using Windows 7 with firewall disabled, and Python 3.8.10.
Thanks in advance!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants