frigate/conf/config.yaml

203 lines
5.5 KiB
YAML
Raw Permalink Normal View History

2023-05-11 19:03:34 -04:00
mqtt:
2023-05-21 19:33:10 -04:00
host: mqtt
2023-05-11 19:03:34 -04:00
detectors:
cpu1:
type: cpu
num_threads: 2
cpu2:
type: cpu
num_threads: 2
2024-08-05 23:54:05 -04:00
go2rtc:
streams:
garage:
2024-11-05 23:53:20 -05:00
- 'rtsp://{FRIGATE_GARAGE_RTSP_USERNAME}:{FRIGATE_GARAGE_RTSP_PASSWORD}@192.168.0.102:554/live'
2024-08-05 23:54:05 -04:00
doorbell:
2024-11-05 23:53:20 -05:00
- 'rtsp://{FRIGATE_DOORBELL_RTSP_USERNAME}:{FRIGATE_DOORBELL_RTSP_PASSWORD}@192.168.0.105:554/cam/realmonitor?channel=1&subtype=0'
2024-08-05 23:54:05 -04:00
front_door:
2024-11-05 23:53:20 -05:00
- 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0'
2024-08-05 23:54:05 -04:00
driveway:
2024-11-05 23:53:20 -05:00
- 'rtsp://{FRIGATE_DRIVEWAY_RTSP_USERNAME}:{FRIGATE_DRIVEWAY_RTSP_PASSWORD}@192.168.0.148:5543/live/channel1'
2024-08-05 23:54:05 -04:00
back_door:
2024-11-05 23:53:20 -05:00
- 'rtsp://wyze-bridge:8554/back-yard-cam'
2024-08-05 23:54:05 -04:00
family_room:
2024-11-05 23:53:20 -05:00
- 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.106:554/stream1'
office:
- 'rtsp://{FRIGATE_OFFICE_RTSP_USERNAME}:{FRIGATE_OFFICE_RTSP_PASSWORD}@192.168.0.104:554/live/ch0'
2024-08-05 23:54:05 -04:00
2023-05-11 19:03:34 -04:00
cameras:
garage:
enabled: true
ffmpeg:
inputs:
2024-11-05 23:53:20 -05:00
- path: 'rtsp://127.0.0.1:8554/garage'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
2023-05-11 19:03:34 -04:00
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
2023-07-30 12:19:08 -04:00
motion:
mask:
2024-11-05 23:53:20 -05:00
- 1384,1058,1384,1009,1872,1009,1872,1058 # Timestamp
2023-10-09 19:08:37 -04:00
doorbell:
2023-05-11 19:03:34 -04:00
enabled: true
ffmpeg:
inputs:
2024-11-05 23:53:20 -05:00
- path: 'rtsp://127.0.0.1:8554/doorbell'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
2023-05-11 19:03:34 -04:00
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
2024-08-11 19:56:56 -04:00
review:
alerts:
2023-10-09 19:08:37 -04:00
required_zones:
2024-11-05 23:53:20 -05:00
- front_door_zone
2023-10-09 19:08:37 -04:00
snapshots:
required_zones:
2024-11-05 23:53:20 -05:00
- front_door_zone
2023-10-09 19:08:37 -04:00
zones:
front_door_zone:
coordinates: 964,677,1920,1080,0,1080,539,754 # Near front door
front_door:
2023-07-23 16:41:00 -04:00
enabled: true
ffmpeg:
inputs:
2024-11-05 23:53:20 -05:00
- path: 'rtsp://127.0.0.1:8554/front_door'
roles:
- detect
- record
2023-07-23 16:41:00 -04:00
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: false
2023-07-23 16:41:00 -04:00
width: 1920
height: 1080
2023-10-09 19:08:37 -04:00
motion:
mask:
2024-11-05 23:53:20 -05:00
- 361,96,565,0,0,0,0,304 # Sidewalk
- 1445,0,1444,46,1920,46,1920,0 # Timestamp
2023-10-09 19:08:37 -04:00
objects:
filters:
person:
mask:
2024-11-05 23:53:20 -05:00
- 167,1080,511,1080,328,744,234,456,140,451,0,509,0,804 # Flower bed and hedge
- 1153,847,1112,838,1042,896,1023,988,1023,1080,1525,1080 # Drainpipe
2023-07-18 16:23:21 -04:00
driveway:
2023-07-30 12:19:08 -04:00
enabled: false
2023-07-18 16:23:21 -04:00
ffmpeg:
inputs:
2024-11-05 23:53:20 -05:00
- path: 'rtsp://127.0.0.1:8554/driveway'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
2023-07-18 16:23:21 -04:00
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 640
height: 360
2023-05-11 19:03:34 -04:00
back_door:
enabled: true
ffmpeg:
inputs:
2024-11-05 23:53:20 -05:00
- path: 'rtsp://127.0.0.1:8554/back_door'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
2023-05-11 19:03:34 -04:00
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
motion:
mask:
2024-11-05 23:53:20 -05:00
- 1877,1080,1378,1080,1378,1008,1877,1008 # Timestamp
2023-05-11 19:03:34 -04:00
family_room:
2023-07-11 07:32:12 -04:00
enabled: false
2023-05-11 19:03:34 -04:00
ffmpeg:
inputs:
2024-11-05 23:53:20 -05:00
- path: 'rtsp://127.0.0.1:8554/family_room'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
office:
enabled: false
ffmpeg:
inputs:
- path: 'rtsp://127.0.0.1:8554/office'
roles:
- detect
- record
2023-05-11 19:03:34 -04:00
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1280
height: 720
ffmpeg:
hwaccel_args: preset-vaapi # Use VAAPI hardware acceleration by default
input_args: preset-rtsp-generic
2024-08-11 19:56:56 -04:00
objects:
track:
2024-11-05 23:53:20 -05:00
- person
2024-08-11 19:56:56 -04:00
review:
alerts:
labels:
2024-11-05 23:53:20 -05:00
- person
2024-08-11 19:56:56 -04:00
2023-05-11 19:03:34 -04:00
detect:
enabled: true
fps: 5
max_disappeared: 25 # Number of frames without a detection before Frigate considers an object to be gone
2024-08-11 19:56:56 -04:00
motion:
2023-05-11 19:03:34 -04:00
record:
enabled: true
expire_interval: 60
retain:
2023-07-18 16:23:21 -04:00
days: 30 # Number of days to retain recordings regardless of events
2023-05-11 19:03:34 -04:00
mode: all # Mode for retention: all (24/7), motion (only segments with motion), active_objects (only segments with active objects)
events:
pre_capture: 5 # Number of seconds before the event to include
post_capture: 5 # Number of seconds after the event to include
retain:
default: 30 # Number of days to retain recordings of events
mode: all # Mode for retention: all (24/7), motion (only segments with motion), active_objects (only segments with active objects)
snapshots:
enabled: true
birdseye:
2024-08-11 19:56:56 -04:00
enabled: false
2023-05-11 19:03:34 -04:00
mode: continuous
2024-08-11 19:56:56 -04:00
auth:
enabled: false