From 46274b0dde4dcb31cd25edc24e43dc1e33d70319 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 6 Feb 2023 06:40:06 -0700 Subject: [PATCH] Update hwaccel docs for h265 --- .../configuration/hardware_acceleration.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/docs/configuration/hardware_acceleration.md b/docs/docs/configuration/hardware_acceleration.md index 3d1dcff30..b79a211de 100644 --- a/docs/docs/configuration/hardware_acceleration.md +++ b/docs/docs/configuration/hardware_acceleration.md @@ -15,23 +15,39 @@ ffmpeg: hwaccel_args: preset-rpi-64-h264 ``` -### Intel-based CPUs (<10th Generation) via Quicksync +### Intel-based CPUs (<10th Generation) via VAAPI + +VAAPI supports automatic profile selection so it will work automatically with both h264 and h265 streams. VAAPI is recommended for all generations of Intel-based CPUs if QSV does not work. ```yaml ffmpeg: hwaccel_args: preset-vaapi ``` + **NOTICE**: With some of the processors, like the J4125, the default driver `iHD` doesn't seem to work correctly for hardware acceleration. You may need to change the driver to `i965` by adding the following environment variable `LIBVA_DRIVER_NAME=i965` to your docker-compose file or [in the frigate.yml for HA OS users](advanced.md#environment_vars). ### Intel-based CPUs (>=10th Generation) via Quicksync +QSV must be set specifically based on the video encoding of the stream. + +#### h264 streams + ```yaml ffmpeg: hwaccel_args: preset-intel-qsv-h264 ``` +#### h265 streams + +```yaml +ffmpeg: + hwaccel_args: preset-intel-qsv-h265 +``` + ### AMD/ATI GPUs (Radeon HD 2000 and newer GPUs) via libva-mesa-driver +VAAPI supports automatic profile selection so it will work automatically with both h264 and h265 streams. + **Note:** You also need to set `LIBVA_DRIVER_NAME=radeonsi` as an environment variable on the container. ```yaml