mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-08 13:01:13 +03:00
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:
parent
a4868184d4
commit
155699c594
@ -108,6 +108,7 @@ class CameraConfigUpdateSubscriber:
|
|||||||
config.birdseye = updated_config
|
config.birdseye = updated_config
|
||||||
elif update_type == CameraConfigUpdateEnum.detect:
|
elif update_type == CameraConfigUpdateEnum.detect:
|
||||||
config.detect = updated_config
|
config.detect = updated_config
|
||||||
|
config.recreate_ffmpeg_cmds()
|
||||||
elif update_type == CameraConfigUpdateEnum.enabled:
|
elif update_type == CameraConfigUpdateEnum.enabled:
|
||||||
config.enabled = updated_config
|
config.enabled = updated_config
|
||||||
elif update_type == CameraConfigUpdateEnum.object_genai:
|
elif update_type == CameraConfigUpdateEnum.object_genai:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user