-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup_config.yaml
executable file
·275 lines (263 loc) · 7.95 KB
/
backup_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# GENERAL
mqtt:
host: haha.shencentral.net
port: 1883
topic_prefix: frigate
client_id: frigate
user: frigate
password: frigate
timestamp_style:
# Optional: Position of the timestamp (default: shown below)
# "tl" (top left), "tr" (top right), "bl" (bottom left), "br" (bottom right)
position: tl
# Optional: Format specifier conform to the Python package "datetime" (default: shown below)
# Additional Examples:
# german: "%d.%m.%Y %H:%M:%S"
format: '%m/%d/%Y %H:%M:%S'
# Optional: Color of font
color:
# All Required when color is specified (default: shown below)
red: 255
green: 255
blue: 255
# Optional: Line thickness of font (default: shown below)
thickness: 2
# Optional: Effect of lettering (default: shown below)
# None (No effect),
# "solid" (solid background in inverse color of font)
# "shadow" (shadow for font)
effect: shadow
detectors:
coral:
type: edgetpu
device: pci
# GLOBAL SETTINGS
ffmpeg:
hwaccel_args: # these are for Intel NUC D54250WYKH (i5-4250)
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
# the following enables audio recording - comment out if problems
output_args:
record: preset-record-generic-audio-aac
# Access restream at rtsp://<frigate_host>:8554/birdseye
birdseye:
enabled: true
restream: false
width: 1280
height: 720
quality: 8 # 1 is highest quality, 31 is lowest
mode: motion
rtmp:
enabled: false
# CAMERA SETTINGS
cameras:
driveway:
ffmpeg:
inputs:
- path:
rtsp://admin:3o96928712@video-driveway.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
roles:
- record # use high res stream for record
- path:
rtsp://admin:3o96928712@video-driveway.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect # lower res ok for detect
detect: # must match low res stream from camera exactly
width: 640
height: 480
objects:
track:
- person
- car
- motorcycle
- bicycle
motion:
mask:
- 0,0,640,0,640,51,251,59,251,0,256,173,0,219,0,179
zones:
street_zone:
coordinates: 159,109,157,55,373,68,497,87,640,129,640,194,354,135
driveway_zone:
coordinates: 142,193,308,175,359,136,571,183,452,480,116,480,0,264
walk_way_zone:
coordinates: 0,313,370,195,176,108,0,127
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 3 # days to keep all snapshots
record:
enabled: true
retain:
days: 7
mode: motion
events:
retain:
default: 7 # days to keep any events
mode: active_objects
objects:
person: 14 # days to keep events w specific objects
cars: 14
doorbell:
ffmpeg:
inputs:
- path: rtsp://admin:3o96928712@video-doorbell.shencentral.net:554/h264Preview_01_main
roles:
- record # use this high res stream for record
- path: rtsp://admin:3o96928712@video-doorbell.shencentral.net:554/h264Preview_01_sub
roles:
- detect # lower res stream preferred for detect
detect: # must match low res stream from camera exactly
width: 640
height: 480
objects:
track:
- person
motion:
mask:
- 519,146,439,119,599,27,640,103,640,338,511,345
zones:
doorbell_zone:
coordinates: 0,480,519,480,522,0,0,0
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 3 # days to keep all snapshots
record:
enabled: true
retain:
days: 7 # days to keep all motion
mode: motion
events:
retain:
default: 7 # days to keep any events
mode: active_objects
objects:
person: 14 # days to keep events w specific objects
frontporch:
ffmpeg:
inputs:
- path: rtsp://admin:3o96928712@video-frontporch.shencentral.net:8554/profile0
roles:
- record
- path: rtsp://admin:3o96928712@video-frontporch.shencentral.net:8554/profile1
roles:
- detect
detect: # must match low res stream from camera exactly
width: 720
height: 480
objects:
track:
- person
- book
- suitcase
- handbag
motion:
threshold: 50 # changes in color - lower is more sensitive (1-255)
contour_area: 50 # minimum size in pixels that counts as motion 10-high sensivity, 30- medium, 50 - low
mask:
- 720,480,606,480,571,432,576,0,720,0
- 0,480,138,480,179,433,166,0,0,0
zones:
frontporch_zone:
coordinates: 63,480,660,480,663,0,62,0
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 14 # days to keep all snapshots
greatroom:
ffmpeg:
inputs:
- path:
rtsp://admin:3o96928712@video-greatroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path:
rtsp://admin:3o96928712@video-greatroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
detect: # must match low res stream from camera exactly
width: 640
height: 480
objects:
track:
- person
motion:
mask:
- 133,256,207,243,202,174,132,188 # mask TV
- 93,148,188,140,189,111,92,119 # mask ceiling fan
garage:
ffmpeg:
inputs:
- path:
rtsp://admin:3o96928712@video-garage.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path:
rtsp://admin:3o96928712@video-garage.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
detect:
width: 640
height: 480
objects:
track:
- person
sunroom:
ffmpeg:
inputs:
- path:
rtsp://admin:3o96928712@video-sunroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path:
rtsp://admin:3o96928712@video-sunroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
detect: # must match low res stream from camera exactly
width: 640
height: 480
objects:
track:
- person
motion:
mask:
- 290,44,587,64,584,0,288,0 # mask ceiling fan
# GO2RTC
# Access restream at rtsp://<frigate_host>:8554/<camera_name>. Port 8554 must be open.
# Debug at http://frigate_ip:5000/live/webrtc
go2rtc:
streams:
driveway:
- rtsp://admin:3o96928712@video-driveway.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
driveway_sub:
- rtsp://admin:3o96928712@video-driveway.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
doorbell:
- rtsp://admin:3o96928712@video-doorbell.shencentral.net:554/h264Preview_01_main
doorbell_sub:
- rtsp://admin:3o96928712@video-doorbell.shencentral.net:554/h264Preview_01_sub
frontporch:
- rtsp://admin:3o96928712@video-frontporch.shencentral.net:8554/profile0
frontporch_sub:
- rtsp://admin:3o96928712@video-frontporch.shencentral.net:8554/profile1
greatroom:
- rtsp://admin:3o96928712@video-greatroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
greatroom_sub:
- rtsp://admin:3o96928712@video-greatroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
garage:
- rtsp://admin:3o96928712@video-garage.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
garage_sub:
- rtsp://admin:3o96928712@video-garage.shencentral.net:554/cam/realmonitor?channel=1&subtype=1
sunroom:
- rtsp://admin:3o96928712@video-sunroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=0
sunroom_sub:
- rtsp://admin:3o96928712@video-sunroom.shencentral.net:554/cam/realmonitor?channel=1&subtype=1