Skip to content

NVR with realtime local object detection for IP cameras

Fix http-jpeg template insertion (#6291)

Nicolas Mowendf016ddd0dc1
diff --git a/frigate/ffmpeg_presets.py b/frigate/ffmpeg_presets.py
index 67348569c6..185ce0d867 100644
--- a/frigate/ffmpeg_presets.py
+++ b/frigate/ffmpeg_presets.py
@@ -320,7 +320,7 @@ def parse_preset_input(arg: Any, detect_fps: int) -> list[str]:
if arg == "preset-http-jpeg-generic":
input = PRESETS_INPUT[arg].copy()
- input[1] = str(detect_fps)
+ input[len(_user_agent_args) + 1] = str(detect_fps)
return input
return PRESETS_INPUT.get(arg, None)