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

No Stats but Stream running - No automatic switching #73

Closed logmask closed 2 years ago

logmask commented 2 years ago

Hey,

i setup nginx + automatic switching on a ubuntu vps. obs is running at home on a windows computer.

so far it is all working, i can connect to the rtmp, i can switch scenes through twitch chat etc.

But: i can not see any !bitrate, !sourceinfo or !obsinfo in chat. The stat page is working and can be accessed.

i dont know how to fix it?

14:48 me: !sourceinfo 14:48 bot: [SRC] offline 14:48 me: !obsinfo 14:48 bot: [OBS] offline 14:49 me: !bitrate 14:49 bot: Current bitrate: offline

[7/7/2021] [2:03:19 PM] [OBS] › ℹ info Connecting & authenticating [7/7/2021] [2:03:19 PM] [CHT] › ℹ info Connecting to twitch [7/7/2021] [2:03:19 PM] [OBS] › ✔ success Successfully connected [7/7/2021] [2:03:20 PM] [CHT] › ✔ success Successfully Connected [7/7/2021] [2:03:20 PM] [CHT] › ✔ success Authenticating and joining channel #me

config.json: changed several times, from standard nginx to ip of nginx server from localhost/stat to ip/stat etc. etc. nothing changed there.

at the moment it is like this:

"rtmp": { "server": "rtmp://IP:1935/publish/live", "stats": "http://IP/stat", "application": "publish", "key": "live" },

can anyone help here? 1bb4253e74621fa5515fbd56c121df8c

logmask commented 2 years ago

Sorry attached are my current config files. nginx.config.txt config.json-.txt

715209 commented 2 years ago

Hey @logmask ,

Are you streaming from OBS?

logmask commented 2 years ago

youre right - strange, because it worked on the windows pc already without going live

thank you!

715209 commented 2 years ago

When you are streaming from OBS it should work, like actually streaming to twitch.