A small python script to download Channel 4 content
- PSSH generator
- MPD retrieval
- Widevine licesnse challenge response
- Stream downloader (yt-dlp & aria2c)
- MP4 decryption (Bento4)
- MP4 stream merger (FFmpeg)
- Python 3.10.*
- pip
- Working Widevine RSA key pair
pip install -r requirements.txt
py .\c4-dl.py --download --wvd "C:\widevine_device.wvd" --url "https://www.channel4.com/programmes/the-big-bang-theory/on-demand/44564-001"
-h, --help Prints help.
--wvd File path of the WVD generated by pywidevine.
--download Flag to download, decrypt and merge the streams.
--url URL of the episode to download.
The downloader performs resource intensive operations and should ideally be re-written however, it works.
- This script requires a working Widevine RSA key pair to retrieve the decryption key from the license server.
- This script is purely for educational purposes and should not be used to bypass DRM protected content.