Skip to main content
Build a Frigate AI Security-Camera NVR on a Raspberry Pi 4 8GB in 2026

Build a Frigate AI Security-Camera NVR on a Raspberry Pi 4 8GB in 2026

A weekend of setup, a decade of local NVR — the accessible Frigate build.

A Pi 4 8GB, a Coral TPU, a SATA SSD, and Frigate. The accessible local-NVR path with 24/7 stability, 2-4 cameras, and no cloud subscription — full parts + tuning guide.

Yes — a Raspberry Pi 4 Model B 8GB runs Frigate with reliable object detection for 2-4 cameras at 720p sub-stream, using CPU or Coral TPU detection. Add a SATA SSD for 24/7 write endurance, an active-cooling case, and Home Assistant integration. For 5+ cameras or 1080p sub-streams, move to a mini-PC.

Editorial intro — who this is for

You want private, local, cloud-free camera recording. You already have or are planning to buy 2-4 IP or PoE cameras, and you don't want Amazon, Ring, or Google inheriting your footage. Frigate — the open-source NVR that layers real-time object detection over your camera streams — is the enthusiast standard for this exact use case, and its lowest-cost supported host is a Raspberry Pi 4 Model B 8GB.

This synthesis draws on Frigate's official docs, the official Raspberry Pi 4 product page, and community benchmark writeups on Phoronix and r/homelab. It is not a testbench; it is an editorial pass on what the Pi 4 8GB can handle in 2026, where its ceiling lives, and what the supporting hardware needs to look like for a reliable 24/7 build.

You will spend a weekend on this build. It is not a plug-and-play NVR box. But when it is running, you will get on-device person/car/package detection, MQTT events to Home Assistant, and no monthly subscription. That is worth the setup effort for most homelabbers.

Key takeaways

  • A Pi 4 8GB handles 2-4 cameras at 720p sub-stream reliably with a Coral TPU.
  • Without a Coral TPU, expect 1-2 cameras via CPU detection, with higher detection latency.
  • SSD storage is not optional for 24/7 recording — SD cards die under continuous writes.
  • Active cooling matters — sustained 60%+ CPU pushes the SoC past thermal throttling without it.
  • Move to a mini-PC (N100/N305 tier) when you need 5+ cameras or 1080p continuous detection.

What you'll need — checklist

Every reliable Frigate-on-Pi build shares this parts list:

Software stack: Home Assistant OS or vanilla Debian 12 (bookworm) + Docker Compose + Frigate + Mosquitto MQTT + optional Home Assistant if not using HA OS.

Step 0 — how many camera streams can a Pi 4 handle?

Community measurements (r/homelab, Phoronix, and the Frigate GitHub issues) converge on the following practical ceilings for a Pi 4 8GB:

  • With a Coral TPU: 4 cameras at 5 fps sub-stream detection, 15-30 fps main-stream record. Stable at ~40-55% CPU load.
  • CPU-only, no Coral: 1-2 cameras at 5 fps sub-stream detection. Stable at ~60-75% CPU load; adding a 3rd camera pushes into throttling territory.
  • Recording only, no detection: ~8 cameras at 1080p 15 fps main-stream — the Pi is essentially just writing bytes.

Frigate does detection on the sub-stream (typically 320x320 or 480x480 clip windows). Higher-resolution detection or higher frame rates scale up CPU cost quickly. The Coral USB Accelerator moves that math almost entirely off the CPU.

Perf table — Pi 4 8GB running Frigate (community-measured)

ConfigCamerasDetection FPS/camSustained CPUDetection latency
Coral TPU + 4 cams @ 480x48045~45%~15-30 ms
Coral TPU + 4 cams @ 320x320410~55%~10-20 ms
No TPU, 2 cams @ 320x32025~65%~150-250 ms
No TPU, 1 cam @ 480x48015~50%~150-200 ms
No TPU, 3 cams @ 320x32035~85% (throttles)~400-800 ms
Recording only (H.264), 6 cams6~30%

Numbers vary by camera codec (H.264 vs H.265) and Pi thermal state. H.265 hardware decode is not accelerated on the Pi 4, so stick to H.264 sub-streams or accept higher CPU load.

SSD instead of SD card — endurance math

Frigate writes clips, snapshots, and (optionally) 24/7 record segments. A consumer microSD card is rated for 30-100 write cycles across the whole card; a busy 4-camera Frigate install writes ~50-200 GB per day depending on retention and event volume. That kills a 128 GB SD in months.

A Samsung 870 EVO 250GB SATA SSD is rated at 150 TBW — that is 150,000 GB of writes before end of warranty. At 100 GB/day, that is 4+ years of continuous writing. A Crucial BX500 1TB is rated at 360 TBW — over a decade at the same rate. And SSDs boot faster, recover from power loss more gracefully, and have better random I/O for Frigate's small-file event writes.

Boot from the SSD via USB 3.0, not from an SD card. Set the Pi firmware to prefer USB boot and skip the SD slot entirely.

Do you need a Coral TPU?

