Add object detection, tracking, mobile notifications, and search to any security camera.
remove restart for now
Rory Clear86960243b1b2
diff --git a/clearcam.py b/clearcam.pyindex f22ad87..2b67751 100644--- a/clearcam.py+++ b/clearcam.py@@ -397,11 +397,8 @@ class VideoCapture:try:raw_bytes = self.proc[cam_name].stdout.read(frame_size)if len(raw_bytes) != frame_size:- fail_count += 1- if fail_count > 5:- print(f"{cam_name} FFmpeg frame read failed (count={fail_count}), restarting stream...{self.src[cam_name]}")- self.hls_proc[cam_name], self.proc[cam_name] = self._open_ffmpeg(cam_name)- fail_count = 0+ # todo, restart removed because it adds extra ffmpeg procs, don't call right after startup (during 15s sleep)+ print(f"{cam_name} FFmpeg frame read failed (count={fail_count}), restarting stream...{self.src[cam_name]}")time.sleep(0.5)else:fail_count = 0