
0.18 Beta 3 causing high CPU usage? Check your FFmpeg path
Hi,
I wanted to share something I discovered while testing the 0.18 beta 3 image, in case anyone else is experiencing unusually high CPU usage and can't figure out why.
After quite a bit of troubleshooting, I found that the issue in my setup came down to one setting: the FFmpeg path.
In 0.18, the FFmpeg path is set to default, which uses FFmpeg 8.0. My understanding is that 0.17 used FFmpeg 7.0.
I changed the setting from default to 7.0, restarted Frigate, and my CPU usage immediately went back down to the green range, even under heavy detection.
I knew something wasn't right because I was seeing around 80% CPU usage consistently when normally I hover around 20%.
Glad I managed to track it down, and I figured I'd share in case it helps anyone else running into the same issue.
Edit:
I solved the CPU usage issue. My fault for not reading the release notes. The fix below also brought my live view events thumbnail functionality back.
Under go2rtc in my config.yaml I had to explicitly set
ffmpeg:
global: "-vaapi_device /dev/dri/renderD128"