I am using the frigate hassio addon 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 put 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. I tried to enable hardware acceleration but the frigate docs for AMD/ATI GPU says to add and 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
I know it’s been over a year, and I hope you got this figured out.
I was having a similar problem when I migrated from a NUC to a mini PC running a Ryzen 5 with Vega 7 graphics yesterday. (I’m running HASS OS on a Trigkey S5). I kept getting crashing on Frigate and tons of corrupted files on the clips. Turning off hardware acceleration was the only thing that would let the addon start normally. So I was searching the forum for some insight and your post was the only one I could find.
I was struggling to find docker settings for the addon and then I saw way tucked down in the documentation that you just need to put environment_vars in your frigate.yml file, like this:
After a save and restart of the addon, it works like a charm. Anyway, like I said, I hope you don’t need this info, but I thought I’d post this solution in case someone else was a bit lost like I was.
This thread was started two years ago - the information in it may be out of date. It might be better to start a new thread in which you can describe your own situation, with a link to this one to provide context if necessary.