replace hwaccel None with Auto and Disabled

Choosing None for the global hardware acceleration args sent undefined, which deleted the key, so the backend default `auto` turned detection back on (VAAPI on Intel hosts). On a config without the key the save returned a 500 from the update_yaml KeyError.

Global hwaccel now offers Auto, which writes `auto`, and Disabled, which writes `[]`. Cameras get Disabled next to Inherit from global setting, and `""` and `[]` both display as Disabled. Camera-level Inherit restores the saved value instead of sending a delete for a key that may not be in the YAML, and camera export also counts as inherited when it matches the camera's own hwaccel value, since that's what the backend falls back to. The mode choice survives the remount RJSF does when the value flips between a string and a list, and every ffmpeg args field forces the split layout so a list value no longer stacks. The docs now say what Auto detects and how to turn decoding off.
This commit is contained in:
Josh Hawkins
2026-12-01 23:05:01 -06:00
parent 31038a9e14
commit c1f9a3ddbd
6 changed files with 563 additions and 137 deletions
@@ -1608,6 +1608,10 @@
"manual": "Manual arguments",
"inherit": "Inherit from camera setting",
"none": "None",
"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",
"sameAsFfmpeg": "Same as FFmpeg hardware acceleration",
"sameAsRecord": "Same as record output arguments",
"useGlobalSetting": "Inherit from global setting",
"selectPreset": "Select preset",