A tool to convert Json Video Manifests into Dash ones (MPEG-DASH MPD)
-
initially made to convert Spotify Podcast manifests into MPD to stream using your own video player. i have not tested (or found) other services but i imagine it would be similar.
-
it will convert Widevine DRM'd manifests but they cannot be streamed without the decryption keys.
With python or python3 installed
- Clone the repository or download 'mpd.py'
- Copy the json manifest into 'manifest.json'
python3 mpd.py -i manifest.json -o output.mpd
- Your completed MPD will be 'output.mpd'
- Follow step 1 and 2 above
- Read usage below
usage: mpd.py [-h] -i INPUT -o OUTPUT [-vo] [-ao] [-so] [--lowest] [--highest]
[--avc_only] [--vp9_only] [--print_mpd]
Convert JSON video manifest to DASH MPD
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input JSON file
-o OUTPUT, --output OUTPUT
Output MPD file
-vo, --video_only Only include video
-ao, --audio_only Only include audio
-so, --sub_only Only include subtitles
--lowest Only include lowest bitrate
--highest Only include highest bitrate
--avc_only Only include AVC
--vp9_only Only include VP9
--print_mpd Print MPD to console
- Allow for input and output files to be specified with arguments
- Allow for choosing video, audio or sub only
- Allow for lowest bitrate only
- Allow for highest bitrate only
- Allow for avc or vp9 only
- Allow print MPD only
- More?
I don't promote or condone the use of this for piracy.