Illustrated title card for the guide: Frigate Hardware Acceleration Setup (hwaccel_args)
Hardware Acceleration

Frigate Hardware Acceleration Setup (hwaccel_args)

Set up Frigate hardware decoding with VAAPI, Intel QSV, NVIDIA NVDEC or Rockchip RKMPP. Match the preset, pass through the device, and fix FFmpeg errors.

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 streamhwaccel_args valueFrigate UI choice
Supported Intel or AMD GPU via VAAPI, H.264 or H.265preset-vaapiVAAPI (Intel/AMD GPU)
Intel Quick Sync, H.264preset-intel-qsv-h264Intel QuickSync (H.264)
Intel Quick Sync, H.265preset-intel-qsv-h265Intel QuickSync (H.265)
NVIDIA GPU on x86-64 with NVDEC support for the streampreset-nvidiaNVIDIA GPU
Rockchip SoC with hardware decoding and encoding support for the streampreset-rkmppRockchip 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 device or No 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 troubleshooting
  • Failed to download frame: -5 with 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 the detect role. Match the detect width and height to the exact resolution of the stream assigned the detect role. Frigate frame synchronization troubleshooting
  • nvidia-container-cli: nvml error: driver not loaded. Check that the NVIDIA driver is loaded and that nvidia-smi works on the Docker host before troubleshooting Frigate. Frigate common errors
  • No hw context provided on input from Parsed_scale_rkrga_0 followed by an FFmpeg restart on Rockchip. If a camera is failing to process and the logs show this error sequence, try FFmpeg 7 by setting path: "7.0" in the ffmpeg block 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

Sources

  1. Frigate video decoding
  2. Frigate installation and image tags
  3. Frigate getting started: Configure hardware acceleration
  4. Frigate camera setup: Example camera configuration
  5. Frigate FFmpeg hardware acceleration presets
  6. Frigate Intel decoding guidance
  7. Frigate GPU troubleshooting: Hardware acceleration is not being used
  8. Docker Compose environment variables
  9. NVIDIA video encode and decode support matrix
  10. NVIDIA Container Toolkit installation
  11. Frigate NVIDIA Docker setup
  12. Docker Compose GPU access
  13. Frigate installation: Rockchip platform
  14. Frigate Rockchip video decoding
  15. Frigate configuration and restart indicators
  16. Frigate getting started
  17. Frigate NVIDIA decoder verification
  18. Frigate GPU troubleshooting: Failed to download frame
  19. Frigate common hardware acceleration errors
  20. Frigate updating and stable release

Related