From 51153af944a883bf360c9a9d5d325789c0e1a0cc Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:01:52 -0500 Subject: [PATCH] Attempt to support zoom-only onvif cams (#12415) * Attempt to support zoom-only onvif cams * don't skip ptz configuration --- frigate/ptz/onvif.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 39bdd6978..ea2238728 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -95,8 +95,12 @@ class OnvifController: onvif_profile.VideoEncoderConfiguration and onvif_profile.VideoEncoderConfiguration.Encoding == "H264" and onvif_profile.PTZConfiguration - and onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace - is not None + and ( + onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace + is not None + or onvif_profile.PTZConfiguration.DefaultContinuousZoomVelocitySpace + is not None + ) ): profile = onvif_profile logger.debug(f"Selected Onvif profile for {camera_name}: {profile}")