heyer.systems Open Source

Frigate NVR

Network video recorder for IP cameras with real-time object detection (people, cars, animals) on the CPU or an Intel GPU via OpenVINO, recordings, events and live view in the browser.

Install

On the Proxmox node as root:

bash -c "$(curl -fsSL https://iac.heyer.systems/frigate/ct.sh)"

Container from the Debian 13 template · default: 4 CPU, 4096 MiB RAM, 64 GiB disk

Customise the commandYour own values for CPU, RAM, network and modules – no dialog

Then: Web: https://<IP>:8971/ (self-signed certificate) – login: admin, password in the guest: grep frigate_admin_password /etc/iac/settings.env

More steps are needed outside the guest – see the setup guide.

Settings per instance

SettingMeaning
frigate_media_locationRecordings directory – optional, default /var/lib/frigate/media – e.g. a separate Proxmox volume for the recordings

When creating a container, as var_<setting>:

var_frigate_media_location="<value>" bash -c "$(curl -fsSL https://iac.heyer.systems/frigate/ct.sh)"

Set or change later, in the guest (for VMs the only way so far): a line frigate_media_location=<value> in /etc/iac/settings.env – no quotes, the last line of a setting wins – then:

update

With NetBox: the same line frigate_media_location=<value> in the field Settings of the VM – it takes effect at the next update. Secrets stay in the guest.

Missing or empty = the app's default. Do not edit the configuration files iac writes – update overwrites them; their first lines name the file for local changes.

Setup guide

Frigate works right after the install – with object detection on the CPU and no cameras yet. This guide covers the steps outside the guest: a volume for the recordings, the Intel GPU for detection and decoding, and the first camera.

IP cameras ──RTSP──▶ go2rtc ──▶ Frigate (detection: OpenVINO on CPU or GPU) ──▶ recordings
                       │                                                          │
                       └── 8554 RTSP / 8555 WebRTC          you ◀── 8971 HTTPS (login) ┘

1. Log in

https://<IP>:8971/ – the certificate is self-signed. User admin, password in the guest:

grep frigate_admin_password /etc/iac/settings.env

2. A volume for the recordings

Recordings grow fast (a 4 MP camera records about 20–40 GB a day). Give them their own volume instead of the root disk of the guest:

GuestOn the Proxmox node
LXCpct set <ID> -mp0 <storage>:500,mp=/srv/frigate (500 GB)
VMadd a second disk, format it, mount it e.g. at /srv/frigate (/etc/fstab)

Then in the guest:

echo 'frigate_media_location=/srv/frigate' >> /etc/iac/settings.env
update

Recordings already made stay in /var/lib/frigate/media – move them by hand if you need them.

With an Intel iGPU (N100/N150, Core with UHD/Iris/Arc graphics) Frigate decodes the video and runs the detection there – much less CPU. The guest needs the GPU device of the host.

LXC – on the Proxmox node (Proxmox VE 8.2 or later), with the group IDs of the guest:

pct exec <ID> -- getent group render video     # e.g. render:x:993  video:x:44
pct set <ID> -dev0 /dev/dri/renderD128,gid=993 -dev1 /dev/dri/card0,gid=44
pct reboot <ID>

VM – pass the iGPU through (PCI passthrough or SR-IOV of the iGPU); the VM then owns it alone.

Check it in the guest:

vainfo --display drm --device /dev/dri/renderD128 | head -5

Then in Frigate’s configuration editor (in the settings of the web UI):

detectors:
  ov:
    type: openvino
    device: GPU          # was CPU

ffmpeg:
  hwaccel_args: preset-vaapi

Save and restart from the editor. The system page of the web UI shows the inference speed of the detector.

4. The first camera

A new installation has no cameras, and the web UI offers a wizard to add one – it asks for the RTSP URL of the camera, tests it and writes the configuration. An example of a camera with a main and a sub stream:

go2rtc:
  streams:
    garden: rtsp://user:password@192.0.2.30:554/stream1
    garden_sub: rtsp://user:password@192.0.2.30:554/stream2

cameras:
  garden:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/garden
          roles: [record]
        - path: rtsp://127.0.0.1:8554/garden_sub
          roles: [detect]
    record:
      enabled: true

Detect on the small stream, record the large one. The cameras only need to reach the guest, not the internet.

5. Home Assistant (optional)

Frigate talks to Home Assistant over MQTT. The guest brings no broker – use the one of Home Assistant (Mosquitto add-on) and set it in Frigate:

mqtt:
  enabled: true
  host: 192.0.2.10
  user: frigate
  password: "{FRIGATE_MQTT_PASSWORD}"

{FRIGATE_MQTT_PASSWORD} comes from the environment: systemctl edit frigate → [Service] Environment=FRIGATE_MQTT_PASSWORD=…. Then install the Frigate integration in Home Assistant (HACS) with https://<IP>:8971.

Your own certificate

Put fullchain.pem and privkey.pem into /var/lib/frigate/letsencrypt/live/frigate/ (owner frigate), then systemctl restart frigate-nginx. Or put a reverse proxy (iac-traefik) in front of port 8971.

Troubleshooting

SymptomCause
“Did not detect hwaccel” in journalctl -u frigateno /dev/dri in the guest – step 3
vainfo fails in an LXCwrong gid= – it must be the group IDs inside the guest
Camera stays blackRTSP URL or credentials wrong: /usr/lib/ffmpeg/8.0/bin/ffprobe rtsp://… in the guest
High CPU loaddetection on the CPU, or decoding without preset-vaapi
Disk fullrecordings on the root disk – step 2; retention: record in the configuration

Source: docs/GUIDE.md of iac-frigate – corrections welcome.

Update

In the guest:

update

Debian packages, Frigate NVR, modules and the iac configuration. Major versions never change automatically.

Add modules – any time, in containers and VMs alike:

update --list-modules
update --add-modules node-exporter

All modules · More about update