nginx rtmp media server

  nginx

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

apt-get install build-essential -y

apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev unzip -y

wget http://nginx.org/download/nginx-1.19.1.tar.gz
tar xvfz nginx-1.19.1.tar.gz && cd nginx-1.19.1

mkdir modules
cd modules
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
unzip master.zip

./configure --add-module=/modules/nginx-rtmp-module --with-http_ssl_module --with-http_mp4_module
make
make install

installation will be in /usr/local/nginx
sample cfg

user nobody;
worker_processes 1;
error_log logs/error.log off;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
ping 30s;
notify_method get;
application myapp { live on; # sample play/publish handlers #on_play http://localhost:8080/on_play; #on_publish http://localhost:8080/on_publish; # sample recorder #recorder rec1 { # record all; # record_interval 30s; # record_path /tmp; # record_unique on; #} # sample HLS #hls on; #hls_path /tmp/hls; #hls_sync 100ms; } # Video on demand application vod { play /filme; } # Video on demand over HTTP #application vod_http { # play http://localhost:8080/vod/; #} }
}