(2021.8.26) New Version Released: https://github.com/WHTJEON/narrowvine-reborn
(2021.6.1) Widevine revoked every exploit used in this script. It's dead.
It is reported to still work in some sites, but most of them are revoked.
The Ultimate Widevine Content Ripper (KEY Extract + Download + Decrypt)
Extracting decryption keys only supports Windows.
- If you are using a different platform, you would need to extract decryption keys using Widevine L3 decryptor from a Windows Machine first and paste them into the script.
- This is a combination of widevine-dl and widevineclient3 in my repo.
- This exploit will be patched by Widevine in May 31st, 2021.
- ffmpeg, yt-dlp, aria2 (These must be in PATH. If you want to skip this procedure, download from Releases)
- pycryptodome
$ pip install ffmpeg yt-dlp aria2p pycryptodome
or just simply
$ pip install -r requirements.txt
- Clone or Download the Repo (It is more recommended to download a compiled version from Releases)
- Run narrowvine.py
$ python3 narrowvine.py
- Enter
MPD_URL
andLICENSE_URL
of Widevine Content - Enter
VIDEO_ID
andAUDIO_ID
to download encrypted content. - Once you are done downloading, the script will extract the keys and decrypt the contents.
- Enter
FILENAME
with extension! (ex.final.mp4
) - Your decrypted contents will be merged and saved to /output directory.
MPD_URL
- MPD URL of Widevine ContentLICENSE_URL
- LICENSE URL of Widevine ContentVIDEO_ID
- Video Track ID Shown in Stream Info (Leave blank for best)AUDIO_ID
- Audio Track ID Shown in Stream Info (Leave blank for best)FILENAME
- Desired File Name of Final Decrypted File (with extension!)
- You can also run the python script in a single line command
$ python3 narrowvine.py -mpd "https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd" -license "https://widevine-proxy.appspot.com/proxy"
If you get ucrtbased.dll
and vcruntime140d.dll
missing error when running license_proxy.exe
, download and unzip 32bit.zip to ..\Windows\System32
and download and unzip 64bit.zip to ..\Windows\SysWOW64
.
Educational purposes only. Downloading DRM'ed materials may violate their Terms of Service. DO NOT USE THIS FOR PIRACY.
If you enjoyed using the script, a star or a follow will be highly appreciated! 😎