nixos-config/modules/frigate/config.yml

92 lines
1.9 KiB
YAML

mqtt:
host: mqtt.datarift.nl
port: 1883
user: frigate
password: "{FRIGATE_MQTT_PASSWORD}"
logger:
default: info
detectors:
coral:
type: edgetpu
device: pci
record:
enabled: true
retain:
days: 4
events:
retain:
default: 14
snapshots:
enabled: true
detect:
enabled: True
width: 640
height: 480
# motion:
# mask:
# - 0,180,76,189,215,149,372,128,375,222,194,224,145,311,0,296
objects:
track:
- person
- cat
# - car
birdseye:
enabled: True
mode: continuous
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-aac
go2rtc:
streams:
reolink:
- rtsp://hass:{FRIGATE_DOORBELL_PASSWORD}@10.0.0.31/h264Preview_01_main
# - http://10.0.0.31/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=hass&password={FRIGATE_DOORBELL_PASSWORD}
- ffmpeg:reolink#audio=opus
reolink_sub:
- rtsp://hass:{FRIGATE_DOORBELL_PASSWORD}@10.0.0.31/h264Preview_01_sub
# - http://10.0.0.31/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=hass&password={FRIGATE_DOORBELL_PASSWORD}
webrtc:
candidates:
- 10.0.0.205:8555
- 100.84.124.27:8555 # Tailscale
- stun:8555
cameras:
deurbel:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/reolink_sub?video=copy
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: reolink
record:
events:
required_zones:
- oprit
snapshots:
required_zones:
- oprit
zones:
oprit:
coordinates: 0,480,640,480,640,480,640,259,513,255,323,254,211,254,144,353,79,325,33,286,0,289
objects:
- person
# - car
- cat