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
@@ -12,11 +12,17 @@ import NavPath from "@site/src/components/NavPath";
It is highly recommended to use an integrated or discrete GPU for hardware acceleration video decoding in Frigate.
Some types of hardware acceleration are detected and used automatically, but you may need to update your configuration to enable hardware accelerated decoding in ffmpeg. To verify that hardware acceleration is working:
Some types of hardware acceleration are detected and used automatically, but you may need to update your configuration to enable hardware accelerated decoding in ffmpeg.
By default (**Auto** in the UI, `hwaccel_args: auto` in YAML), Frigate uses `preset-nvidia` if an Nvidia GPU is usable, otherwise `preset-vaapi` if VAAPI is usable, otherwise no hardware acceleration. Other presets, including Intel QuickSync, must be set explicitly.
To verify that hardware acceleration is working:
- Check the logs: A message will either say that hardware acceleration was automatically detected, or there will be a warning that no hardware acceleration was automatically detected
- If hardware acceleration is specified in the config, verification can be done by ensuring the logs are free from errors. There is no CPU fallback for hardware acceleration.
To turn hardware decoding off, set **Hardware acceleration arguments** to **Disabled** in the UI, or `hwaccel_args: []` in YAML.
Frigate supports presets for optimal hardware accelerated video decoding:
**AMD**