https://github.com/brocaar/nginx-rtmp-dockerfile
NGINX server with rtmp module for HLS live streaming
https://github.com/brocaar/nginx-rtmp-dockerfile
Last synced: about 1 year ago
JSON representation
NGINX server with rtmp module for HLS live streaming
- Host: GitHub
- URL: https://github.com/brocaar/nginx-rtmp-dockerfile
- Owner: brocaar
- Created: 2015-03-10T18:32:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T17:00:55.000Z (over 7 years ago)
- Last Synced: 2025-04-10T14:41:15.672Z (about 1 year ago)
- Language: XSLT
- Size: 11.7 KB
- Stars: 190
- Watchers: 19
- Forks: 108
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
Links
-----
* http://nginx.org/
* https://github.com/arut/nginx-rtmp-module
* https://www.ffmpeg.org/
* https://obsproject.com/