nixos-config/modules/frigate/config.yml

79 lines
1.7 KiB
YAML

mqtt:
host: mqtt.datarift.nl
port: 1883
user: frigate
password: "{FRIGATE_MQTT_PASSWORD}"
logger:
default: info
detectors:
ov:
type: openvino
model:
path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
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
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-aac
go2rtc:
streams:
reolink:
# - rtsp://admin:{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://admin:{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