Nginx Config for rtmp streaming

Here is nginx config used for RTMP streaming.

user  nginx;
worker_processes  1;

worker_rlimit_nofile 300000;
events {
    worker_connections  16000;
    use epoll;
}

rtmp_auto_push on;

rtmp {
   server {
     listen 25462;
     interleave on;
     wait_video on;
     idle_streams off;
     chunk_size 4096;
     notify_method get;
     application live{
        live on;
        record off;
        on_play http://localhost:25461/streaming/rtmp.php;
        on_publish http://localhost:25461/streaming/rtmp.php;
        on_play_done http://localhost:25461/streaming/rtmp.php;
     }
   }
}

http {
	allow 127.0.0.1;
	deny all;
	server {
            listen 31210;
            server_name  localhost;
            location /control {
                rtmp_control all;
            }
            location /stat {
                rtmp_stat all;
            }
       }
}
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *