SRT-Stats-Monitor icon indicating copy to clipboard operation
SRT-Stats-Monitor copied to clipboard

Rtmp mode wont change scene on Connection Lost

Open shaddowgigs opened this issue 3 years ago • 9 comments

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?

shaddowgigs avatar Sep 29 '22 20:09 shaddowgigs

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

loopy750 avatar Oct 02 '22 13:10 loopy750

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.

DJDevil2K avatar Oct 29 '22 23:10 DJDevil2K

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:

image

loopy750 avatar Nov 07 '22 15:11 loopy750

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

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.

image

Using the following configuration; image

Using the quoted nginx release and conf file, which is receiving/publishing the stream and stats just fine.

jedivader20 avatar Nov 07 '23 08:11 jedivader20

RTMPServerPort should be 8080, not 1935

Confirm nginx-rtmp-module is running by browsing http://127.0.0.1:8080/stat

loopy750 avatar Nov 07 '23 08:11 loopy750

RTMPServerPort should be 8080, not 1935

Confirm nginx-rtmp-module is running by browsing http://127.0.0.1:8080/stat

image

Changing from 1935 to 8080 resolved the ping issue but not the scene changing issue.

image

Scene is active, Media Source matches the config file and is live.

jedivader20 avatar Nov 07 '23 08:11 jedivader20

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)

loopy750 avatar Nov 07 '23 08:11 loopy750

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

image

loopy750 avatar Nov 07 '23 08:11 loopy750

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.

jedivader20 avatar Nov 07 '23 09:11 jedivader20