blakeblackshear / frigate-hass-addons

Frigate hass.io addons
MIT License
248 stars 134 forks source link

Hardware Accelerations #70

Open boblisky opened 2 years ago

boblisky commented 2 years ago

I am using the frigate hassio addon full access running HA on a AMD computer with vega graphics. I am having issues with RTMP stream being reencoded from a MJPEG camera. I have added the input and output args listed in the Frigate documentation and my camera is properly detecting and recording files. When I try to view the re-encoded rtmp stream it is only outputting frames randomly and slowly in both homeassistant and vlc. I tried to enable hardware acceleration but the frigate docs for AMD/ATI GPU says to add an environment variable LIBVA_DRIVER_NAME=radeonsi to the container. I have tried everything I know how to do and nothing seems to update the LIBVA_DRIVER_NAME from i965 ro radeonsi.

I have tried adding below to my frigate.yml but no luck. When I run the docker command inspect add-on-ccblah-frigate the config still reports i965. environment_vars: LIBVA_DRIVER_NAME: radeonsi

Any help or advice would be appreciated.

blakeblackshear commented 2 years ago

The config option does not change the value you see when running env in the container. It is set by the frigate process on startup and inhereted by any subprocess that it creates including ffmpeg.