mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Increase wait time to 120 seconds and improve error message
This commit is contained in:
parent
ef3ed9a48c
commit
3a4ce01cf1
@ -283,9 +283,11 @@ class CameraWatchdog(threading.Thread):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if datetime.datetime.now().timestamp() > (latest_segment_time + 30):
|
if datetime.datetime.now().timestamp() > (
|
||||||
|
latest_segment_time + 120
|
||||||
|
):
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
f"No recording segments from {self.camera_name}. Exiting ffmpeg..."
|
f"No new recording segments were created for {self.camera_name} in the last 120s. restarting the ffmpeg record process..."
|
||||||
)
|
)
|
||||||
p["process"] = start_or_restart_ffmpeg(
|
p["process"] = start_or_restart_ffmpeg(
|
||||||
p["cmd"],
|
p["cmd"],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user