An NGiNX server that can take a stream from OBS, using the Real-Time-Messaging Protocol (RTMP), and encode it to an HTTP Live Streaming Protocol (HLS) so that we can consume it on a client.
Everything here is based on my other video streaming work which can be found here:
https://github.com/krynv/video-streaming/
https://github.com/krynv/video-streaming-with-mongodb/
Have docker
, docker-compose
and OBS installed.
git clone [email protected]:krynv/live-streaming-server.git && cd auth && npm i && cd ..
docker-compose build
docker-compose up -d
Open OBS and set the server to:
rtmp://localhost:1935/live
With the following stream key:
krynv?key=supersecret
Start streaming.
Open the webpage to view the stream (should load after some time): http://localhost:8080
You will see all of the video data in the in the ./data/
folder of this project once you have started streaming.
(./data
is mapped to the /tmp/hls
folder of the docker container)