/nginx-vod-module-fmp4-hls

Play fragmented mp4's on HLS using nginx-vod-module

Primary LanguageNginx

nginx-vod-module-fmp4-hls

This project aims to support some experiments around the playback of fragmented MP4’s on the HTTP Live Streaming protocol.

It uses Kaltura’s nginx-vod-module and lua-nginx-module to reuse m4s segments from the MPEG-Dash location by pointing the HLS manifests to them.

Running

Assuming you have docker installed on your computer, clone the repository and go to the folder:

$ git clone https://github.com/flavioribeiro/nginx-vod-module-fmp4-hls.git && cd nginx-vod-module-fmp4-hls

Build a docker image from the Dockerfile:

$ docker build .

Now, get the docker IMAGE ID and spin up a new instance binding to your local port:

$ docker images
REPOSITORY                TAG                               IMAGE ID            CREATED             SIZE
<none>                    <none>                            4c064be1f291        12 minutes ago      296 MB
$ docker run -p 127.0.0.1:80:80 4c064be1f291

The nginx instance is writing logs on stdout to make it easier for debugging. You should be all set.

Examples

Drone

Food

Rocket

Devito

Occupy

Playing the HLS examples

You can playback the examples by using hls.js test page: http://video-dev.github.io/hls.js/demo/?src=[source_here]

References