Smart HomeNews wire, 3 h ago

Frigate camera setup: how an LLM helped fix a failing three-camera system

Reported by XDA Developers

XDA Developers reports that a home camera setup built on Frigate, an open-source network video recorder (NVR), ran into serious problems for weeks, and that a large language model (LLM) helped find the cause. The author has used Frigate for months to watch a property, but says it was hard to get running reliably.

The trouble started after the author moved Frigate from a larger server to a small form-factor system with an Intel Core i5-7400 processor, 16GB of memory and one 2TB disk for recordings. The author expected this hardware to handle three Reolink cameras. About half an hour after startup, the fans sped up, the processor was fully loaded and the system began using swap memory. The integrated graphics chip, which should have helped with video work, showed almost no activity. Some cameras dropped out, and one reported a frame rate far above what any security camera produces.

The author says the web interface of Frigate is friendly, but the configuration file is not. Settings are written in YAML, a format that depends on indentation. Frigate also combines global settings with per-camera overrides in ways that are not obvious. Troubleshooting depends mainly on reading logs, and the author points to forum threads where users spent days without a working setup. The official documentation for Reolink cameras warns that the usual RTSP stream may not be dependable on every hardware version, and it suggests an alternative stream for cameras at 5MP or lower.

Frigate version 0.17 added a camera wizard and a fallback mode that loads the config editor when the file is invalid. According to the author, these changes help, but they do not remove the difficulty. The developers plan to make user-interface-based configuration the recommended method in version 0.18. The author adds that a configuration can pass validation and still produce poor results.

The author's own problems included slow playback in the web interface, missing recordings and a steady stream of errors. The first issue came from the browser. Chromium handled the video stream poorly, and switching to Firefox fixed it. Other problems were harder. The main feed of one garage camera failed. A driveway camera lost roughly six in ten frames and then went offline. Rebooting the container and adding memory did not solve the issue. The logs reported an authentication error, 401 Unauthorized, although the login details were correct. The same message can also point to a camera that has reached its connection limit or to a stream address that is too long. A storage entry claimed an implausibly high bandwidth figure, which the author says was false and linked to the camera feeds.

In the end, the author found that two cameras reported about 100 frames per second, that most frames were skipped and that none reached the detector. The author notes that none of the Reolink cameras runs at that rate. The ffmpeg and capture processes were using about half of the container's CPU. The logs described the symptoms but not the cause, so the author worked backwards through the configuration and logs with an LLM.

The article says the final fix involved moving the camera connections to go2rtc, a streaming tool, with two streams per camera: one for live viewing and one for recording and detection. The text we received ends before the full set of settings is listed, so the exact configuration and the final performance figures cannot be confirmed here.

Still unknown are whether this fix works on other hardware and other camera brands, and how the author's complete configuration looks. The report describes one user's experience with one hardware setup and one Frigate version. It does not test the software in a controlled comparison.

Enjoying this? Get the Smart Home brief

Every Tuesday: what changed in Matter, hubs and security.

✓ Free · seven editions · one click to leave

Topics
Story continues on XDA DevelopersAdd us as a preferred source on GoogleSee our stories first in Google’s Top Stories.
Get alerts on big newsOnly the big news, at most once a day. No email, no account.

Original reporting by the sources above. Summary by smart-home.space.