An open API service indexing awesome lists of open source software.

https://github.com/jwplayer/mpegdash

DASH manifest generation and validation in Python
https://github.com/jwplayer/mpegdash

Last synced: over 1 year ago
JSON representation

DASH manifest generation and validation in Python

Awesome Lists containing this project

README

          

#### Installation

```bash
pip install mpegdash
```

#### Usage

```bash
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

```

#### Development

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

#### Test suite

```bash
python setup.py test
```

execute tests including stdout
```bash
python setup.py test --addopts '-s'
```

execute only benchmarking tests
```bash
python setup.py test --addopts '--benchmark-only'
```

#### Benchmarks

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

![python setup.py test --addopts './tests/benchmark/'](http://i.imgur.com/BzouoGR.png)