Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control ZoneMinder stream scaling and frame rate to reduce bandwidth #57

Open
nabbi opened this issue Dec 25, 2023 · 0 comments
Open

Control ZoneMinder stream scaling and frame rate to reduce bandwidth #57

nabbi opened this issue Dec 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nabbi
Copy link
Collaborator

nabbi commented Dec 25, 2023

ZoneMinder’s MJPEG streaming is incredibly inefficient and bandwidth-intensive, especially with modern cameras commonly running at 1080p or higher resolutions.
Streams can be requested with down-scaling and limited frame rate (ZM’s web UI uses this with things like bandwidth profiles), but HA’s ZoneMinder integration only accesses the streams at full resolution and maximum frame rate. This is often fine over local networks, but when trying to view a camera stream remotely it can often use too much data for the stream to keep up. I suspect with a lot of common use cases (HD/3M/5M/4K cameras, residential ISPs with low uplink speeds, clients on mobile networks) viewing the streams within HA results in a slideshow at best.
It would be nice to have a setting to set scale and frame rate limits for streams when desired. Ideally this could be configured per-camera, but even global scale and maxfps options would probably be enough for most cases.
I looked at the code a little and while it doesn’t seem like this would be difficult, the stream URL is generated in the zm-py package so a change may need to be made there in addition to a configuration setting in HA, although it may be possible to simply append the extra params to the end of the URL, e.g. something like mjpeg_image_url + “&scale=50&maxfps=3”

Original HA Feature Request, Dec 20, 2022:
https://community.home-assistant.io/t/control-zoneminder-stream-scaling-and-frame-rate-to-reduce-bandwidth/505950/1

@nabbi nabbi added the enhancement New feature or request label Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant