#Frigate: Setting up hardware acceleation in frigate.yaml

1 messages · Page 1 of 1 (latest)

vernal sierra
#

I'm trying to setup Frigate in HA. It's up and running (as an add-on inside of HA). At the moment it's running through an Intel Core i3-4010U (4th Gen).
According to the Frigate documentation, I need to add the following to frigate.yaml file but I can't get it to work. Any ideas what I'm missing?

ffmpeg:
hwaccel_args: preset-vaapi
environment_vars:
LIBVA_DRIVER_NAME: i965

Thanks

signal agate
#

does the frigate logs show anything meaningful?

vernal sierra
#

It's throwing quite a few errors on ffpmeg:

#

ReolinkDoorbell_rtsp: Unable to read frames from ffmpeg process.
ReolinkDoorbell_rtsp: ffmpeg process is not running. exiting capture thread...

#

Ffmpeg process crashed unexpectedly for ReolinkDoorbell_rts

#

No device available for decoder: device type vaapi needed for codec h264.

signal agate
#

you could try switching from the normal addon to the "(full access)" addon. this allows you to disable "protection mode" which will give the addon container more access to the host

#

copy your config over and see if theres any differentce there.
note that if you have both addons installed at the same time you will need to ensure only 1 is active at a time otherwise you will get a port clash. so you should stop and nturn off autostart for the version your not currently wanting to use

vernal sierra
#

Thanks. I seem to have got it working (I think!). Did another restart and it seems to be up and running. Very odd. CPU is still very high, so is there a way to know whether it's applying the hardware acceleration?

signal agate
#

in the frigate system metrics it should show as a gpu i beleive

#

something like this

#

and at the bottom

#

screenshots from my much more modern cpu and not running as a HA addon but i imagine its the same

#

logs in frigate will also probably complain if its not using it

vernal sierra
#

Mmm, GPU not showing up. Only CPU usage.