frigate/conf/config.yaml

122 lines
3.3 KiB
YAML
Raw Normal View History

2023-05-11 18:03:34 -05:00
mqtt:
2023-05-21 18:33:10 -05:00
host: mqtt
2023-05-11 18:03:34 -05:00
user: '{FRIGATE_MQTT_USERNAME}'
password: '{FRIGATE_MQTT_PASSWORD}'
detectors:
cpu1:
type: cpu
num_threads: 2
cpu2:
type: cpu
num_threads: 2
cameras:
garage:
enabled: true
ffmpeg:
inputs:
- path: 'rtsp://{FRIGATE_GARAGE_RTSP_USERNAME}:{FRIGATE_GARAGE_RTSP_PASSWORD}@192.168.0.102:554/live'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
front_door:
enabled: true
ffmpeg:
inputs:
- path: 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
2023-05-24 13:01:15 -05:00
objects:
filters:
person:
mask:
#- 165,777,140,451,0,509,0,817 # Flower bed
- 167,1080,511,1080,328,744,234,456,140,451,0,509,0,804 # Flower bed and hedge
2023-05-24 13:01:15 -05:00
- 359,85,542,0,0,0,0,288 # Sidewalk
2023-05-11 18:03:34 -05:00
back_door:
enabled: true
ffmpeg:
inputs:
- path: 'rtsp://{FRIGATE_BACK_DOOR_RTSP_USERNAME}:{FRIGATE_BACK_DOOR_RTSP_PASSWORD}@192.168.0.111:554/live/ch0'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
objects:
filters:
person:
mask:
- 243,311,610,278,534,604,110,606 # Plants on patio
2023-05-11 18:03:34 -05:00
family_room:
2023-05-17 09:44:12 -05:00
enabled: false
2023-05-11 18:03:34 -05:00
ffmpeg:
inputs:
- path: 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.104:554/live/ch0'
roles:
- detect
- record
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
detect:
enabled: true
fps: 5
max_disappeared: 25 # Number of frames without a detection before Frigate considers an object to be gone
record:
enabled: true
expire_interval: 60
retain:
days: 10 # Number of days to retain recordings regardless of events
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
objects:
- person
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
rtmp:
enabled: false
motion:
birdseye:
enabled: true
mode: continuous