-
Notifications
You must be signed in to change notification settings - Fork 976
One NGINX RTMP Server for Multiple AVideo platforms
I'm suposing that you already have an AVideo Platform Running , also that you have installed and configured a working NGINX-RTMP server . If not , follow the guides bellow :
https://github.com/WWBN/AVideo/wiki/Set-up-my-own-Stream-Server
Rtmp-nginx does server with application . In our preconfigured configuration we have already used application named application live
and application adaptive
. So what we need are to create new application that nginx can handle , but we need to name them differently from other applications ; Example : application livedemo
( pick what ever name application you'd like )
What we need to do is make a copy of the default configuration that we had on application live
, changing only name of the application :
sudo nano /usr/local/nginx/conf/nginx.conf
The livedemo it's a copy of the live application . Should look something like this :
Notes:
You have to change the hls_path and indicate it on your configuration . Create a new directory for the new hls_path application . Example: HLS/livedemo
; mkdir /HLS/livedemo
You need to change the root path of the rtmp if you're using hls_base_url
On the second application I'm using subdomain demo2 as my second AVideo platform , so you need to indicate where the call is gonna be made .
You need to restart NGINX /usr/local/nginx/sbin/nginx -s stop && /usr/local/nginx/sbin/nginx
Now that we have configured the config file , we need to let the plugin know that the application name has changed ! To do that , we need to open our Live Plugin , and indicate the new application name ( only on the new site/sites ) . The default is live .
Make it look like this :
Now you should be ready to go ! 💯
I've created 10 different application , by names live
,live1
,live2
,live3
, ... live9
and this is how they look like on the rtmp stats :
This is powerful tool . With 10 application less then 300MB of RAM . You will be limited only by the bandwidth .
One NGINX-RTMP Server for Multiple AVideo platforms .