소스 검색

trickle in some frames after activity stops

Blake Blackshear 3 년 전
부모
커밋
35281c037c
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      frigate/output.py

+ 5 - 3
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):