mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Log ffprobe error code and error
This commit is contained in:
parent
b03a3e9f5f
commit
21be8e0943
@ -177,6 +177,11 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
end_time = start_time + datetime.timedelta(seconds=duration)
|
end_time = start_time + datetime.timedelta(seconds=duration)
|
||||||
self.end_time_cache[cache_path] = (end_time, duration)
|
self.end_time_cache[cache_path] = (end_time, duration)
|
||||||
else:
|
else:
|
||||||
|
if duration == -1:
|
||||||
|
logger.warning(
|
||||||
|
f"Failed to probe corrupt segment {f}: {p.returncode} - {p.stderr}"
|
||||||
|
)
|
||||||
|
|
||||||
logger.warning(f"Discarding a corrupt recording segment: {f}")
|
logger.warning(f"Discarding a corrupt recording segment: {f}")
|
||||||
Path(cache_path).unlink(missing_ok=True)
|
Path(cache_path).unlink(missing_ok=True)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user