NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Reduce recording info timeout (#8506)
Nicolas Mowen257bd8973317
diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.pyindex 8e9f900bba..ce1aa2e19e 100644--- a/frigate/record/maintainer.py+++ b/frigate/record/maintainer.py@@ -32,6 +32,8 @@ from frigate.util.services import get_video_propertieslogger = logging.getLogger(__name__)+QUEUE_READ_TIMEOUT = 0.00001 # seconds+class SegmentInfo:def __init__(@@ -452,7 +454,9 @@ class RecordingMaintainer(threading.Thread):current_tracked_objects,motion_boxes,regions,- ) = self.object_recordings_info_queue.get(True, timeout=0.01)+ ) = self.object_recordings_info_queue.get(+ True, timeout=QUEUE_READ_TIMEOUT+ )if frame_time < run_start - stale_frame_count_threshold:stale_frame_count += 1@@ -488,7 +492,9 @@ class RecordingMaintainer(threading.Thread):frame_time,dBFS,audio_detections,- ) = self.audio_recordings_info_queue.get(True, timeout=0.01)+ ) = self.audio_recordings_info_queue.get(+ True, timeout=QUEUE_READ_TIMEOUT+ )if frame_time < run_start - stale_frame_count_threshold:stale_frame_count += 1