Nginx RTMP on Ubuntu 18.04

Nginx RTMP is an Nginx module which allows you to add RTMP and HLS streaming to your media server. Previously, the RTMP and HLS modules were seperate Nginx modules, but they can now all be added to Nginx as a single module.

sudo su 
cd ~
mkdir nginx
cd nginx

RTMP Configuration

sudo apt-get install git gcc make libpcre3-dev libssl-dev libssl1.0-dev

git clone https://github.com/arut/nginx-rtmp-module

wget http://nginx.org/download/nginx-1.4.3.tar.gz
tar zxpvf nginx-1.4.3.tar.gz
cd nginx-1.4.3

./configure --add-module=/root/nginx/nginx-rtmp-module/ --with-http_ssl_module --prefix=/usr/local/nginx-streaming/

make
make install

cd /usr/local/nginx-streaming/conf
mv nginx.conf nginx.cong.bkp
nano nginx.conf

make clean 
make 
make install

mkdir mp4s flvs
cd mp4s/

Leave a Reply

Your email address will not be published.