Giter Club home page Giter Club logo

Comments (8)

elad-bar avatar elad-bar commented on August 20, 2024

the difference of working with individual camera with stream component to working with BlueIris and stream is the amount of load that HA will overload the BI server.

the issue is not with the component I wrote but the ability of BI server to handle.
I have strong machine running BI Server with 17 camera, when enabling Stream CPU gets to 100%, when running it without stream component it works on less than 25%

from ha-blueiris.

tiaanv avatar tiaanv commented on August 20, 2024

I have investigated this early on.

I am running a proxmox VE, with a hass.io VM, and a separate Blueiris VM.
This graph below is the ENTIRE VE usage... this is whilst streaming from HA.
image

This is the graph for the Blueiris VM
image

Graph for the HA VM
image

As you can see form all three graphs, the CPU(s) are not even breaking a sweat. Similarly, there are no IO bottlenecks, and network traffic is negligible.

I am only running 4 cameras, and the configuration of Blueiris is configured for optimal CPU usage and hardware decoding. Viewing any/all of the cameras through the BlueIris Web-frontend has no issues, and is smooth as butter. Monitoring all 4 cameras in realtime at approx 15 fps results in almost no CPU load:
image

My deduction from this is that the stream component does not seem to be overloading the hardware at all.

Just to add a final note... I am NOT running the picture cards in LIVE mode, only when I click on an individual card, does the stream component kick into action.

Question: How are you using the BI camera streams in HA. Are you using the Lovelace views at all, or are you just using the automation functions/services and sensors, etc, and viewing cameras in BI directly?

from ha-blueiris.

elad-bar avatar elad-bar commented on August 20, 2024

have 2 tabs with all camera lovelace component (not as live),
the problem is not when you are using the UI of BI Server, is once you have lovelace components for each of the camera, it opens # of websocket to the BI server that cannot handle it,
But if you checked it, it might got solved since the last time I checked,
one of the attributes of the camera component that being created is the still / stream URL,
you can create a dedicated component (GenericCamera) using those URLs to check how it works without my component

from ha-blueiris.

tiaanv avatar tiaanv commented on August 20, 2024

Without your component (as expected). I get the exact same result.

from ha-blueiris.

tiaanv avatar tiaanv commented on August 20, 2024

If I open the stream URL directly in VLC, it's the same.... That's interesting..... So this is clearly a BI issue directly...

from ha-blueiris.

tiaanv avatar tiaanv commented on August 20, 2024

Playing around, I figured out... as soon as I remove the rate control from the web server stream:
image
I no longer got the pixelation.... Not in VLC/HA. In HA though I get the little stutters I've seen before.
So clearly the stream implementaiton of HA is not great, but with this I can at least get rif of the compression artifacts ever 3 seconds...

Thx for your input. I think This needs to be closed.
T

from ha-blueiris.

elad-bar avatar elad-bar commented on August 20, 2024

@tiaanv, in the past there was an issue opened and also opened in BI forum,
#9 it was also about poor performence of stream

from ha-blueiris.

tiaanv avatar tiaanv commented on August 20, 2024

Thx... Just looked at that.... My scenario is a little different, as I'm not reaching CPU overload. Mostly because I only have a few cameras.... That being said... the way that the stream component is working... it not going to play nice with BI..... I think... I'm going to remove it for now.... and investigate different integration methods into the Lovelace frontend... maybe an iframe or something... I have got external access to BI so, that's OK. HA is just a bonus. And I'd rather live with a low framerate, than BI and HA performance issues.

Thx again for the valuable insight!!

from ha-blueiris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.