From cff4eacb748aaedc52575eaa1ef4275dcc1f0397 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 20 May 2026 15:22:35 -0500 Subject: [PATCH] ensure motion masks from source camera are copied to replay --- frigate/debug_replay.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/frigate/debug_replay.py b/frigate/debug_replay.py index a0c122134c..557e6447fd 100644 --- a/frigate/debug_replay.py +++ b/frigate/debug_replay.py @@ -245,11 +245,23 @@ class DebugReplayManager: "frame_shape", "raw_mask", "mask", - "improved_contrast_enabled", + "enabled_in_config", "rasterized_mask", } ) + if source_config.motion.mask: + motion_dict["mask"] = { + mask_id: ( + mask_cfg.model_dump( + exclude={"raw_coordinates", "enabled_in_config"} + ) + if mask_cfg is not None + else None + ) + for mask_id, mask_cfg in source_config.motion.mask.items() + } + return { "enabled": True, "ffmpeg": {