WHTJEON / narrowvine

The Ultimate Widevine Content Ripper (KEY Extract + Download + Decrypt)
MIT License
97 stars 49 forks source link

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

Open alexxtg12 opened 3 years ago

alexxtg12 commented 3 years ago

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

WHTJEON commented 3 years ago

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 commented 3 years ago

But a question the lincense_url how do you get it?

gadhiamitul41 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

Press F12 on Chrome and inspect packets.

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

WHTJEON commented 3 years ago

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 commented 3 years ago

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!