rebuild ffmpeg commands on detect update

Rebuild the cached ffmpeg cmd so the next process spawn picks up new resolution/fps. Running cameras keep their existing cmd (ffmpeg_cmds is only read at process startup); replay cameras are recycled by CameraMaintainer to pick up the rebuilt cmd
This commit is contained in:
Josh Hawkins 2026-05-22 08:41:12 -05:00
parent a4868184d4
commit 155699c594

View File

@ -108,6 +108,7 @@ class CameraConfigUpdateSubscriber:
config.birdseye = updated_config
elif update_type == CameraConfigUpdateEnum.detect:
config.detect = updated_config
config.recreate_ffmpeg_cmds()
elif update_type == CameraConfigUpdateEnum.enabled:
config.enabled = updated_config
elif update_type == CameraConfigUpdateEnum.object_genai: