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

Adding support for MediaMTX #144

Closed tompointexe closed 5 months ago

tompointexe commented 1 year ago

Hi, would it be possible to add support for MediaMTX, a free and opensource multi-purpose and format streaming server

https://github.com/bluenviron/mediamtx

Thanks a lot

b3ck commented 1 year ago

Does it have a way to read streams and see the bitrate?

tompointexe commented 1 year ago

I sadly don't think so The API is documented here https://bluenviron.github.io/mediamtx/ but after a quick look, all endpoint we need are here, they just dont return the bitrate Edit: Updated the api Link

715209 commented 1 year ago

Hi @tompointexe ,

Looks like it's possible to grab the bytesReceived, I'll have to calculate the bitrate from that.