Skip to main content

Frigate

Overview

Frigate is the NVR (Network Video Recorder) software that runs on OVERSEER. It's connected to and records from all of the now formerly Cox security cameras.

It's configured to record from every camera for 60 days, and it rolls over the recordings when it hits 60 days. It's main feature, however, is AI detections. It uses AI to check the cameras for the presence of people, dogs, and cats (as configured currently) and if it detects them, it records a clip for as long as they are in frame.

Frigate can be accessed at frigate.sabts.cloud

On the webpage you will find several tabs. The cameras tab shows a snapshot of all of the cameras, and several options for them. The toggle detect/recording/snapshot buttons should be left alone and on.

The sidebar also contains the Storage, System, Config, and Logs tabs. The Config tab allows you to view but also to edit the config file. Editing the config shouldn't be necessary unless more cameras are being added.

Frigate is only a temporary cost-saving solution for campus surveillance. It should be retired in favor of Unifi Protect.

Cameras

The cameras are running on an isolated network on the 192.168.4.0/24 subnet, and access to their web interfaces can be gained either by physically connecting a device to the labeled port on the sanctuary backbone switch or by resuming the firewall rule bridging the main network and the camera network.

The Frigate LXC container has access via a dedicated Ethernet link.

There are two types of cameras - 7 Hikvision 3MP cameras, and 1 Digital Watchdog camera. The Hikvision cameras have username: admin and password: 12345, and the DW camera has username: admin, and password: Password!1

Config

Here is the complete config for Frigate, as of 5/12/2023

mqtt:
# host: 10.0.0.150
enabled: false

detectors:
coral1:
type: edgetpu
device: pci

birdseye:
enabled: True
mode: continuous



cameras:
FH_Fireside_Lounge: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.207:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- detect
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
filters:
person:
mask:
- 740,168,736,128,440,223,453,281
- 1292,195,1327,161,1255,159,1247,195
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 14
objects:
- person
- dog
- cat
# required_zones:
# - zone_0
# zones:
# zone_0:
# coordinates: 841,361,843,527,1224,723,1655,936,1811,703,1671,667,1584,603,1469,573,1295,559,1275,396
# objects:
# - car


FH_Front_Office: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.95:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- scissors
filters:
person:
mask:
- 733,160,480,261,468,209,717,121
- 29,357,80,420,23,435
- 240,340,200,351,211,285
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 14
objects:
- person
- dog
- cat
- scissors

FH_SS1: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.176:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- scissors
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 3
objects:
- person
- dog
- cat
- scissors

FH_Library: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.157:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- scissors
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 14
objects:
- person
- dog
- cat
- scissors


SB_Choir_Lot: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.178:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- record
- rtmp
zones:
zone_0:
coordinates: 1920,473,1847,432,1815,376,1691,339,1560,376,1543,476,1920,633
objects:
- car
zone_1:
coordinates: 1920,0,1920,1080,0,1080,0,0
objects:
- person
- dog
- cat
detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
filters:
car:
mask:
- 1587,0,0,0,0,656,1328,1009
- 1920,297,1855,280,1827,428,1920,517
person:
mask: 0,528,0,0,176,0,231,393,152,515
track:
- person
- dog
- cat
- car
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
required_zones:
- zone_0
- zone_1
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 14
required_zones:
- zone_0
- zone_1
objects:
- person
- dog
- cat
- car

SB_Main_Lot: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.108:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- scissors
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 14
mode: all
events:
retain:
default: 14
objects:
- person
- dog
- cat

SB_Memorial_Garden: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:12345@192.168.4.156:554/Streaming/Channels/101/ # <----- Update for your camera
roles:
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- scissors
filters:
cat:
mask:
- 1263,139,1157,360,881,149
- 900,432,865,97,730,110,808,452
dog:
mask:
- 1263,139,1157,360,881,149
- 900,432,865,97,730,110,808,452
person:
mask:
- 1263,139,1157,360,881,149
- 900,432,865,97,730,110,808,452
motion:
mask:
- 941,92,670,129,710,249,806,276,827,383,865,378,874,291,964,225
- 1189,372,1181,272,1281,213,1301,104,961,117,1022,233,1130,276,1131,365
- 1679,410,1483,218,1339,259,1293,178,1448,31,1648,97
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 14
objects:
- person
- dog
- cat

Pastors_Office: # <------ Name the camera
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://admin:Password!1@192.168.4.93:554/channel1 # <----- Update for your camera
roles:
- record
- rtmp

detect:
enabled: true
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
- cat
- scissors
filters:
person:
mask:
- 1319,133,1320,29,1559,52,1560,147
- 1393,168,1383,196,1319,188,1327,159
motion:
mask:
- 0,87,0,0,733,0,739,85
snapshots:
enabled: True
timestamp: False
bounding_box: False
crop: True
record:
enabled: True
retain:
days: 60
mode: all
events:
retain:
default: 14
objects:
- person
- dog
- cat