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)
Step3:
chown nobody:nobody stunnel
chown nobody:nobody /var/log/stu
vi /etc/stunnel/stunnel.conf
pid = /var/run/stunnel/stunnel.pid
output = /var/log/stunnel/stunnel.log
# setuid = nobody
# setgid = nobody
# https://www.stunnel.org/faq.html
socket = r:TCP_NODELAY=1
socket = l:TCP_NODELAY=1
#debug = 3
[fb-live]
client = yes
accept = 1936
connect = live-api-s.facebook.com:443
#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://127.0.0.1:1936/rtmp/____ID_FB____?s_bl=1&s_ps=1&s_sw=0&s_vt=api-s&a=____KEY____; //only with facebook and stunnell
push rtmp://live-hou.twitch.tv/app/____KEY____;
push rtmp://a.rtmp.youtube.com/live2/7____KEY____;