diff --git a/frigate/http.py b/frigate/http.py
index a4a7c22cd..c33dc34b2 100644
--- a/frigate/http.py
+++ b/frigate/http.py
@@ -1178,6 +1178,11 @@ def ffprobe():
{"success": False, "message": f"{camera} is not a valid camera."}, "404"
)
+ if not current_app.frigate_config.cameras[camera].enabled:
+ return jsonify(
+ {"success": False, "message": f"{camera} is not enabled."}, "404"
+ )
+
paths = map(
lambda input: input.path,
current_app.frigate_config.cameras[camera].ffmpeg.inputs,
diff --git a/frigate/util.py b/frigate/util.py
index 537c17f4b..79fe7932f 100755
--- a/frigate/util.py
+++ b/frigate/util.py
@@ -883,6 +883,8 @@ def ffprobe_stream(path: str) -> sp.CompletedProcess:
clean_path = escape_special_characters(path)
ffprobe_cmd = [
"ffprobe",
+ "-timeout",
+ "1000000",
"-print_format",
"json",
"-show_entries",
diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx
index df21508b8..6bbfe8efd 100644
--- a/web/src/routes/System.jsx
+++ b/web/src/routes/System.jsx
@@ -224,26 +224,26 @@ export default function System() {
Capture |
- {cameras[camera]['capture_pid']} |
- {cameras[camera]['process_fps']} |
- {cpu_usages[cameras[camera]['capture_pid']]['cpu']}% |
- {cpu_usages[cameras[camera]['capture_pid']]['mem']}% |
+ {cameras[camera]['capture_pid'] || "- "} |
+ {cameras[camera]['process_fps'] || "- "} |
+ {cpu_usages[cameras[camera]['capture_pid']]?.['cpu'] || "- "}% |
+ {cpu_usages[cameras[camera]['capture_pid']]?.['mem'] || "- "}% |
Detect |
- {cameras[camera]['pid']} |
+ {cameras[camera]['pid'] || "- "} |
{cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped)
|
- {cpu_usages[cameras[camera]['pid']]['cpu']}% |
- {cpu_usages[cameras[camera]['pid']]['mem']}% |
+ {cpu_usages[cameras[camera]['pid']]?.['cpu'] || "- "}% |
+ {cpu_usages[cameras[camera]['pid']]?.['mem'] || "- "}% |
ffmpeg |
- {cameras[camera]['ffmpeg_pid']} |
- {cameras[camera]['camera_fps']} |
- {cpu_usages[cameras[camera]['ffmpeg_pid']]['cpu']}% |
- {cpu_usages[cameras[camera]['ffmpeg_pid']]['mem']}% |
+ {cameras[camera]['ffmpeg_pid'] || "- "} |
+ {cameras[camera]['camera_fps'] || "- "} |
+ {cpu_usages[cameras[camera]['ffmpeg_pid']]?.['cpu'] || "- "}% |
+ {cpu_usages[cameras[camera]['ffmpeg_pid']]?.['mem'] || "- "}% |