-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTMP live stream disconnects suddenly #1775
Comments
I have seen similar issues without figuring it out. Will share here if I come up with something that resolves this, just wanted to let you know. Currently trying to set max_message 5M; to see if that resolves it. |
Hi, first of all thank you for answering! I already tried setting We found out that SELinux was enabled in the CentOS 7 machine, when we disabled it the problem that made the stream fall every single day at the same time, around 10:20-10:40 and then at 14:00 was gone. Unfortunately even after disabling that the stream still falls, but only once per day and normally between 00:00AM - 06:00AM. We don't know what causes that. These are the only running services, I think none of these should interfere with live streaming:
EDIT: I'm adding a screenshot since the pasted code doesn't look very good: |
We are having a problem with our nginx RTMP stream. The live stream works fine, but it can suddenly stop and we aren't being able to find out why after an exhausting reseach. We are using a GoPro Hero 12.
This can't be a network or camera issue, we already dismissed that. To dimiss that we set up a YouTube live stream simultaneously to verify that when our RTMP stream falls the camera still streams in YouTube. We are sure this has to be a server side issue.
The stream falls every single day at the same time, around 10:20-10:40 and then at 14:00. We checked everything, but we found nothing. The server is a clean server fully dedicated to RTMP live streaming.
This is our simple RTMP config in
nginx.conf
:When the RTMP stops, this is what is logged in the error log (this goes since the fall until we restart nginx):
I had to censor the IP adresses. And nginx service was active in every single moment, never stopped working, it just disconnects the stream.
This is the message that the GoPro shows when the RTMP stream disconnects (remember that the GoPro is still streaming on YouTube with no problem when this happens):
We monitor the RTMP live stream with a cronjob running this command, if it doesn't give answer we get an alert, but when it's active it displays some info, we don't know if it can be useful:
If I can provide anything else let me know.
The text was updated successfully, but these errors were encountered: