Drm-Dash-stream-downloader
Drm-Dash-stream-downloader copied to clipboard
This script helps to download drm protected dash stream [if key is known] and output to a video mp4 file
Drm Dash stream downloader
Description
Downloads MPEG-DASH Cenc based drm contents by parsing the manifest if the keyID and key is known.
Requirements
- You would need to download ffmpeg and mp4decrypter from Bento4 SDK and ensure they are in path(typing their name in cmd invokes them).
- Dash-IF conforming Manifest file having information about the cenc keyID ,PSSH box information.
- Basic python knowledge to edit the script's manifest parser function according to your manifest and set your prefered download location.
Usage
- Clone the repository
- Install the requirements in requirements.txt using pip
- Find the manifest(mpd) file you would want to download and copy its url (Use Devtools if in a browser.)
- View the mpd file and check if it uses single mp4 segment or multi segments($Number_xx$.mp4)
- If it is of multi segments then use dashdownloader_multisegment.py
- Paste the mpd url in the script at the bottom inside the standalone check condition in mpd variable.
- Run the script after checking requirements are satisfied.
Note
CBCS and SAMPLE-AES contents need to be manually analyzed and the script has to be modified for decrypting those content.