[HW Accel Support]: High CPU usage #19183
Replies: 7 comments 4 replies
-
Hardware acceleration improves ffmpeg decoding CPU usage, which doesn't look overly excessive to me. This could potentially be lowered even more depending on your detect resolution settings. The
You'd need to use some manual ffmpeg arguments for each camera to change the
ffmpeg's difference in RAM usage is likely just due to the way it utilizes the different GPUs. I don't recall users mentioning RAM usage differences in the past but you could try searching the past discussions. |
Beta Was this translation helpful? Give feedback.
-
Thanks! So is it possible to turn off decoding for some cameras where I don't need detection on? If I remove -detect state from the stream does it help. I have set the detect to false on those but I don't think that helped
… On 17 Jul 2025, at 13:13, Josh Hawkins ***@***.***> wrote:
Hardware acceleration improves ffmpeg decoding CPU usage, which doesn't look overly excessive to me. This could potentially be lowered even more depending on your detect resolution settings <https://docs.frigate.video/frigate/camera_setup/#choosing-a-detect-resolution>.
The frigate.output process seems reasonable to be using ~30% especially if you're running the system with 60 cameras.
if I would use multiple NVIDIA cards for hardware acceleration as I have 60 cameras so that would not be enough RAM for single card, how could I specify this in config?
You'd need to use some manual ffmpeg arguments for each camera to change the hwaccel_device. For example:
global_args: -hide_banner -loglevel warning -threads 2 -hwaccel_device 1
using Intel iGPU seems to not have same effect on RAM like using NVIDIA card. It seems that ffmpeg uses less of RAM in that case? I wonder why? if I would use intel Arc card, would it behave same as NVIDIA or iGPU in terms of used RAM?
ffmpeg's difference in RAM usage is likely just due to the way it utilizes the different GPUs. I don't recall users mentioning RAM usage differences in the past but you could try searching the past discussions.
—
Reply to this email directly, view it on GitHub <#19183 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BIJSLASYAN7P4GSDVIW7BZ33I6AL3AVCNFSM6AAAAACBXPFKICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZZGAZTQMA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
OK. Thanks. Problem I have is hardware related and I am trying to minimise requirement of GPU for streams. Intel stopped E24 series processors that had iGPU integrated and I am left with Nvidia expensive cards that are not as efficient as Intel.
… On 17 Jul 2025, at 13:13, Josh Hawkins ***@***.***> wrote:
Hardware acceleration improves ffmpeg decoding CPU usage, which doesn't look overly excessive to me. This could potentially be lowered even more depending on your detect resolution settings <https://docs.frigate.video/frigate/camera_setup/#choosing-a-detect-resolution>.
The frigate.output process seems reasonable to be using ~30% especially if you're running the system with 60 cameras.
if I would use multiple NVIDIA cards for hardware acceleration as I have 60 cameras so that would not be enough RAM for single card, how could I specify this in config?
You'd need to use some manual ffmpeg arguments for each camera to change the hwaccel_device. For example:
global_args: -hide_banner -loglevel warning -threads 2 -hwaccel_device 1
using Intel iGPU seems to not have same effect on RAM like using NVIDIA card. It seems that ffmpeg uses less of RAM in that case? I wonder why? if I would use intel Arc card, would it behave same as NVIDIA or iGPU in terms of used RAM?
ffmpeg's difference in RAM usage is likely just due to the way it utilizes the different GPUs. I don't recall users mentioning RAM usage differences in the past but you could try searching the past discussions.
—
Reply to this email directly, view it on GitHub <#19183 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BIJSLASYAN7P4GSDVIW7BZ33I6AL3AVCNFSM6AAAAACBXPFKICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZZGAZTQMA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Yes, I will test that this week and let you know. Thanks!
… On 17 Jul 2025, at 21:07, Josh Hawkins ***@***.***> wrote:
I'd reduce your detect resolution as I originally suggested and see if that improves things first.
—
Reply to this email directly, view it on GitHub <#19183 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BIJSLATSP4LFN23QDTU7NTL3I7YAFAVCNFSM6AAAAACBXPFKICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZZGYYTKNI>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
@toperichvania I think you inadvertently exposed your Frigate-Plus API key. You might need to request a new one from @blakeblackshear |
Beta Was this translation helpful? Give feedback.
-
Ah, yes, thanks. done..
… On 17 Jul 2025, at 22:31, Blake Blackshear ***@***.***> wrote:
You can just regenerate it in the Frigate+ UI. That will invalidate the old one.
—
Reply to this email directly, view it on GitHub <#19183 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BIJSLASJJAJOTTG22E4CRBT3JABYNAVCNFSM6AAAAACBXPFKICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZZG42DKOA>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, what other UI parts are needed decoding?
… On 17 Jul 2025, at 20:55, Nicolas Mowen ***@***.***> wrote:
No, decoding is required for multiple parts of the UI along with features like birdseye
—
Reply to this email directly, view it on GitHub <#19183 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BIJSLARDZK3HK5IVRHCT6XT3I7WTRAVCNFSM6AAAAACBXPFKICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZZGU4TMMQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
I am struggling to understand how the streams hardware acceleration works and why I still have high CPU usage. My current setup is that I use Intel Quick sync for hardware acceleration and I use nvidia rtx4070 with 12G of RAM for inference. When I use Intel for hardware acceleration, I still have high CPU usage by ffmpeg process. I suspect that this is due to detections. But when I use NVIDIA I don't seem to see that same high CPU usage.

Further more, I have disabled the detection for all cameras and CPU is still very high as you can see in the image below
Configuration attached is a sample of config, there are more cameras on the system (60)
Some more questions:
Version
0.15
Frigate config file
docker-compose file or Docker CLI command
Relevant Frigate log output
Relevant go2rtc log output
FFprobe output from your camera
Install method
Proxmox via Docker
Object Detector
TensorRT
Network connection
Wired
Camera make and model
iPro
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions