nginx-rtmp-ffmpeg-docker

Based on Tiangolo's nginx-rtmp-module Docker image that uses Nginx and Arut's nginx-rtmp-module. 2 routes setup, one injests RTMP vid and converts to HLS on the fly. The other simply proxies an RTMP stream.

Dockerfile composition

Run

docker build -t rtmp-live . docker run -d -p 1935:1935 --name rtmp-live rtmp-live docker stop rtmp-live

Endpoints

RTMP proxy: rtmp://localhost/live/key RTMP to HLS injestion: rtmp://localhost/hls/key HLS output: http://localhost/hls

Test with VLC

  • alias vlc=/Applications/VLC.app/Contents/MacOS/VLC
  • rtmpdump -v -r rtmp://13.236.178.121/live/test | vlc -

Resources