Frequently Asked Questions

Setup an RTMP Server
Last Updated 2 years ago

Log into the server and install required packages
sudo apt install build-essential libpcre3 libpcre3-dev libssl-dev unzip

Download nginx
wget http://nginx.org/download/nginx-1.11.4.tar.gz

Download RTMP Master Module
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip

Unpack and Enter the Directory
 tar -zxvf nginx-1.11.4.tar.gz
 unzip master.zip
 cd nginx-1.11.4

Build Nginx
./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master
 make
 sudo make install

Start Nginx

sudo /usr/local/nginx/sbin/nginx

Open the RTMP file to modify it
sudo nano /usr/local/nginx/conf/nginx.conf

Add the following Entry at The End

rtmp {

        server {

                  listen 1935;
                  chunk_size 4096;
                   application live {
                               live on;
record off; } } }


Restart Nginx
sudo /usr/local/nginx/sbin/nginx -s stop
sudo /usr/local/nginx/sbin/nginx





Source: https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

Please Wait!

Please wait... it will take a second!