arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.36k stars 3.51k forks source link

Strong Server but My Stream freezes why #1443

Open lamadya opened 5 years ago

lamadya commented 5 years ago

Hi My Stream freezes why I have 2 high server but my stream Freezing after seconds Server one on contabo CPU : 1-2 x Intel Xeon E5 2630v4 1-2 x (10 x 2.20 GHz) RAM : 256 GB REG ECC Port / bandwidth : 1 Gbit/s port UNLIMITED Traffic Operating system : Ubuntu 16.04 Using this Tutorial For install YouPHPtube And NGINX RTMP https://github.com/YouPHPTube/YouPHPTube/wiki Sent stream Via FFMPEG With Loop Code Loop #!/bin/bash while :; do ffmpeg -re -i http://adtv.ercdn.net/adsport2/adsport2_720p.m3u8 -s hd720 -r 60 -g 60 -b:v 3M -c:v libx264 -x264-params keyint=60 -bufsize 500k -c:a aac -strict -2 -ar 44100 -b:a 128k -f flv rtmp://myipserver/live?p=4adc701664135e50b2354496086d53dd/5d70337586747 </dev/null > /dev/null 2>&1 done &

Server Two From a local distributor RAM 16 GB Processeur CPU 8 Cores / 8 Threads [Intel Atom™ 2,5 GHz] Débit Internet 1 Gb/s (Garanti 700 Mb/s) Operating system : Ubuntu 16.04 Using This Tutorial For install YouPHPtube And NGINX RTMP https://github.com/YouPHPTube/YouPHPTube/wiki Sent stream Via FFMPEG With Loop Code Loop #!/bin/bash while :; do ffmpeg -re -i http://adtv.ercdn.net/adsport2/adsport2_720p.m3u8 -s hd720 -r 60 -g 60 -b:v 3M -c:v libx264 -x264-params keyint=60 -bufsize 500k -c:a aac -strict -2 -ar 44100 -b:a 128k -f flv rtmp://myipserver/live?p=4adc701664135e50b2354496086d53dd/5d70337586747 </dev/null > /dev/null 2>&1 done & This My Nginx Config http://lamadya.com/nginx.conf But My Stream freezes why Please Help Me

theraw commented 4 years ago

freezes like how? have you seen your logs? without being able to see what's in logs and knowing if your source runs without problems (drops) i can't help you