To enable Frigate hardware acceleration, give the Docker container access to the decoder, then set ffmpeg.hwaccel_args to the preset for your GPU and camera stream. Use VAAPI or Intel Quick Sync on supported Intel hardware, VAAPI on supported AMD GPUs, preset-nvidia for NVIDIA NVDEC on x86-64, or preset-rkmpp on Rockchip. Check the Frigate logs after applying the preset for FFmpeg decoding errors. Frigate video decoding, Frigate image tags
Choose a preset for your GPU and codec
Start with a working camera in Frigate. Before choosing a QSV preset, check the codec of the camera stream assigned the detect role. The main stream and the detection substream can have separate encoding settings. Frigate getting started, Camera setup
| Hardware and stream | hwaccel_args value | Frigate UI choice |
|---|---|---|
| Supported Intel or AMD GPU via VAAPI, H.264 or H.265 | preset-vaapi | VAAPI (Intel/AMD GPU) |
| Intel Quick Sync, H.264 | preset-intel-qsv-h264 | Intel QuickSync (H.264) |
| Intel Quick Sync, H.265 | preset-intel-qsv-h265 | Intel QuickSync (H.265) |
| NVIDIA GPU on x86-64 with NVDEC support for the stream | preset-nvidia | NVIDIA GPU |
| Rockchip SoC with hardware decoding and encoding support for the stream | preset-rkmpp | Rockchip RKMPP |
Frigate recommends VAAPI for supported Intel integrated graphics on CPU generations 1 through 12. Its guide also lists QSV as an option for generations 8 through 12 and recommends QSV for generation 13 onward and Intel Arc A- and B-series. For Arc B-series, the recommended QSV preset requires host kernel 6.12 or newer. VAAPI selects the H.264 or H.265 profile automatically where the GPU supports it. Frigate FFmpeg presets, Intel and AMD decoding guidance
Give Frigate access to the decoder
For Linux Docker Compose, merge the relevant example into your existing frigate service in docker-compose.yml. Apply Compose changes from the directory containing the file with docker compose up -d. Frigate getting started
Intel or AMD render device
Run ls /dev/dri on the host. Find the render node for the intended GPU and use its path on both sides of the mapping. On a host with multiple GPUs, the node may be renderD129 instead of renderD128. Frigate GPU troubleshooting
services:
frigate:
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
For AMD VAAPI, add LIBVA_DRIVER_NAME: radeonsi under the service’s environment key. Frigate defaults to iHD for Intel VAAPI. For older Intel hardware that needs i965, add LIBVA_DRIVER_NAME: i965 there. Frigate driver guidance, Docker Compose environment syntax
NVIDIA NVDEC
Check your card and stream format in NVIDIA’s decode support matrix. Install a host driver compatible with your GPU and Frigate’s FFmpeg, then follow NVIDIA’s Container Toolkit guide to configure Docker. The example reserves one GPU and uses Frigate’s stable-tensorrt image for x86-64. To select a GPU on a multi-GPU host, find its ID with nvidia-smi and use device_ids, for example device_ids: ['0'], in place of count. NVIDIA decode support matrix, NVIDIA Container Toolkit, Frigate NVIDIA Docker setup, Docker Compose GPU access
services:
frigate:
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
Rockchip RKMPP
Run uname -r and check for the Rockchip BSP kernel 5.10 or 6.1 with the -rockchip suffix. Frigate’s installation guide calls for the required drivers, including rkvdec2 and rknpu, and a Frigate image with the -rk suffix. Check that your SoC can decode and encode the input codec at the stream’s resolution. Rockchip installation, Rockchip video decoding
Frigate documents privileged: true for initial Rockchip setup. Once Frigate is working, remove privileged mode to limit the container’s host access and apply the device mappings and security options below. Rockchip installation
services:
frigate:
image: ghcr.io/blakeblackshear/frigate:stable-rk
security_opt:
- apparmor=unconfined
- systempaths=unconfined
devices:
- /dev/dri
- /dev/dma_heap
- /dev/rga
- /dev/mpp_service
volumes:
- /sys/:/sys/:ro
Set hwaccel_args globally or per camera
In Frigate, open Settings → Global configuration → FFmpeg and select the matching Hardware acceleration arguments option. For a single-camera override, open Settings → Camera configuration → Streams (FFmpeg) and select the camera and preset. Save the change and use Restart Frigate if prompted. Frigate FFmpeg presets, Frigate settings and restart behavior
In YAML, put hwaccel_args under the top-level ffmpeg block for the default. For example, if your Intel GPU supports QSV and your cameras mostly use H.264, use the following default and override it for an H.265 camera. Merge the keys into your configuration using the existing camera name. Frigate FFmpeg presets
ffmpeg:
hwaccel_args: preset-intel-qsv-h264
cameras:
front_door:
ffmpeg:
hwaccel_args: preset-intel-qsv-h265
Verify hardware decoding
Run docker logs frigate for the container named frigate. With automatic detection, look for a detection message or a warning that Frigate could not detect hardware acceleration. With an explicit preset, look for FFmpeg hardware-decoding errors. Frigate does not automatically fall back to CPU decoding if the configured hardware acceleration fails. Frigate getting started, Frigate video decoding
For NVDEC, also run nvidia-smi on the host and look for ffmpeg in the process list. The same command inside the container does not show those processes. Frigate NVIDIA decoder verification
Fix hardware acceleration errors
Failed to open the drm deviceorNo VA display found for device. Check that the intended render node is mapped into the container and that the Frigate process can access it. Frigate GPU troubleshootingFailed to download frame: -5with VAAPI or QSV. Try the other preset if your Intel GPU supports both. If the issue persists and the camera offers an H.264 substream, try assigning it to thedetectrole. Match thedetectwidth and height to the exact resolution of the stream assigned thedetectrole. Frigate frame synchronization troubleshootingnvidia-container-cli: nvml error: driver not loaded. Check that the NVIDIA driver is loaded and thatnvidia-smiworks on the Docker host before troubleshooting Frigate. Frigate common errorsNo hw context provided on inputfromParsed_scale_rkrga_0followed by an FFmpeg restart on Rockchip. If a camera is failing to process and the logs show this error sequence, try FFmpeg 7 by settingpath: "7.0"in theffmpegblock at global or camera scope. Frigate Rockchip video decoding
If the VAAPI or QSV frame error persists, you can turn off hardware decoding for that camera with an empty hwaccel_args list. Merge this into the affected camera’s configuration. Frigate GPU troubleshooting
cameras:
front_door:
ffmpeg:
hwaccel_args: []
Evidence and limits. The examples are based on the official Frigate documentation, which lists 0.18.3 as stable, and the linked Docker and NVIDIA guidance. This guide is not based on hands-on testing. Frigate version reference