← How-Tos
raspberry-pi Mar 26, 2026 ◑ 5 views ◯ 1 min read

Running Frigate NVR on Raspberry Pi for Security Cameras

raspberry pifrigatenvrcamerashome security

Frigate is an open-source NVR with AI object detection. Run it on a Pi 4/5 for a local, private security camera system.

Why Frigate

Requirements

Install Docker

curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker pi

Frigate Config

Create /home/pi/frigate/config.yml:

mqtt:
  host: 192.168.1.x  # your MQTT broker (or use Home Assistant add-on)

cameras:
  front_door:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/stream
          roles:
            - detect
            - record
    detect:
      width: 1280
      height: 720
    record:
      enabled: true
      events:
        retain:
          default: 10  # days

Run Frigate

docker run -d --name frigate \
  --restart unless-stopped \
  --privileged \
  -v /home/pi/frigate/config.yml:/config/config.yml \
  -v /mnt/ssd/frigate:/media/frigate \
  -p 5000:5000 -p 1935:1935 \
  ghcr.io/blakeblackshear/frigate:stable

Access web UI at http://raspberrypi.local:5000

Coral USB TPU (Optional)

Plugging in a Coral USB Accelerator speeds up detection from ~200ms to ~10ms per frame โ€” makes real-time detection practical for multiple cameras.