Giter Club home page Giter Club logo

widevine-dl's Introduction

Widevine-DL

made-with-python Github All Releases License

Encrypted MPD Manifest Content Downloader + Decryptor (not a Widevine Key Extractor!)

Requirements

  • ffmpeg, yt-dlp, aria2, widevine-l3-decryptor
$ pip install ffmpeg yt-dlp aria2p
  • For Linux Users, it is recommended to install aria2 with apt.
$ sudo apt-get install aria2

Installation & Run

  1. Download and Extract ZIP from Releases
  2. Install Requirements
  3. Run widevine-dl.py
$ python3 widevine-dl.py

Inputs

  • WideVineDecryptor Prompt - Copy from widevine-l3-decryptor extension (exactly like the format below)
WidevineDecryptor: Found key: 100b6c20940f779a4589152b57d2dacb (KID=eb676abbcb345e96bbcf616630f1a3da)
  • MPD URL - MPD URL of Widevine Content
  • VIDEO_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!)
  • If you only want to download the encrypted content from the MPD File not decrypt it, simply leave the WideVineDecryptor Prompt empty.

Legal Notice

Educational purposes only. Downloading DRM'ed materials may violate their Terms of Service.

If you enjoyed using the script, a star or a follow will be highly appreciated! 😎

widevine-dl's People

Contributors

whtjeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

widevine-dl's Issues

You're my Hero! Fuck AnyStream, Fuck FlixGrab, Fuck AnyPaidSHIT

<3 <3 <3

❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

ERROR: invalid key id

hallo,
i tried with the srf1 live stream and get invalid key id:

stream:
https://srf1-euwe.akamaized.net/4beefc53-c227-43c0-94eb-8f757547d6ed/srf1.ism/manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr)

ENTER VIDEO_ID (Press Enter for Best): 1_V_video_9402236402929338845
ENTER AUDIO_ID (Press Enter for Best): 1_V_video_9402236402929338845

Downloading Encrypted Video from CDN..
[generic] Extracting URL: https://srf1-euwe.akamaized.net/4beefc53-c227-43c0-94eb-8f757547d6ed/srf1.ism/manifest(format=mpd...n=cenc,filter=nodvr)
[generic] manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr): Downloading webpage
[generic] manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr): Extracting information
[info] manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr): Downloading 1 format(s): 1_V_video_9402236402929338845
[dashsegments] Total fragments: 30
[download] Destination: /home/alex/tmp/widevine-dl/cache/encrypted_video.mp4
[download] 100% of 1.77MiB in 00:00:04 at 371.27KiB/s
Downloading Encrypted Audio from CDN..
[generic] Extracting URL: https://srf1-euwe.akamaized.net/4beefc53-c227-43c0-94eb-8f757547d6ed/srf1.ism/manifest(format=mpd...n=cenc,filter=nodvr)
[generic] manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr): Downloading webpage
[generic] manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr): Extracting information
[info] manifest(format=mpd-time-csf,encryption=cenc,filter=nodvr): Downloading 1 format(s): 1_V_video_9402236402929338845
[dashsegments] Total fragments: 30
[download] Destination: /home/alex/tmp/widevine-dl/cache/encrypted_audio.mp4
[download] 100% of 1.77MiB in 00:00:04 at 448.27KiB/s

Decrypting WideVine DRM.. (Takes some time)
ERROR: invalid key id
ERROR: invalid key id
Decryption Complete!

what can i do to make it worke?
thanks anan

please mp4decrypt for centos 7

your please mp4decrypt not work on centos 7.5

please old version this version required gcc 5.1 or +

centos 7 using gcc 4.8

please for all compatibility post old version working with old gcc

Issue

How to skip the video format or audio format?
Or
How to Download Multiple Audio or Video files in one time.

no video

Hello,
i tried to download using this mode everything success fully downloaded but there is no video in mp4 and audio
can you please check and let me know where did i go wrong
Screenshot-2

Python error

I'm on windows 10 and when I try to run the script I get the following.

Processing Video Info..
Python path configuration:
PYTHONHOME = 'C:\widevine-dl'
PYTHONPATH = (not set)
program name = 'C:\widevine-dl\yt-dlp.exe'
isolated = 0
environment = 0
user site = 0
import site = 0
sys._base_executable = 'C:\widevine-dl\yt-dlp.exe'
sys.base_prefix = ''
sys.base_exec_prefix = ''
sys.executable = 'C:\widevine-dl\yt-dlp.exe'
sys.prefix = ''
sys.exec_prefix = ''
sys.path = [
'C:\widevine-dl\base_library.zip',
'C:\widevine-dl\lib-dynload',
'C:\widevine-dl',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x000026c0 (most recent call first):

Any ideas?

Live Stream

Hi,

How can I use it for live stream? The mpd only 1min of video and audio. Hope you can help.

Thanks
Millions Thanks in Advance

Cannot find "mp4decrypt" on mac os

Issue

When we execute the script python widevine-dl.py from a terminal, then we got this error on mac

Decrypting WideVine DRM.. (Takes some time)
sh: mp4decrypt: command not found
sh: mp4decrypt: command not found

Question: How do we get such a key ?

Enter WideVineDecryptor Prompt: 
> 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.