YorVeX / xObsBeam

OBS plugin to transmit video and audio feeds between OBS instances, raw, or with lossless or lossy compression. NDI alternative.
https://obsproject.com/forum/resources/beam.1705/
MIT License
89 stars 5 forks source link

QOIR support #5

Closed YorVeX closed 1 year ago

YorVeX commented 1 year ago

QOIR is a derivate of QOI that has both improved compression speed and ratio compared to QOI. That pretty much sounds like a "can only win" situation, however, the one nice thing about QOI is that it's so simple and Beam has a pure C# implementation for it that will always automatically be platform independent, without the need for any external library.

For QOIR the code is much more complex, not really making me want to rewrite it as a full C# implementation, so it will be yet another native library that has to be separately managed and installed and so on. Right now I think the managed QOI implementation will stay in Beam in addition as an always available fallback option even when QOIR support was added.

YorVeX commented 1 year ago

PoC can already be deemed successful, even with optimizations not being finished yet (e.g. lots of unnecessary memory allocations) the QOIR compression is already causing 5% less CPU load than QOI in my test setup on average while having a 5% better compression ratio, only wins exactly as I was hoping.

Next steps are to offer this as a configurable option in the GUI and of course to improve the memory allocations.