NGINX server with rtmp module for HLS live streaming
Go to file
Mushtaque Ahamed A 13662fb2d1 Update Dockerfile
Hi, this is Mizzlr. I have updated your docker file, to make it cleaner and build to a smaller image size. The modified docker file builds to an image of size 537 MB, while the original docker file resulted in an image of size 640 MB. I have built and tested the modified docker file, and works awesome. Please accept my proposal for docker file change.
2016-09-23 17:10:04 +04:00
static Initial commit. 2015-03-09 17:40:56 -03:00
Dockerfile Update Dockerfile 2016-09-23 17:10:04 +04:00
nginx.conf Remove 1080p, it makes the videos hang now and then. 2015-03-12 11:06:55 -03:00
README.md readme: fix minor typo 2016-07-08 09:53:32 +02:00

NGINX RTMP Dockerfile

This Dockerfile installs NGINX configured with nginx-rtmp-module, ffmpeg and some default settings for HLS live streaming.

Note: in the current state, this is just an experimental project to play with RTMP and HLS.

How to use

  1. Build and run the container (docker build -t nginx_rtmp . & docker run -p 1935:1935 -p 8080:80 --rm nginx_rtmp).

  2. Stream your live content to rtmp://localhost:1935/encoder/stream_name where stream_name is the name of your stream.

  3. In Safari, VLC or any HLS compatible browser / player, open http://localhost:8080/hls/stream_name.m3u8. Note that the first time, it might take a few (10-15) seconds before the stream works. This is because when you start streaming to the server, it needs to generate the first segments and the related playlists.