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
364 stars 77 forks source link

Noalbs - Automatically switching my scene to Offline - Error: Missing field 'dropped_pkts' #170

Open januszbe opened 3 months ago

januszbe commented 3 months ago

Hello,

I would appreciate your support regarding a problem I encountered.

I have configured Noalbs to work with my Twitch account, and it properly reacts to my commands in the chat. However, I encounter a problem related to switching my scene to LIVE or even using it on OBS with Noalbs.

After starting Noalbs and attempting to change the scene to LIVE, I see an error reported by the Noalbs console. As a result, Noalbs causes the LIVE scene to automatically switch to the OFFLINE scene.

Despite my belabox's high bitrate (around 3000-8000), this scene switch should not happen.

The switch occurs after Noalbs shows this error 5 times when try use LIVE scene: 2024-08-03T 15:32:36.56 2695Z ERROR NOALBS{user=MY_NAME}:Switcher: noalbs::stream_servers::belabox: Error parsing stats (http://MY_SERVER_IP:8181/stats) missing field dropped_pkts

My stats page is generated properly and includes the following information: {"fixed_by":"Glowf1sh @ Twitch [v1.7 - 04.05.2024]","publishers":{"publish/live/MY_NAME":{"bitrate":3990,"bytesRcvDrop":14960,"bytesRcvLoss":106702880,"mbpsBandwidth":9.276,"mbpsRecvRate":5.158361374449505,"msRcvBuf":1935,"pktRcvDrop":11,"pktRcvLoss":78458,"rtt":50.535,"uptime":1036}},"status":"ok"}

I have the latest version of Noalbs (v2.11.2). Using it on my OS X (macOS Monterey 12.7.2).

I used placeholders for my confidential data shown above (server IP and names).

What can I do in this case to get rid of the error, fix or debug it?

Thank you for your assistance. Janusz

715209 commented 3 months ago

Hi @januszbe ,

Looks like there's an issue with parsing the stats. I see that you're also using glowf1sh docker setup, which if I remember correctly actually uses SRT Live Server. Try switching the stream server type to SrtLiveServer