NOALBS / nginx-obs-automatic-low-bitrate-switching

Simple app to automatically switch scenes in OBS based on the current bitrate fetched from the NGINX stats page.
http://noalbs.com
MIT License
365 stars 77 forks source link

[NGINX] Error fetching stats #55

Closed HyperVolcan closed 3 years ago

HyperVolcan commented 3 years ago

Hi all, I've configured everything in the guide RTMP stream to NGINX server working fine I can read the stats page. However when I end the RTMP connection on my phone to the server (Stop streaming) it does not switch to my offline scene it just sits there saying [NGINX] Error fetching stats [NGINX] Error fetching stats [NGINX] Error fetching stats

Until I start the RTMP stream\connection again.

Tried this on a windows setup and to external centos 8 setup same issue

HyperVolcan commented 3 years ago

I've switched to using Nimble instead which works fine thansk @b3ck

715209 commented 3 years ago

Hey HyperVolcan,

Glad you got it working! Could i still get the version number you are using, so I can test if there's no bug with NGINX.

HyperVolcan commented 3 years ago

Hey HyperVolcan,

Glad you got it working! Could i still get the version number you are using, so I can test if there's no bug with NGINX.

Hey it was latest version of noalbs and error I had was with the included NGINX version & also NGINX 1.18.0 on centos 8

b3ck commented 3 years ago

Ahh you weren't using the nginx-rtmp supplied with NOALBS, I wonder.. was it still generating a stats page from stat.xsl and was it being called out in the NGINX config?

On Tue, Feb 16, 2021, 4:45 AM HyperVolcan notifications@github.com wrote:

Hey HyperVolcan,

Glad you got it working! Could i still get the version number you are using, so I can test if there's no bug with NGINX.

Hey it was latest version of noalbs and error I had was with the included NGINX version & also NGINX 1.18.0 on centos 8

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/715209/nginx-obs-automatic-low-bitrate-switching/issues/55#issuecomment-779753164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANI57XINTCMS5DL6XBJOB3S7JED5ANCNFSM4XVSLXFA .

715209 commented 3 years ago

I did break the switching on stop last week for a day so I was wondering if that is the version @HyperVolcan is using.

DigibitDK commented 3 years ago

I have the same issue using NGINX - NoAlbs v1.9.1 works fine, v1.9.3 makes [NGINX] Error fetching stats

715209 commented 3 years ago

I'm using NGINX 1.19.6 and it's working fine.

DigibitDK commented 3 years ago

NGINX v1.17.5 here. I might check up on that later today.

HyperVolcan commented 3 years ago

Hey @715209 mate looks like you fixed the code for stopped stream or null stream should I try NGINX again?

b3ck commented 3 years ago

You can if you want.. if NMS is working for you then why change it? NMS is built-in.. that's one less thing to run..

-b3ck

On Tue, Feb 16, 2021 at 7:02 PM HyperVolcan notifications@github.com wrote:

Hey @715209 https://github.com/715209 mate looks like you fixed the code for stopped stream or null stream should I try NGINX again?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/715209/nginx-obs-automatic-low-bitrate-switching/issues/55#issuecomment-780219905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANI57SVUSN3JJYEWRIPWCDS7MIQZANCNFSM4XVSLXFA .

DigibitDK commented 3 years ago

No, still [NGINX] Error fetching stats using v1.9.4 with latest version of NGINX. (Your v1.9.1 works fine)

NGINX: 1.19.7 RTMP: 1.2.1 FFMPEG: 4.3.1

/Michael.