Sign inSign up

sannjayy/nginx-live-stream

By sannjayy

•Updated over 2 years ago

nginx-live-stream converts RTMP input to HLS for efficient video distribution across platforms.

Image
Web servers
0

326

sannjayy/nginx-live-stream repository overview

⁠Nginx Live Stream Documentation

⁠Get Started

To start the Nginx Live Stream server, follow the steps below:

  1. Pull the Docker image:
docker pull sannjayy/nginx-live-stream:latest
  1. Run the Docker container:
docker run -p 1935:1935 -p 8080:8080 sannjayy/nginx-live-stream

⁠Run in Detached Mode

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

⁠Start Stream (ffmpeg)

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

⁠Embedded Player

To access the embedded player, navigate to the following URL in your browser:

http://localhost:8080/player/?url=http://localhost:8080/hls/test.m3u8

⁠More Information

Tag summary

Content type

Image

Digest

sha256:b4efa48b3…

Size

37.5 MB

Last updated

over 2 years ago

docker pull sannjayy/nginx-live-stream