nixos-config/modules/frigate/config.yml

76 lines
1.6 KiB
YAML
Raw Normal View History

2023-03-21 17:20:22 +01:00
mqtt:
host: mqtt.datarift.nl
port: 1883
2023-03-21 17:20:22 +01:00
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
2023-03-21 17:20:22 +01:00
record:
enabled: true
retain:
days: 4
events:
retain:
default: 14
2023-03-21 17:20:22 +01:00
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
2023-03-21 17:20:22 +01:00
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}
2023-03-21 17:20:22 +01:00
cameras:
deurbel:
2023-03-21 17:20:22 +01:00
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
2023-03-21 17:20:22 +01:00
roles:
- record
- path: rtsp://127.0.0.1:8554/reolink_sub?video=copy
input_args: preset-rtsp-restream
roles:
- detect