/
/
/
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 # no device index needed; TRT gets picked up in the tensorrt image
20
21model:
22 model_type: yolo-generic
23 width: 640
24 height: 640
25 input_tensor: nchw
26 input_pixel_format: rgb
27 path: /config/models/yolov5s.onnx
28 labelmap_path: /config/models/coco_labels.txt
29
30ffmpeg:
31 hwaccel_args: preset-nvidia
32{% else %}
33detectors:
34 cpu_0:
35 type: cpu
36
37ffmpeg:
38 hwaccel_args: auto
39{% endif %}
40
41snapshots:
42 enabled: true
43 timestamp: false
44 bounding_box: true
45 crop: false
46 height: 175
47
48record:
49 enabled: true
50 expire_interval: 60
51 sync_recordings: false
52 retain:
53 days: 30
54 mode: all
55
56objects:
57 track:
58 - person
59 - car
60 - cat
61 filters:
62 person:
63 min_area: 2000
64 max_area: 100000
65 threshold: 0.7
66 car:
67 min_area: 5000
68 max_area: 100000
69 threshold: 0.7
70 cat:
71 min_area: 5000
72 max_area: 100000
73 threshold: 0.7
74review:
75 alerts:
76 labels: [person, cat]
77
78motion:
79 threshold: 25
80 contour_area: 30
81 delta_alpha: 0.2
82 frame_alpha: 0.2
83 frame_height: 180
84 improve_contrast: true
85
86cameras:
87 dining-room:
88 enabled: true
89 ffmpeg:
90 inputs:
91 - path: rtsp://1eWHbb55Pt16:[email protected]/live0
92 roles: [detect, record]
93 living-room:
94 enabled: true
95 ffmpeg:
96 inputs:
97 - path: rtsp://7X3HSPyvca0nR9W9:[email protected]/live0
98 roles: [detect, record]
99 bed-room:
100 enabled: true
101 ffmpeg:
102 inputs:
103 - path: rtsp://I2cwWwT5PdbfHapO:[email protected]/live0
104 roles: [detect, record]
105 alina-office:
106 enabled: true
107 ffmpeg:
108 inputs:
109 - path: rtsp://4wynF0gXe4GFbtxA:[email protected]/live0
110 roles: [detect, record]
111 tapo-cam:
112 enabled: true
113 ffmpeg:
114 inputs:
115 - path: rtsp://tapo-cam:[email protected]:554/stream1
116 roles: [detect, record]
117
118go2rtc:
119 streams:
120 dining-room:
121 - rtsp://1eWHbb55Pt16:[email protected]/live0
122
123 living-room:
124 - rtsp://7X3HSPyvca0nR9W9:[email protected]/live0
125
126 bed-room:
127 - rtsp://I2cwWwT5PdbfHapO:[email protected]/live0
128
129 alina-office:
130 - rtsp://4wynF0gXe4GFbtxA:[email protected]/live0
131
132 tapo-cam:
133 - rtsp://tapo-cam:[email protected]:554/stream1
134
135
136ui:
137 timezone: Europe/Amsterdam
138
139birdseye:
140 enabled: true
141 restream: false
142 width: 1280
143 height: 720
144 quality: 1
145 mode: objects
146
147logger:
148 default: info
149 logs:
150 frigate.event: debug
151
152version: 0.16-0
153
154auth:
155 enabled: false
156
157tls:
158 enabled: false
159detect:
160 enabled: true