Frigate NVR Setup¶

Frigate is a self-hosted NVR running inside a Docker container on a privileged Proxmox LXC, providing real-time AI object detection, recording, and snapshot capture for all four PoE cameras — completely local with no cloud dependencies.
Why Frigate?¶
The FUTO philosophy is clear: own your surveillance footage locally. Cloud-based camera systems (Ring, Nest) send your video to someone else's servers. Frigate runs entirely locally, stores recordings on your own NAS, and does AI-based object detection without phoning home.
The Reolink RLC-510A cameras support RTSP streaming, which Frigate ingests directly. No cloud account required.
Architecture¶
graph LR
subgraph IoT["IoT VLAN (10.0.30.x)"]
DB["Doorbell<br/>10.0.30.117"]
FC["Front Camera<br/>10.0.30.114"]
SC["Side Camera<br/>10.0.30.115"]
RC["Rear Camera<br/>10.0.30.116"]
end
subgraph MGMT["Management VLAN (10.0.10.x)"]
Frigate["Frigate NVR<br/>LXC 102 · 10.0.10.104"]
NAS["TrueNAS<br/>surveillance dataset"]
HA["Home Assistant<br/>10.0.10.60"]
end
DB -- "HTTP-FLV" --> Frigate
FC -- "RTSP" --> Frigate
SC -- "RTSP" --> Frigate
RC -- "RTSP" --> Frigate
Frigate -- "NFS" --> NAS
Frigate -- "MQTT" --> HA
Hardware¶
Cameras:
| Location | Model | IP | MAC |
|---|---|---|---|
| Doorbell | Reolink PoE Doorbell | 10.0.30.117 |
ec:71:db:xx:xx:xx |
| Front | Reolink RLC-510A (5MP) | 10.0.30.114 |
ec:71:db:xx:xx:xx |
| Side | Reolink RLC-510A (5MP) | 10.0.30.115 |
ec:71:db:xx:xx:xx |
| Rear | Reolink RLC-510A (5MP) | 10.0.30.116 |
ec:71:db:xx:xx:xx |
All cameras are powered via PoE from the USW-Lite-8-PoE switch with ports assigned to the IoT VLAN profile.
Compute: Frigate runs as LXC container 102 on pve3 (HP EliteDesk 800 G3 Mini, i7-7700), moved from pve1 in November 2026 to spread load and heat. The Intel iGPU provides both hardware video decoding and OpenVINO AI object detection.
LXC Container¶
The Frigate container runs as a privileged LXC to allow GPU device passthrough and future Coral TPU support.
| Setting | Value |
|---|---|
| CT ID | 102 |
| Node | pve3 |
| IP | 10.0.10.104/24 |
| Gateway | 10.0.10.1 |
| RAM | 4096 MB |
| CPU | 4 cores |
| Disk | 16 GB (local-lvm) |
| Type | Privileged (unprivileged=0) |
| Features | nesting=1 |
Intel iGPU Passthrough¶
The Intel HD 530 iGPU is passed through to the LXC for hardware-accelerated video decoding (VAAPI) and AI inference (OpenVINO). This is configured in the container's Proxmox config file.
On the Proxmox host — edit /etc/pve/lxc/102.conf:
lxc.cgroup2.devices.allow: c 226:* rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
After adding these lines, restart the container. Frigate auto-detects the GPU and enables VAAPI decoding.
Storage¶
Recordings and snapshots are stored on the TrueNAS NAS in the surveillance dataset, shared over NFS.
NAS side (TrueNAS):
- Create a
surveillancedataset (no snapshots needed — Frigate manages its own retention) - Add an NFS share for it, limited to the Proxmox node(s) that run Frigate
Proxmox host side — mount and bind into LXC:
Inside the container, the NFS mount appears at /mnt/nas-frigate and is mapped to /media/frigate in the Docker container via the compose file.
Docker Compose¶
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "640mb"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- /mnt/nas-frigate:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554"
- "8555:8555/tcp"
- "8555:8555/udp"
devices:
- /dev/dri:/dev/dri
SHM Size
With 4 cameras (8 streams total — main + sub per camera), the default 64MB SHM is far too small. Frigate recommends at least 634MB. Set shm_size: "640mb" or higher. Insufficient SHM causes frame drops, decoder crashes, and intermittent black screens.
Frigate Configuration¶
The full config/config.yml with all four cameras, OpenVINO detection, VAAPI hardware decode, and dual-stream recording with tiered retention:
mqtt:
enabled: true
host: 10.0.10.60
port: 1883
user: mqtt
password: "<your-mqtt-password>"
ffmpeg:
hwaccel_args: preset-vaapi
go2rtc:
streams:
# Doorbell uses HTTP-FLV only — an open RTSP session locks the stream
# and stops the doorbell's own chime from ringing
doorbell:
- "ffmpeg:http://10.0.30.117/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=<password>#video=copy#audio=copy#audio=opus"
doorbell_sub:
- "ffmpeg:http://10.0.30.117/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=<password>"
front_camera:
- rtsp://admin:<password-url-encoded>@10.0.30.114:554/h264Preview_01_main
front_camera_sub:
- rtsp://admin:<password-url-encoded>@10.0.30.114:554/h264Preview_01_sub
side_camera:
- rtsp://admin:<password-url-encoded>@10.0.30.115:554/h264Preview_01_main
side_camera_sub:
- rtsp://admin:<password-url-encoded>@10.0.30.115:554/h264Preview_01_sub
rear_camera:
- rtsp://admin:<password-url-encoded>@10.0.30.116:554/h264Preview_01_main
rear_camera_sub:
- rtsp://admin:<password-url-encoded>@10.0.30.116:554/h264Preview_01_sub
detectors:
ov:
type: openvino
device: GPU
model_path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
detect:
enabled: true
cameras:
doorbell:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/doorbell
roles:
- record
- path: rtsp://127.0.0.1:8554/doorbell_sub
roles:
- detect
detect:
width: 640
height: 480
fps: 5
record:
enabled: true
retain:
days: 3
mode: motion
alerts:
retain:
days: 14
detections:
retain:
days: 14
snapshots:
enabled: true
retain:
default: 14
objects:
track:
- person
- car
- dog
- cat
front_camera:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_camera
roles:
- record
- path: rtsp://127.0.0.1:8554/front_camera_sub
roles:
- detect
detect:
width: 640
height: 480
fps: 5
record:
enabled: true
retain:
days: 3
mode: motion
alerts:
retain:
days: 14
detections:
retain:
days: 14
snapshots:
enabled: true
retain:
default: 14
objects:
track:
- person
- car
- dog
- cat
side_camera:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/side_camera
roles:
- record
- path: rtsp://127.0.0.1:8554/side_camera_sub
roles:
- detect
detect:
width: 640
height: 480
fps: 5
record:
enabled: true
retain:
days: 3
mode: motion
alerts:
retain:
days: 14
detections:
retain:
days: 14
snapshots:
enabled: true
retain:
default: 14
objects:
track:
- person
- car
- dog
- cat
rear_camera:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/rear_camera
roles:
- record
- path: rtsp://127.0.0.1:8554/rear_camera_sub
roles:
- detect
detect:
width: 640
height: 480
fps: 5
record:
enabled: true
retain:
days: 3
mode: motion
alerts:
retain:
days: 14
detections:
retain:
days: 14
snapshots:
enabled: true
retain:
default: 14
objects:
track:
- person
- car
- dog
- cat
version: 0.16-0
semantic_search:
enabled: true
model_size: large
face_recognition:
enabled: true
model_size: large
lpr:
enabled: true
classification:
bird:
enabled: false
Stream Architecture¶
Each camera uses a dual-stream approach to balance detection quality with storage efficiency:
- Main stream (
h264Preview_01_mainat 2560×1920) → used for recording, saving full 5MP quality to the NAS - Sub stream (
h264Preview_01_subat 640×480) → used for AI detection, already close to the 300×300 model input size so minimal CPU is needed for downscaling
All streams pass through go2rtc for restreaming, which provides stable WebRTC playback in the UI and prevents multiple direct connections to the cameras.
Hardware decode is enabled globally via ffmpeg: hwaccel_args, offloading video decoding to the Intel iGPU for all cameras including the doorbell.
The doorbell is FLV-only. With RTSP, an open session locks the Reolink doorbell's stream — the blue LED stays on and the indoor chime stops ringing. Using only HTTP-FLV keeps the chime working. The trade-off is no two-way talk through Home Assistant or Frigate (the Reolink app still does it).
Tiered Retention (Frigate 0.16 schema)¶
Frigate 0.16 uses alerts and detections keys (not the old events key) for tiered retention:
| Retention Type | Duration | What It Keeps |
|---|---|---|
| Motion | 3 days | Any segment with motion detected |
| Alerts | 14 days | Segments where tracked objects triggered alerts |
| Detections | 14 days | Segments where AI detected objects of interest |
This tiered approach dropped the old NAS from 99% to ~30% full.
AI Features¶
- Semantic search — natural language search across recorded events
- Face recognition — identifies known faces from snapshots (faces trained in the Face Library)
- LPR (licence plate reading) — on the front camera only; off elsewhere to save CPU
- Bird classification — off (birds aren't tracked anyway)
- Object tracking — person, car, dog, and cat detection on all cameras
Zones and Masks¶
- Clock masks: a motion mask over each camera's on-screen clock, so the ticking seconds never count as motion
drivewayzone: alerts on the front camera (person, car) and doorbell (person only) require the object to be in the driveway zone. The street, pavement and front garden become detections, not alerts. Before this, 62 of the last 100 alerts were cars driving past.- Pinned image:
ghcr.io/blakeblackshear/frigate:0.16.4instead ofstable, so an update can't jump a major version unplanned
Detection Performance¶
The Intel HD 530 iGPU running OpenVINO provides significant performance improvements over CPU-based detection:
| Metric | CPU Detector | OpenVINO (GPU) |
|---|---|---|
| Inference speed | 482 ms | ~9 ms |
| Detector CPU usage | 174.7% | 14.0% |
| Improvement | — | 53× faster |
Measured on the i7-6700T's HD 530 iGPU. All 4 cameras detect at 5 fps with zero skipped frames.
Firewall Rules¶
Frigate needs cross-VLAN access to reach the cameras on the IoT VLAN.
OPNsense → Firewall → Rules → MGMT interface:
| Action | Protocol | Source | Destination | Description |
|---|---|---|---|---|
| Pass | TCP/UDP | 10.0.10.104 |
10.0.30.0/24 |
Allow Frigate to access cameras |
Network Cabling¶
All four cameras are wired with outdoor-rated Cat6 to the USW-Lite-8-PoE switch — about 77 metres in total. Measure runs from a floor plan before buying cable, and add slack for every corner.
Adding New Cameras¶
To add a camera to the system:
- Connect the camera to a PoE port on the switch with IoT VLAN profile
- Create a static DHCP reservation in OPNsense (Services → DHCPv4 → IoT)
- Set admin credentials on the camera via its web UI
- Add the RTSP stream URLs to
go2rtc.streamsin the Frigate config - Add the camera definition to the
camerassection - Restart Frigate:
docker compose restart frigate
Storage Considerations¶
With the corrected stream architecture (main stream for recording, sub stream for detection), storage usage is significantly reduced compared to recording the full 5MP main stream:
Estimated storage usage with tiered retention:
| Scenario | Daily (est.) | Steady State |
|---|---|---|
| 4 cameras, main stream record, 3d motion + 14d alerts | ~25–40 GiB | ~500–700 GiB |
Keep an eye on it anyway: recordings are the fastest-growing data in the lab, and there's a Grafana alert for the recordings disk filling up.
Home Assistant Integration¶
Frigate integrates with Home Assistant via MQTT (Mosquitto broker), enabling:
- Live camera feeds on the HA dashboard using picture-glance cards with native Frigate camera entities (no iframes needed)
- Mobile push notifications via the Frigate Notifications blueprint — sends a snapshot when a person is at the door. Set the blueprint to alerts only and turn on its zone filter — its defaults send every detection (cars in the street, people on the pavement) regardless of Frigate's zones
- Front door sensor: when the Zigbee door contact opens, the doorbell snapshot goes to every household phone and the indoor chime rings — see Zigbee
- Event-driven automations based on object detection events
For full Home Assistant setup, see the Home Assistant guide.
Lessons Learned¶
Stream roles matter — sub for detect, main for record. The detection model input is 300×300 pixels. Sending 5MP frames to the detector wastes massive CPU on downscaling. The sub-stream at 640×480 is already close to model input size. Meanwhile, the main stream records at full 5MP quality to the NAS.
URL-encode special characters in passwords. The # character is interpreted as a URL fragment delimiter in RTSP URLs, silently truncating the password. Use %23 instead of #.
SHM size must scale with camera count. The default 256MB is adequate for 1–2 cameras but causes crashes with 4. Frigate logs the recommended minimum — watch for the warning on startup.
VAAPI globally with preset-vaapi. Enable hardware decode for all cameras at the global ffmpeg level rather than per-camera. This ensures the doorbell and all other cameras use iGPU decode.
Tiered retention saves storage. The jump from flat 14-day retention to 3-day motion / 14-day alerts dropped NAS usage from 99% to ~30%.
VLAN double-tagging. If the Proxmox host bridge already carries the management VLAN as untagged traffic, do not add a VLAN tag to the LXC network interface. Double-tagging prevents the container from getting an IP address.
Notification noise usually isn't Frigate's fault. If you get alerts for parked cars after setting zones, check the Home Assistant blueprint — its defaults ignore Frigate's alert/detection split.
go2rtc restreaming is essential. Connecting Frigate directly to camera RTSP streams causes multiple concurrent connections to each camera, leading to instability. Routing everything through go2rtc ensures a single connection per camera with stable restreaming to all consumers.