arut / nginx-rtmp-module

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

Connection refused after certbot install #1402

Open Khalid-Alqahtani opened 5 years ago

Khalid-Alqahtani commented 5 years ago

Hi

I installed nginx rtmp module following this guide

https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmp and I already use it to stream HLS over HTTP

Then I followed this guide to start streaming over HTTPS https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx

I changed nginx.conf in HTTP -> server block to

listen 443 ssl; server_name rcm3dstream.com; ssl_certificate /etc/letsencrypt/live/Mysite.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/Mysite.com/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5;

Then When I tried to stream with the same command ffmpeg -f video4linux2 -framerate 10 -video_size 640x480 -i /dev/video0 -c:v libx264 -an -f flv rtmp://Mysite.com/myapp/mystream

The connection refused

[tcp @ 0x1209cc0] Connection to tcp://Mysite.com:1935 failed: Connection refused [rtmp @ 0x1206320] Cannot open connection tcp://Mysite.com:1935 rtmp://Mysite.com/myapp/mystream: Connection refused

Can anyone help me with this, please

misiek08 commented 5 years ago

Show your rtmp and http server blocks (or whole config). You probably set SSL in rtmp block instead of http OR you did reload instead of full restart of nginx. That my guesses, we can help more seeing whole picture (configuration).

wt., 9.04.2019, 13:40 użytkownik Khalid-Alqahtani notifications@github.com napisał:

Hi

I installed nginx rtmp module following this guide

https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmp and I already use it to stream HLS over HTTP

Then I followed this guide to start streaming over HTTPS https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx

I changed nginx.conf in HTTP -> server block to

listen 443 ssl; server_name rcm3dstream.com; ssl_certificate /etc/letsencrypt/live/Mysite.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/Mysite.com/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5;

Then When I tried to stream with the same command ffmpeg -f video4linux2 -framerate 10 -video_size 640x480 -i /dev/video0 -c:v libx264 -an -f flv rtmp://Mysite.com/myapp/mystream

The connection refused

[tcp @ 0x1209cc0] Connection to tcp://rcm3dstream.com:1935 failed: Connection refused [rtmp @ 0x1206320] Cannot open connection tcp:// rcm3dstream.com:1935 rtmp://rcm3dstream.com/myapp/mystream: Connection refused

Can anyone help me with this, please

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arut/nginx-rtmp-module/issues/1402, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbp9g9qVUdnJJ4gamFrjxj9qgRenkrwks5vfHwwgaJpZM4ckSWg .