Skip to content

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.

Notifications You must be signed in to change notification settings

krynv/live-streaming-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Streaming Server

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/

Setup

Have docker, docker-compose and OBS installed.

git clone git@github.com: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)

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published