Skip to content

NVR with realtime local object detection for IP cameras

Fix Cp,fog for gpu optimization (#20613)

CurseGroup France9638e85a1fdc
diff --git a/frigate/ffmpeg_presets.py b/frigate/ffmpeg_presets.py
index c33856db41..854622cc65 100644
--- a/frigate/ffmpeg_presets.py
+++ b/frigate/ffmpeg_presets.py
@@ -246,7 +246,7 @@ def parse_preset_hardware_acceleration_scale(
",hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5" in scale
and os.environ.get("FFMPEG_DISABLE_GAMMA_EQUALIZER") is not None
):
- scale.replace(
+ scale = scale.replace(
",hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5",
":format=nv12,hwdownload,format=nv12,format=yuv420p",
)