Docker-nginx-rtmp/README.md

40 lines
1 KiB
Markdown
Raw Permalink Normal View History

2016-02-15 15:04:44 +00:00
# Docker-nginx-rtmp
2016-04-29 16:17:37 +01:00
Docker image for an RTMP/HLS server running on nginx
2016-02-15 15:04:44 +00:00
2016-04-26 16:39:40 +01:00
NGINX Version 1.9.15
2016-02-15 15:04:44 +00:00
nginx-rtmp-module Version 1.1.7
### Configurations
This image exposes port 1935 for RTMP Steams and has 2 channels open "live" and "testing".
2016-04-29 16:17:37 +01:00
Live is also accessable via HLS on port 8080
2016-04-26 16:39:40 +01:00
It also exposes 8080 so you can access http://<your server ip>:8080/stat to see the streaming statistics.
2016-02-15 15:04:44 +00:00
The configuration file is in /opt/nginx/conf/
### Running
To run the container and bind the port 1935 to the host machine; run the following:
```
2016-04-26 16:39:40 +01:00
docker run -p 1935:1935 -p 8080:8080 jasonrivers/nginx-rtmp
2016-02-15 15:04:44 +00:00
```
### OBS Configuration
Under broadcast settigns, set the follwing parameters:
```
Streaming Service: Custom
Server: rtmp://<your server ip>/live
2016-02-15 15:07:07 +00:00
Play Path/Stream Key: mystream
2016-02-15 15:04:44 +00:00
```
### Watching the steam
In your favorite RTMP video player connect to the stream using the URL:
2016-02-15 15:07:07 +00:00
rtmp://&lt;your server ip&gt;/live/mystream
2016-04-29 16:17:37 +01:00
http://&lt;your server ip&gt;/hls/mystream.m3u8
2016-02-15 15:04:44 +00:00
### Tested players
* VLC
* omxplayer (Raspberry Pi)