NGINX server with rtmp module for HLS live streaming
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Orne Brocaar dfb01a3184
Merge pull request #13 from lake54/fix-typo
6 years ago
static Initial commit. 8 years ago
Dockerfile Fix typo in nginx source address 6 years ago readme: fix minor typo 7 years ago
nginx.conf Merge pull request #11 from leandromoreira/patch-2 6 years ago

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.