ankitg12 / mpegdash

DASH manifest generation and validation in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

pip install mpegdash

Usage

from mpegdash.mpd import MPD
from mpegdash.period import Period

mpd = MPD(profiles='urn:mpeg:dash:profile:isoff-on-demand:2011', min_buffer_time=1)

period = Period(id='0', start=0, duration=47.175)

mpd.append_period(period)

print mpd.to_xml()
<?xml version='1.0' encoding='UTF-8'?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:DASH:schema:MPD:2011"
     minBufferTime="PT1S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011"
     xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 DASH-MPD.xsd" type="static">
    <Period id="0" start="P0D" duration="PT47.175S"/>
</MPD>

Development

git clone git@github.com:pinge/mpegdash.git
cd mpegdash
python setup.py test
python setup.py install

Test suite

python setup.py test

execute tests including stdout

python setup.py test --addopts '-s'

execute only benchmarking tests

python setup.py test --addopts '--benchmark-only'

Benchmarks

python setup.py test --addopts './tests/benchmark/'

python setup.py test --addopts './tests/benchmark/'

About

DASH manifest generation and validation in Python


Languages

Language:Python 100.0%