From 35281c037c25d5083a76f4a59daa8c4524e0ece7 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 13 Jun 2021 09:01:24 -0500 Subject: [PATCH] trickle in some frames after activity stops --- frigate/output.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frigate/output.py b/frigate/output.py index bd57d1ee1..68e373705 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -295,9 +295,11 @@ class BirdsEyeFrameManager: if (now - self.last_output_time) < 1 / 10: return False - self.last_output_time = now - - return self.update_frame() + # if the frame was updated or the fps is too low, send frame + if self.update_frame() or (now - self.last_output_time) > 1: + self.last_output_time = now + return True + return False def output_frames(config: FrigateConfig, video_output_queue):