Hardware Acceleration
It is recommended to update your configuration to enable hardware accelerated decoding in ffmpeg. Depending on your system, these parameters may not be compatible. More information on hardware accelerated decoding for ffmpeg can be found here: https://trac.ffmpeg.org/wiki/HWAccelIntro
#
Raspberry Pi 3/4 (32-bit OS)Ensure you increase the allocated RAM for your GPU to at least 128 (raspi-config > Performance Options > GPU Memory).
NOTICE: If you are using the addon, you may need to turn off Protection mode
for hardware acceleration.
#
Raspberry Pi 3/4 (64-bit OS)NOTICE: If you are using the addon, you may need to turn off Protection mode
for hardware acceleration.
#
Intel-based CPUs with QuickSyncIntel CPUs with build in graphics (non-F variants) since 5th generation have at least h264 decoding support. Once you've configured it and restarted frigate, verify that it's working by running intel_gpu_top
- if everything is set up correctly, you should see non-zero load on Video
and/or VideoEnhance
.
vaapi
#
<10th Generation via #
>=10th Generation via Quicksync#
>=12th Generation via QuicksyncNote: You should use kernel 5.18 or newer for full support.
Specifying input_args
and output_args
overrides frigate's defaults, so you may want to append whatever options your camera requires.
#
AMD/ATI GPUs (Radeon HD 2000 and newer GPUs) via libva-mesa-driverNote: You also need to set LIBVA_DRIVER_NAME=radeonsi
as an environment variable on the container.
#
NVIDIA GPUNVIDIA GPU based decoding via NVDEC is supported, but requires special configuration. See the NVIDIA NVDEC documentation for more details.