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
- Host: GitHub
- URL: https://github.com/jwplayer/mpegdash
- Owner: jwplayer
- Created: 2016-02-29T17:16:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T19:15:18.000Z (about 4 years ago)
- Last Synced: 2024-08-07T23:53:09.727Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 15
- Watchers: 12
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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/'
```
