Skip to content

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

pip install mpegdash

Usage

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

mpd = MPD(profile='urn:mpeg:dash:profile:isoff-on-demand:2011', minimum_buffer_time=1)
                                   
period = Period(period_id='0', start=0, duration=47.175)

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

Resources

Stars

17 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages