This is my config so far:
ffmpeg:
hwaccel_args: preset-nvidia
go2rtc:
streams:
front_door:
- rtsp://<user>:<password>@<ip_addr>:554/cam/realmonitor?channel=1&subtype=0 # <- stream which supports video & aac audio.
- ffmpeg:front_door # <- copy of the stream which transcodes audio to opus
front_door_detect:
- rtsp://<user>:<password>@<ip_addr>:554/cam/realmonitor?channel=1&subtype=1 # <- stream which supports video & aac audio.
- ffmpeg:front_door_detect
mqtt:
enabled: true
host: <mqtt_addr>
user: <user>
password: <pass>
cameras:
front_door:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/front_door # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/front_door_detect # <--- the name here must match the name of the camera_sub in restream
input_args: preset-rtsp-restream
roles:
- detect
motion:
threshold: 30
contour_area: 10
improve_contrast: true
zones:
Front_door:
coordinates: 0.127,0.396,0.641,0.219,0.738,0.687,0.686,1,0.089,1,0.052,0.753,0.12,0.396
loitering_time: 0
objects: person
inertia: 3
review:
alerts:
required_zones: Front_door
detections:
required_zones: Front_door
record:
enabled: true
retain:
days: 3
mode: all
alerts:
retain:
days: 30
mode: motion
detections:
retain:
days: 30
mode: motion
version: 0.15-1
semantic_search:
enabled: true
reindex: false
model_size: small