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",