/
/
/
1# Frigate Configuration
2# Auto-generated by Ansible Runner Role
3
4mqtt:
5 enabled: true
6 host: {{ frigate_mqtt_host }}
7 port: {{ frigate_mqtt_port }}
8 user: {{ frigate_mqtt_username }}
9 password: {{ frigate_mqtt_password }}
10 topic_prefix: frigate
11
12database:
13 path: /data/frigate.db
14
15{% if frigate_hardware_acceleration == 'nvenc' %}
16detectors:
17 onnx_0:
18 type: onnx
19 onnx_1:
20 type: onnx
21
22model:
23 model_type: yolo-generic
24 path: /config/models/yolov7-tiny.onnx
25 labelmap_path: /config/models/coco_labels.txt
26 width: 640
27 height: 640
28 input_tensor: nchw
29 input_dtype: float
30
31ffmpeg:
32 hwaccel_args: preset-nvidia
33{% else %}
34detectors:
35 cpu_0:
36 type: cpu
37
38ffmpeg:
39 hwaccel_args: auto
40{% endif %}
41
42snapshots:
43 enabled: true
44 timestamp: false
45 bounding_box: true
46 crop: false
47 height: 175
48
49record:
50 enabled: true
51 expire_interval: 60
52 sync_recordings: false
53 retain:
54 days: 30
55 mode: all
56
57objects:
58 track:
59 - person
60 - car
61 - cat
62 filters:
63 person:
64 min_area: 2000
65 max_area: 200000
66 threshold: 0.7
67 car:
68 min_area: 1000
69 max_area: 5000
70 threshold: 0.9
71 cat:
72 min_area: 2000
73 max_area: 100000
74 threshold: 0.6
75review:
76 alerts:
77 labels: [person, cat]
78
79motion:
80 threshold: 25
81 contour_area: 30
82 delta_alpha: 0.2
83 frame_alpha: 0.2
84 frame_height: 144
85 improve_contrast: false
86
87cameras:
88 dining-room:
89 enabled: true
90 ffmpeg:
91 inputs:
92 - path: rtsp://127.0.0.1:8554/dining-room-detect
93 roles: [detect]
94 - path: rtsp://127.0.0.1:8554/dining-room
95 roles: [record]
96 detect:
97 fps: 7
98 width: 640
99 height: 640
100 living-room:
101 enabled: true
102 ffmpeg:
103 inputs:
104 - path: rtsp://127.0.0.1:8554/living-room-detect
105 roles: [detect]
106 - path: rtsp://127.0.0.1:8554/living-room
107 roles: [record]
108 detect:
109 fps: 7
110 width: 640
111 height: 640
112 bed-room:
113 enabled: true
114 ffmpeg:
115 inputs:
116 - path: rtsp://127.0.0.1:8554/bed-room-detect
117 roles: [detect]
118 - path: rtsp://127.0.0.1:8554/bed-room
119 roles: [record]
120 detect:
121 fps: 7
122 width: 640
123 height: 640
124 alina-office:
125 enabled: true
126 ffmpeg:
127 inputs:
128 - path: rtsp://127.0.0.1:8554/alina-office-detect
129 roles: [detect]
130 - path: rtsp://127.0.0.1:8554/alina-office
131 roles: [record]
132 detect:
133 fps: 7
134 width: 640
135 height: 640
136
137go2rtc:
138 streams:
139 dining-room:
140 - rtsp://1eWHbb55Pt16:[email protected]/live0
141 dining-room-detect:
142 - "ffmpeg:rtsp://1eWHbb55Pt16:[email protected]/live0#video=h264#width=640#height=360#hardware"
143
144 living-room:
145 - rtsp://7X3HSPyvca0nR9W9:[email protected]/live0
146 living-room-detect:
147 - "ffmpeg:rtsp://7X3HSPyvca0nR9W9:[email protected]/live0#video=h264#width=640#height=360#hardware"
148
149 bed-room:
150 - rtsp://I2cwWwT5PdbfHapO:[email protected]/live0
151 bed-room-detect:
152 - "ffmpeg:rtsp://I2cwWwT5PdbfHapO:[email protected]/live0#video=h264#width=640#height=360#hardware"
153
154 alina-office:
155 - rtsp://4wynF0gXe4GFbtxA:[email protected]/live0
156 alina-office-detect:
157 - "ffmpeg:rtsp://4wynF0gXe4GFbtxA:[email protected]/live0#video=h264#width=640#height=360#hardware"
158
159ui:
160 timezone: Europe/Amsterdam
161
162birdseye:
163 enabled: true
164 restream: false
165 width: 1280
166 height: 720
167 quality: 8
168 mode: objects
169
170logger:
171 default: debug
172 logs:
173 frigate.event: debug
174 frigate.detectors.plugins.onnx: debug
175 detector.onnx: debug
176
177version: 0.16-1
178
179auth:
180 enabled: false
181
182tls:
183 enabled: false
184detect:
185 enabled: true
186