nixos-config/modules/frigate/config.yml

77 lines
1.6 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
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
- stun:8555
cameras:
deurbel:
ffmpeg:
inputs:
# - path: rtsp://admin:{FRIGATE_DOORBELL_PASSWORD}@10.0.0.31/h264Preview_01_main
- 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