Skip to main content

m3u8 playlist generator

Project description

[![CircleCI](https://circleci.com/gh/cambackup/m3u8-generator.svg?style=svg)](https://circleci.com/gh/cambackup/m3u8-generator)

A Very simple m3u8 generator
============================

This is a simple m3u8 generator, it takes start, end, and duration and outputs a m3u8 (HLS)

Tested on :
Python 2.7.5 & 3.5

### Install
clone this repo
`git clone git@github.com:cambackup/m3u8-generator.git`

This is made using the draft [https://tools.ietf.org/html/draft-pantos-http-live-streaming-08](https://tools.ietf.org/html/draft-pantos-http-live-streaming-08)

### How to use
Let's say you have some video you want to serve

You will need :

- the path to the media (can be relative depending how you serve it)
- duration

You need to create a list containing one or more dictionaries :

```
from m3u8_generator import PlaylistGenerator
playlist_entries = [
{
'name': "Awesomevideo_001.mp4",
'duration' : '10.04',
}

]

playlist = PlaylistGenarator(playlist_entries).generate()
```

The idea of this is to use no dependecy and be as fast as possible,
here at [cambackup.com](https://www.cambackup.com) we generate a lot of playlist, they need to be as fast as it can be.
any suggestion please let us know.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m3u8-generator-1.0.tar.gz (1.5 kB view details)

Uploaded Source

File details

Details for the file m3u8-generator-1.0.tar.gz.

File metadata

File hashes

Hashes for m3u8-generator-1.0.tar.gz
Algorithm Hash digest
SHA256 f450a315d0f6b6bfa71f6b1b50fa4662d4981680b2a18315ddd20c2910085a8b
MD5 5ad169c7bf52a4aa5fd9b6c4f7006285
BLAKE2b-256 988dc075ba307750de1e910f2e5222dbace0f47b6cda072678c025828f51b9e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page