don't send deletes for defaulted ffmpeg args and relabel None as Default

Choosing None on global input args or record output args, or switching record_sub back to "Same as record", sent a delete for a key that is usually missing from the YAML, so saving failed with "Error updating config". None also never removed the args, it reset them to the default preset. The option is now Default and is detected when the value equals the schema default. Choosing it on a default value changes nothing, and on a custom value it still deletes the key. "Same as record" now saves an empty list, which is what the backend reads as "use the record args", so it also works on cameras, where a delete fell back to the global record_sub.
This commit is contained in:
Josh Hawkins
2026-12-02 15:54:46 -06:00
parent 9b386acaf1
commit 6801150bc1
3 changed files with 266 additions and 21 deletions
+1 -1
View File
@@ -1607,7 +1607,7 @@
"preset": "Preset",
"manual": "Manual arguments",
"inherit": "Inherit from camera setting",
"none": "None",
"default": "Default",
"auto": "Auto",
"autoDescription": "Frigate detects Nvidia or VAAPI hardware. After saving, this field shows the detected preset, or Disabled if none is found. Other hardware needs a preset.",
"disabled": "Disabled",