Skip to content
/ c4-dl Public

Channel 4 downloader script to be used with pywidevine.

License

Notifications You must be signed in to change notification settings

Diazole/c4-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Channel 4 Downloader

A small python script to download Channel 4 content

Features

  • PSSH generator
  • MPD retrieval
  • Widevine licesnse challenge response
  • Stream downloader (yt-dlp & aria2c)
  • MP4 decryption (Bento4)
  • MP4 stream merger (FFmpeg)

Requirements

  • Python 3.10.*
  • pip
  • Working Widevine RSA key pair

Install

pip install -r requirements.txt

Usage

py .\c4-dl.py --download --wvd "C:\widevine_device.wvd" --url "https://www.channel4.com/programmes/the-big-bang-theory/on-demand/44564-001"

Arguments:

-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.

Notes

The downloader performs resource intensive operations and should ideally be re-written however, it works.

Disclaimer

  1. This script requires a working Widevine RSA key pair to retrieve the decryption key from the license server.
  2. This script is purely for educational purposes and should not be used to bypass DRM protected content.

About

Channel 4 downloader script to be used with pywidevine.

Topics

Resources

License

Stars

Watchers

Forks

Languages