SRT-Stats-Monitor
SRT-Stats-Monitor copied to clipboard
Rtmp mode wont change scene on Connection Lost
I enabled the rtmp server option using nginx to receive the feed from a gopro and everything seems to be working except when the signal disconnects. Instead of changing to the fallback scene it just stays on Live or low bitrate scene with the last frame of the feed. When the image comes back live it refreshes itself but doesn’t go away when signal lost. The only way to have it react is to go on the properties and exit out, then it goes to the signal lost scene but thats not an option once you are outside. What could be the issue here?
Hi. I have a few things I have to do IRL before I get a proper chance to take a look.
Does changing RISTFailMode1= and/or RISTFailMode2= make a difference?
What is the NGINX file? I've tested with mine that is this version: https://github.com/loopy750/NGINX-Stats-Monitor/blob/master/modifications/nginx/nginx.conf
And used this NGINX release: https://github.com/illuspas/nginx-rtmp-win32/releases/tag/v1.2.1
When i use the nginx server on my windows computer, does it work ? Because when i entry my local ip and port in the conf file, loop show stable connection the whole time even when the stream is offline.
Does it look like everything is working at it should at http://127.0.0.1:8080/stat ? That's the page where the stats are grabbed.
When no stream is online is should appear as the following:

Hi. I have a few things I have to do IRL before I get a proper chance to take a look.
Does changing
RISTFailMode1=and/orRISTFailMode2=make a difference?What is the NGINX file? I've tested with mine that is this version: https://github.com/loopy750/NGINX-Stats-Monitor/blob/master/modifications/nginx/nginx.conf
And used this NGINX release: https://github.com/illuspas/nginx-rtmp-win32/releases/tag/v1.2.1
Replying here so as to not duplicate the issue. I'm experiencing the same problem. I've setup two config files, one for SRT and the other for RTMP. SRT works fine, however when using RTMP, I don't get a scene change, it constantly reports stream down, and has a very high (~3000ms) ping for HTTP. The obs-websocket-http configuration is identical between the two configuration files.
Using the following configuration;
Using the quoted nginx release and conf file, which is receiving/publishing the stream and stats just fine.
RTMPServerPort should be 8080, not 1935
Confirm nginx-rtmp-module is running by browsing http://127.0.0.1:8080/stat
RTMPServerPort should be 8080, not 1935
Confirm nginx-rtmp-module is running by browsing http://127.0.0.1:8080/stat
Changing from 1935 to 8080 resolved the ping issue but not the scene changing issue.
Scene is active, Media Source matches the config file and is live.
Changing from 1935 to 8080 resolved the ping issue but not the scene changing issue.
Not sure what you mean specifically. Check you've followed this part before troubleshooting further: https://github.com/loopy750/SRT-Stats-Monitor#obs-studio-required
(I think, it's been too long since I played with RTMP, I can't remember if this part is relevant)
Disregard previous post.
Settings that work for me during testing are...
My nginx config is taken from here: https://raw.githubusercontent.com/loopy750/SRT-Stats-Monitor/main/modifications/resources/nginx.conf
And my testing is via Larix Screencaster using the config: rtmp://x.x.x.x/live/stream1
Understood, I now recognise where I went wrong. Working as intended. I was just using rtmp://x.x.x.x/live when I should have been using a stream ID per the configuration.