Yes if you want more than one camera or want reliable, low-latency detection. Google's Coral USB Accelerator is ~$60 at street price and moves detection latency from 150-300 ms (CPU) to 10-30 ms (TPU) while dropping CPU load by roughly half. That headroom is what lets you scale from 1-2 cameras to 3-4.

No if you only have one camera and don't mind occasional detection lag. CPU-only detection on a Pi 4 is a real thing that works — Frigate is efficient — but you are close to the ceiling from day one.

Coral TPU availability has been intermittent since 2023. If you can't source one, the Pi 4 CPU-only path is still viable at 1-2 cameras, and moving to a mini-PC is the graceful upgrade path when the camera count grows.

Keeping it cool and stable — 24/7 thermal load

Frigate on a Pi 4 pushes the SoC into 60-80°C territory sustained. Without active cooling, the Pi will thermal throttle from 1.8 GHz down to ~1.5 GHz once the SoC hits 80°C. That drops detection FPS and increases latency.

The fix is a case with a real fan and a heat sink on the SoC. Options that work well:

  • Argon ONE M.2 case — integrates an M.2 SATA slot and active cooling.
  • Argon POLY+ case — passive heatsink shell that keeps the SoC around 60°C.
  • AC Infinity AIRCOM S7 — a quiet cooling fan system suitable for tucking the Pi into an AV cabinet or rack shelf.
  • Any Pi 4 case with a 40mm PWM fan and a proper heat sink.

Position the Pi with room to breathe. Do not stuff it in a closed drawer next to a router.

Step-by-step — install, add a camera, tune detection

  1. Flash Raspberry Pi OS Lite (64-bit) or Home Assistant OS to your SSD via Raspberry Pi Imager.
  2. Boot the Pi, SSH in, and update: sudo apt update && sudo apt full-upgrade -y.
  3. Install Docker: curl -fsSL https://get.docker.com | sh.
  4. Create a Frigate config directory: mkdir -p ~/frigate/config ~/frigate/media.
  5. Drop a config.yml in ~/frigate/config/ with your cameras (see Frigate docs for the RTSP URL syntax).
  6. Start Frigate via docker compose. Point it at your Coral TPU device (/dev/apex_0 or /dev/bus/usb).
  7. Open http://<pi-ip>:5000 in a browser. You should see live camera tiles and detected objects.
  8. Tune detection zones — mask out the neighbor's driveway, mask out plant motion, mask out reflective glass.
  9. Add MQTT and integrate with Home Assistant for automation triggers.

Every step matters. The tuning step is where most builds fail — untuned Frigate installs generate hundreds of false alerts per day and users burn out on the tool.

When Pi 4 is right — verdict matrix

Pick a Pi 4 8GB if:

  • You have 1-4 cameras total.
  • You want the lowest-cost supported Frigate build.
  • Power draw matters — the Pi 4 pulls ~4-8 W under load.
  • You're OK adding a Coral TPU (~$60).

