Skip to content

NVR with realtime local object detection for IP cameras

No need to check for h264 onvif profile (#12444)

Josh Hawkins3afd77cbe04d
diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py
index 17ff6b2c69..3332643b7c 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