Coder Social home page Coder Social logo

json-manifest-to-mpd's Introduction

json-manifest-to-mpd

A tool to convert Json Video Manifests into Dash ones (MPEG-DASH MPD)

Note

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

Usage

Basic usage

With python or python3 installed

  1. Clone the repository or download 'mpd.py'
  2. Copy the json manifest into 'manifest.json'
  3. python3 mpd.py -i manifest.json -o output.mpd
  4. Your completed MPD will be 'output.mpd'

General usage

  1. Follow step 1 and 2 above
  2. 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

To-do

  • 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?

Disclaimer

I don't promote or condone the use of this for piracy.

json-manifest-to-mpd's People

Contributors

lkekana avatar

Stargazers

Thomas Lekanger avatar Mike DemonDad avatar

Watchers

 avatar

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.