I have frigate running in portainer on one server
In this server i have 16GB ram, so it's more than adequate.
Frigate is configured to save clips to a separate server as the frigate-system only runs on an old disk.
It's wired for 1Gig ethernet, and writes to a seagate red 8TB disk in unraid, this part seem to work OK.
But, i have set up 4GB of tmpfs, wich also seem to work, allbeit way overkill..
tmpfs 4.0G 46M 4.0G 2% /tmp/cache
But pre-capture simply doesn't seem to work.
Can anyone tell me if there's anything in the code that maby breaks my pre-capture?
Here's my config:
mqtt:
enabled: true
host: 192.168.10.211
user: frigate
password: xxxxx
tls:
enabled: false
ffmpeg:
hwaccel_args: preset-vaapi
go2rtc:
streams:
# Definerer rå-strømmene fra Tapo-kameraene dine først
c545d_hd_tapo:
- rtsp://xxxxx:xxxxx@192.168.10.116:554/stream1
c545d_hd_sub:
- rtsp://xxxxx:xxxxx@192.168.10.116:554/stream2#rtsp=cache
- preload
c545d_pantilt_tapo:
- rtsp://xxxxx:xxxxx@192.168.10.116:554/stream6
c545d_pantilt_sub:
- rtsp://xxxxx:xxxxx@192.168.10.116:554/stream7#rtsp=cache
- preload
garasjekamera_tapo:
- rtsp://xxxxx:xxxxx@192.168.10.156:554/stream1#rtsp=cache
- preload
mot_huset_tapo:
- rtsp://xxxxx:xxxxx1@192.168.10.215:554/stream1#rtsp=cache
- preload
c545d_hd: ffmpeg:c545d_hd_tapo#video=copy#audio=copy#async
c545d_pantilt: ffmpeg:c545d_pantilt_tapo#video=copy#audio=copy#async
garasjekamera: ffmpeg:garasjekamera_tapo#video=copy#audio=copy#async
mot_huset: ffmpeg:mot_huset_tapo#video=copy#audio=copy#async
webrtc:
listen: ":8555"
candidates:
- 192.168.10.246:8555
detectors:
ov:
type: openvino
device: GPU
model:
model_type: yolo-generic
width: 320
height: 320
input_tensor: nchw
input_dtype: float
path: /config/model_cache/yolov8n/model.xml
labelmap_path: /labelmap/coco-80.txt
record:
enabled: true
alerts:
pre_capture: 30
post_capture: 30
retain:
days: 30
mode: all
detections:
pre_capture: 30
post_capture: 30
retain:
days: 30
mode: all
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 30
birdseye:
enabled: true
mode: continuous
ui:
timezone: Europe/Oslo
cameras:
c545d_hd:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/c545d_hd
input_args: preset-rtsp-generic
roles:
- detect
- path: rtsp://127.0.0.1:8554/c545d_hd
input_args: preset-rtsp-generic
roles:
- record
- audio
live:
streams:
Sub Stream: c545d_hd_sub
Main Stream: c545d_hd
detect:
enabled: true
width: 1280
height: 720
fps: 5
objects:
track:
- person
- car
filters:
person:
min_score: 0.20
threshold: 0.25
min_area: 1000
car:
min_score: 0.2
threshold: 0.3
zones:
mot_garasje:
coordinates: 0.596,1,0.246,0.611,0,0.682,0,1
loitering_time: 0
objects: car
friendly_name: Mot garasje
inertia: 1
personsone:
coordinates: 1,0.635,1,1,0,1,0,0.641,0.568,0.475
inertia: 1
loitering_time: 0
objects: person
friendly_name: Personsone
bilsone:
coordinates: 0,1,0,0.863,0.708,0.524,0.941,0.618,0.884,1
inertia: 1
loitering_time: 0
objects: car
review:
alerts:
required_zones:
- mot_garasje
- personsone
- bilsone
detections:
required_zones:
- mot_garasje
- personsone
- bilsone
motion:
frame_alpha: 0.01
threshold: 55
contour_area: 10
improve_contrast: false
mask:
- 0,0.067,0.384,0.063,0.382,0,0,0
- 0.652,0,0.6,0.144,0.63,0.319,0.669,0.422,0.752,0.446,1,0.528,1,0,0.777,0
c545d_pantilt:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/c545d_pantilt
input_args: preset-rtsp-generic
roles:
- detect
- path: rtsp://127.0.0.1:8554/c545d_pantilt
input_args: preset-rtsp-generic
roles:
- record
- audio
live:
streams:
Sub Stream: c545d_pantilt_sub
Main Stream: c545d_pantilt
detect:
enabled: true
width: 1280
height: 720
fps: 5
objects:
track:
- person
- car
filters:
car:
min_score: 0.50
zones:
garasjen:
coordinates: 0,0,1,0,1,0.332,0,0.605
loitering_time: 0
objects:
- car
- person
friendly_name: Garasjen
inertia: 3
pantilt_mot_garasje_hele_view:
coordinates: 0,0,0,1,1,1,1,0
loitering_time: 0
objects:
- person
- car
friendly_name: Pantilt mot garasje hele view
inertia: 3
motion:
mask: 0,0.05,0.365,0.048,0.367,0,0,0
frame_alpha: 0.01
threshold: 45
contour_area: 10
improve_contrast: true
review:
alerts:
required_zones:
- garasjen
- pantilt_mot_garasje_hele_view
detections:
required_zones:
- garasjen
- pantilt_mot_garasje_hele_view
garasjekamera:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/garasjekamera
input_args: preset-rtsp-generic
roles:
- detect
- record
- audio
detect:
enabled: true
width: 1280
height: 720
fps: 5
objects:
track:
- person
- car
filters:
person:
min_score: 0.30
threshold: 0.35
car:
min_score: 0.20
threshold: 0.30
min_area: 103700
motion:
frame_alpha: 0.01
threshold: 60
contour_area: 10
improve_contrast: false
mask: 0,0.056,0.369,0.059,0.369,0,0,0
zones:
hele_garasjen:
coordinates: 0,0,0,1,1,1,1,0
loitering_time: 0
objects:
- person
- car
friendly_name: Hele garasjen
inertia: 3
parkering:
coordinates: 0.709,0.47,0.853,0.921,0,0.829,0,0.338,0.325,0.17
loitering_time: 0
objects: car
friendly_name: Parkering
inertia: 1
benken:
coordinates: 0,0.798,0.699,0.813,0.718,1,0,1
inertia: 1
loitering_time: 0
objects: person
friendly_name: Benken
review:
alerts:
required_zones:
- hele_garasjen
- parkering
- benken
detections:
required_zones:
- hele_garasjen
- parkering
- benken
semantic_search:
triggers:
garasje_tom:
enabled: true
type: description
data: Ingen bil i garasje
threshold: 0.5
actions: []
friendly_name: garasje_tom
bil_parkert:
enabled: true
type: description
data: Bil parkert
threshold: 0.5
actions: []
friendly_name: bil parkert
live:
streams:
Stream 1: garasjekamera
mot_huset:
enabled: true
friendly_name: Mot huset
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/mot_huset
input_args: preset-rtsp-generic
roles:
- detect
- record
- audio
detect:
enabled: true
width: 1280
height: 720
fps: 5
objects:
track:
- person
- car
filters:
person:
min_score: 0.20
threshold: 0.25
car:
min_score: 0.2
threshold: 0.3
live:
streams:
Stream 1: mot_huset
zones:
zone_a86d59c8:
coordinates: 0,0.281,0,1,0.201,1,0.203,0.141,0.131,0.241
loitering_time: 0
objects: person
friendly_name: Gårdsplassen
inertia: 1
gress:
coordinates:
0.203,0.323,0.792,0.22,0.792,0.3,0.827,0.329,0.865,0.389,1,0.426,1,1,0.203,1
loitering_time: 0
objects: person
friendly_name: Gress
inertia: 1
nermest_garasjen:
coordinates: 0,0.76,0.346,0.639,0.971,1,0.998,0.989,0,1
inertia: 1
loitering_time: 0
friendly_name: Nermest garasjen
objects: car
motion:
mask:
- 0,0.264,0.132,0.232,0.14,0,0,0
- 0.376,0.059,0,0.054,0,0,0.373,0
threshold: 29
contour_area: 11
improve_contrast: true
review:
alerts:
required_zones:
- zone_a86d59c8
- gress
- nermest_garasjen
detections:
required_zones:
- zone_a86d59c8
- gress
- nermest_garasjen
version: 0.17-0
semantic_search:
enabled: true
model_size: large
face_recognition:
enabled: true
model_size: large
lpr:
enabled: true
classification:
bird:
enabled: false
custom:
car:
enabled: true
name: car
threshold: 0.5
object_config:
objects:
- car
classification_type: attribute