Skip to content

Athlon1600/nginx-rtmp-server

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
etc
 
 
 
 
 
 
 
 
 
 
 
 

GitHub last commit Top language

Video Streaming Server

See a demo of what this is here - https://demo.streamplanet.tv/

Installation

Download all the files first:

git clone https://github.com/Athlon1600/nginx-rtmp-server.git

Next, you need docker.

Windows
If you are testing this from your local windows computer, download Docker from here: https://docs.docker.com/docker-for-windows/install/

Linux
On your linux machine, just run this command on your fresh box

bash <(wget -O - https://raw.githubusercontent.com/Athlon1600/nginx-rtmp-server/master/install.sh)

Once installed, run this command inside the folder with the files:

docker-compose up --build -d

and that is it!

You could then login to any of the two "services" using:

docker exec -it rtmp /bin/bash
docker exec -it api_server /bin/sh

Monitoring

docker logs rtmp --tail 100
docker logs api_server --tail 100

Caddy

Useful for providing automatic HTTPS - one-click installation:

curl -sS https://webi.sh/caddy | sh

Modify .env and etc/Caddyfile accordingly, and then run:

caddy run --config ./etc/Caddyfile

Technical Notes

Powered by RTMP module for nginx.
https://www.nginx.com/products/nginx/modules/rtmp-media-streaming/

The original codebase stopped receiving updates years ago:
https://github.com/arut/nginx-rtmp-module

We will be using this fork instead:
https://github.com/sergey-dryabzhinsky/nginx-rtmp-module

Projects using this library

Links

About

📺 Set up your own video streaming site using nginx-rtmp module.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published