Move to a mini-PC (N100/N305) if:

  • You want 5+ cameras.
  • You want 1080p detection instead of 720p sub-stream.
  • You want to run Frigate alongside Plex, Home Assistant, PhotoPrism, and other containers on one box.
  • Your camera codecs are H.265 (which the Pi 4 can't hardware-decode).

Move to a used mini-tower or NAS if you want RAID-protected storage or 8+ cameras.

Bottom line — power and cost math

A full Frigate-on-Pi build lands at roughly $220-$280:

  • Pi 4 8GB: $75-$90
  • Power supply, cables, case: $30-$45
  • Coral USB Accelerator: $60 (if you can source it)
  • SATA SSD (250 GB): $30-$45
  • USB 3.0 SATA enclosure: $15-$25

Ongoing power cost at ~6 W average: about $0.90/month at $0.15/kWh. Compared to a $10/month cloud NVR subscription for 4 cameras, you break even in under three years and keep your footage on your own network for as long as the hardware runs.

That is the accessible local-NVR path in 2026. It is not the highest-performance option, and it will not compete with a proper mini-PC on camera density. It is the cheapest way to leave the subscription economy and own your camera data.

Cameras that pair well with Frigate

Not all IP cameras are equal for Frigate. Look for:

  • RTSP support with sub-stream. Frigate needs a low-res sub-stream for detection and a main stream for recording. Cameras without a distinct sub-stream force everything through the detection pipeline at full resolution.
  • H.264 codec on the sub-stream. Pi 4 lacks H.265 hardware decode; H.265 sub-streams eat CPU.
  • Static IP or DHCP reservation friendliness. Cameras that lose network settings on power blip are a headache.
  • Confirmed compatibility on the Frigate wiki. Amcrest, Reolink (via RTSP, not the app-only models), Dahua, Hikvision, and Unifi Protect (via NVR export) are common working brands.

Skip:

  • Cloud-locked cameras. Ring, Arlo, Blink, most Wyze — no RTSP, no local access.
  • H.265-only cameras. The Pi 4 will melt trying to decode them.
  • Cheap Amazon-brand cameras. Many have broken RTSP or firmware that locks streams behind a cloud account.

Home Assistant integration

The reason to run Frigate on a Pi 4 is often to feed events into Home Assistant. The integration is mature:

  1. Add MQTT broker (Mosquitto) container alongside Frigate.
  2. Configure Frigate to publish events to MQTT.
  3. Install the Frigate HACS integration in Home Assistant.
  4. Wire automations — "person detected on driveway at night → notify phone", "car detected in mailbox zone → open garage door", etc.

The person/car/package classes are usable out of the box; the Frigate model set is not fine-tuned for your specific home, so expect false positives on plants swaying, shadows moving, or neighbor cats. Zone masking and confidence thresholds are the main tuning knobs.

Comparing storage options for retention

Retention math matters. A 4-camera Frigate install at 5-fps sub-stream detection + 1080p 15-fps main-stream recording writes roughly 60-100 GB/day, depending on event volume. Retention windows:

Retention windowStorage needed (4 cameras)
3 days250-350 GB
7 days500-750 GB
14 days1-1.5 TB
30 days2-3 TB

For 3-day retention, a Samsung 870 EVO 250GB SATA SSD is enough. For 7-day retention, a Western Digital 500GB WD Blue SSD. For 14-day retention or longer, the Crucial BX500 1TB. For 30+ days, add a network-attached NAS and offload old clips to it via a cron.

Real-world reliability tips

A Frigate-on-Pi build that will run reliably for years shares these operational choices:

  • UPS the Pi and switch. A cheap $80 UPS keeps recording during blips and prevents SSD corruption.
  • Log rotation. Docker logs from Frigate and Mosquitto grow fast; set up log rotation or you'll fill the SSD in months.
  • SSD monitoring. smartctl on the SSD once a week catches early wear before it kills you.
  • Backup config. The Frigate config.yml and Home Assistant configuration.yaml should be version-controlled in a private repo.
  • Restart policy. restart: unless-stopped on the Docker containers means a reboot brings Frigate back automatically.
  • Static local IP. Don't rely on mDNS for the Frigate URL; give the Pi a DHCP reservation or static IP.
  • Timezone. Set the Pi's timezone via sudo timedatectl set-timezone America/New_York (or your region) so event timestamps make sense.

Related guides

Common pitfalls

  • Booting from an SD card and watching it fail in 6-12 months.
  • Skipping the Coral TPU and trying to run 4 cameras on CPU-only — you'll thermal throttle within an hour.
  • Enabling H.265 sub-streams and burning CPU on software decode.
  • Forgetting to tune detection zones — expect 200+ false alerts per day out of the box.
  • Undersizing the power supply — the Pi 4 with a Coral TPU + SSD needs the full 5V/3A supply, not a phone charger.

Citations and sources

This piece is editorial synthesis based on publicly available information. No independent first-party benchmarking is reported.

Products mentioned in this article

Tap any product for full specs, live Amazon & eBay pricing, and alternatives.

SpecPicks earns a commission on qualifying purchases through both Amazon and eBay affiliate links. Prices and stock update independently.

Frequently asked questions

How many cameras can a Raspberry Pi 4 8GB run in Frigate?
A Pi 4 8GB handles a small number of camera streams when you use sub-streams for detection and reserve full-resolution feeds only for recording. Pushing several high-resolution streams through CPU detection will saturate it. Community setups commonly run a couple of cameras comfortably; beyond that, offloading detection to a Coral TPU or moving to a mini-PC is the realistic next step.
Do I need a Coral TPU for object detection?
Not strictly on a Pi 4, but it helps a lot. CPU-based detection works for a small number of low-frame-rate detection streams, yet it consumes most of the Pi's headroom. A Coral USB accelerator offloads inference so the CPU can handle more cameras and higher detection rates. Start CPU-only to prove the setup, then add a TPU if you hit the ceiling.
Why use an SSD instead of a microSD card?
Continuous NVR recording writes constantly, and microSD cards wear out and corrupt quickly under that load, which is the single most common cause of failed Pi-based recorders. A SATA SSD via USB gives far higher endurance, better sustained write speed, and more capacity for retained footage. Boot from and record to an SSD to keep a 24/7 camera system stable.
Will a Pi 4 stay cool running Frigate 24/7?
Under continuous detection the Pi 4's SoC runs hot and will throttle without cooling, dropping performance and risking instability. A case with active cooling or a good heatsink-and-fan keeps clocks steady around the clock. For an always-on security recorder, treat cooling as mandatory rather than optional — a throttling Pi drops frames exactly when you need reliable capture.
When should I move from a Pi 4 to a mini-PC?
Move up when you want more than a couple of high-resolution cameras, higher detection frame rates, longer retention, or additional homelab services on the same box. A small x86 mini-PC offers more CPU, RAM, and storage headroom for a modest power increase. The Pi 4 is an excellent low-power starter NVR; a mini-PC is the upgrade once your camera count grows.

Sources

— SpecPicks Editorial · Last verified 2026-07-06

More guides & deep dives from the SpecPicks archive

Browse all articles & guides →

More reviews from the SpecPicks archive

Browse all reviews →

More buying guides from SpecPicks

Browse all buying guides →