Blog inventory code

The order is necessary in order not to get lost, the disorder to find oneself

Back to home

Server streaming RTMP with nginx

Notes for the implementation of a RTMPS server on centos servers

Step1: install NGNIX server

Step2: yum install stunnel4 (only for faceook streaming and use RTPMS protocol)


chown nobody:nobody stunnel
chown nobody:nobody /var/log/stu
vi /etc/stunnel/stunnel.conf

pid = /var/run/stunnel/
output = /var/log/stunnel/stunnel.log

# setuid = nobody
# setgid = nobody

socket = r:TCP_NODELAY=1
socket = l:TCP_NODELAY=1

#debug = 3

client = yes
accept = 1936
connect =
#verifyChain = no

Step 4
 vi /etc/nginx/nginx.conf

        application live{
                live on;
                record off;
                wait_key on;
                interleave on;
                publish_notify on;
                sync 10ms;
                push rtmp://; //only with facebook and stunnell 
                push rtmp://;
                push rtmp://;