From 3afd77cbe04d5bf1735cac475ba081deb5ec133d Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 14 Jul 2024 13:29:49 -0500 Subject: [PATCH] No need to check for h264 onvif profile (#12444) --- frigate/ptz/onvif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 17ff6b2c6..3332643b7 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -94,7 +94,6 @@ class OnvifController: for key, onvif_profile in enumerate(profiles): if ( onvif_profile.VideoEncoderConfiguration - and onvif_profile.VideoEncoderConfiguration.Encoding == "H264" and onvif_profile.PTZConfiguration and ( onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace @@ -103,6 +102,7 @@ class OnvifController: is not None ) ): + # use the first profile that has a valid ptz configuration profile = onvif_profile logger.debug(f"Selected Onvif profile for {camera_name}: {profile}") break