nginx-live-stream converts RTMP input to HLS for efficient video distribution across platforms.
326
To start the Nginx Live Stream server, follow the steps below:
docker pull sannjayy/nginx-live-stream:latest
docker run -p 1935:1935 -p 8080:8080 sannjayy/nginx-live-stream
To run the Docker container in detached mode, use the following command:
docker run -d -p 1935:1935 -p 8080:8080 sannjayy/nginx-live-stream:latest
To start streaming using ffmpeg, execute the command below:
ffmpeg -re -i video.mp4 -c:v libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ar 44100 -f flv rtmp://localhost:1935/live/test
To access the embedded player, navigate to the following URL in your browser:
http://localhost:8080/player/?url=http://localhost:8080/hls/test.m3u8
GitHub Repository: nginx-live-stream-docker
Docker Hub Image: sannjayy/nginx-live-stream
Content type
Image
Digest
sha256:b4efa48b3…
Size
37.5 MB
Last updated
over 2 years ago
docker pull sannjayy/nginx-live-stream