TakuSemba / docker-nginx-rtmp

docker file for RTMP on nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Nginx RTMP

This Dockerfile uses nginx-rtmp-module. Server receives RTMP streams and publish HLS. Note that this publishes only one resolution on HLS.

How to use

0. clone the repo

git clone git@github.com:TakuSemba/docker-nginx-rtmp.git
cd docker-nginx-rtmp

1. Build the Dockerfile

docker build -t nginx_rtmp .

2. run the Container

docker run -t -i -p 1935:1935 -p 80:80 --rm nginx_rtmp

3. send RTMP stream from client

send stream to rtmp://ip-address:1935/live/stream_name. you can also receive RTMP stream with the same url.

4. play hls

media playlist is http://ip-address/hls/stream_name.m3u8

About

docker file for RTMP on nginx


Languages

Language:XSLT 100.0%