VAAPI vs QSV resource usage on Intel Arc A310, Ubuntu #19765
Replies: 1 comment 5 replies
-
On Intel Arc GPUs, both VAAPI and QSV are supported for hardware-accelerated video decoding in Frigate, and you can choose either by setting the Resource usage differences between VAAPI and QSV can occur due to how each driver and hardware interface manages decoding workloads. The documentation does not specify that one should always be more efficient than the other, nor does it indicate that a large difference is intentional(1). It is normal to see differences in GPU and CPU utilization depending on which method is used, as QSV and VAAPI use different paths in the Intel graphics stack. If you notice significantly higher For Intel Arc, both of the following are valid: ffmpeg:
hwaccel_args: preset-vaapi or ffmpeg:
hwaccel_args: preset-intel-qsv-h264 If you want to further investigate the efficiency difference, you may want to compare driver versions, host kernel, and FFmpeg builds, as these can impact hardware acceleration performance. There is no explicit setting in Frigate to optimize further between the two outside of the documented presets(1). 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i have an Intel A310 dedicated GPU which i use in frigate.
there is a huge difference in resource consumption between VAAPI and QSV, and i'd like to understand what this is, and if this is intentional.
VideoEnhance usage immediately increases tenfolds when i enable QSV, and iowait doubles on the cpu, yet the user space consumption stays about the same, or drops about 3-5% (this is random, i have other test runs, where the user space usage did not change at all). the power usage of the machine raises about 10 watts (according to the UPS) attached to it.
all streams are h.264, and mostly ingested via RTSP, but i have 6 streams with this setup:
hwaccel args are passed in the config root as such:
docker compose parts:
using Frgate 0.16.0-c2f8de9, Ubuntu 24.04, kernel 6.8.0-78-generic
afaik there are nothing else relevant, but please tell me if there is anything else i shoud share.
Beta Was this translation helpful? Give feedback.
All reactions