From f96828724c0c219a15374d9a3d8be6b163073024 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 19 May 2024 13:41:15 -0500 Subject: [PATCH] warn in log if detect fps > 10 --- frigate/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frigate/config.py b/frigate/config.py index c2711aa0e..e7dbbfdb6 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -1442,6 +1442,12 @@ class FrigateConfig(FrigateBaseModel): else False ) + # Warn if detect fps > 10 + if camera_config.detect.fps > 10: + logger.warning( + "{camera_config.name} has a detect fps set higher than 10 fps. This does not need to match your camera's fps rate and may cause performance issues. Recommended value is 5 fps." + ) + # Default min_initialized configuration min_initialized = int(camera_config.detect.fps / 2) if camera_config.detect.min_initialized is None: