ettr / nginx-rtmp-dockerfile

NGINX RTMP Dockerfile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX RTMP Dockerfile

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

How to use

  1. Build container docker build -t lucasmundim/nginx-rtmp .

  2. Run it docker run -p 1935:1935 -p 8080:80 --rm lucasmundim/nginx-rtmp

  3. Stream your live content to rtmp://dockerhost:1935/live/stream_name where stream_name is the name of your stream.

  4. In Safari, VLC or any HLS compatible browser / player, open http://dockerhost: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.

Contributing

  1. Fork it
  2. Checkout the develop branch (git checkout -b develop)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

License

This application is distributed under the MIT License.

About

NGINX RTMP Dockerfile

License:MIT License


Languages

Language:XSLT 88.3%Language:Nginx 11.7%