Note: couldn't get audio going on Tapo.
mqtt:
enabled: false
database:
path: /frigate_db/frigate.db
go2rtc:
streams:
# Local Dahua cameras - main and substreams
carport_1:
- rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
carport_1_sub:
- rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1
carport_2:
- rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
carport_2_sub:
- rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1
carport_3:
- rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
carport_3_sub:
- rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1
tapo_1:
- rtsp://aceace:[email protected]:554/stream1
tapo_1_sub:
- rtsp://aceace:[email protected]:554/stream2
# Remote cameras - via Tailscale with TCP transport
pocketbear_cam1:
- rtsp://100.85.9.99:8554/pocketbear_cam1?transport=tcp
pocketbear_cam1_sub:
- rtsp://100.85.9.99:8554/pocketbear_cam1_sub?transport=tcp
pocketbear_cam2:
- rtsp://100.85.9.99:8554/pocketbear_cam2?transport=tcp
pocketbear_cam2_sub:
- rtsp://100.85.9.99:8554/pocketbear_cam2_sub?transport=tcp
detectors:
ov:
type: openvino
device: GPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
ffmpeg:
hwaccel_args: preset-vaapi
#preset-intel-qsv-h264
objects:
track:
- person
- car
- dog
- cat
- bicycle
- motorcycle
filters:
person:
min_area: 5000
max_area: 100000
threshold: 0.7
record:
enabled: true
retain:
days: 60
mode: all
alerts:
retain:
days: 90
detections:
retain:
days: 90
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: false
retain:
default: 90
motion:
threshold: 30
contour_area: 15
frame_height: 180
live:
height: 1080
quality: 5
cameras:
carport_1:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/carport_1
roles:
- record
- path: rtsp://127.0.0.1:8554/carport_1_sub
roles:
- detect
detect:
enabled: true
width: 704 # Dahua typical substream resolution
height: 576
fps: 10 # Can bump up FPS since substream is lighter
motion:
mask:
0.751,0.573,0.768,0.408,0.61,0.37,0.631,0.474,0.692,0.607,0.449,0.63,0.275,0.061,0.483,0.078,0.596,0.097,0.604,0.224,0.759,0.222,0.799,0.148,0.851,0.078,0.9,0.061,0.952,0,0.999,0.002,1,0.704,0.872,0.624
threshold: 30
contour_area: 15
improve_contrast: true
objects:
filters:
car:
mask: 0,0.428,0.226,0.438,0.376,0.839,0.411,1,0,1
carport_2:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/carport_2
roles:
- record
- path: rtsp://127.0.0.1:8554/carport_2_sub
roles:
- detect
detect:
enabled: true
width: 704
height: 576
fps: 10
objects:
filters:
bicycle:
mask: 0.321,0.584,0.291,0.997,1,1,1,0.495,0.443,0.488
carport_3:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/carport_3
roles:
- record
- path: rtsp://127.0.0.1:8554/carport_3_sub
roles:
- detect
detect:
enabled: true
width: 704
height: 576
fps: 10
objects:
filters:
car:
mask:
- 0.345,0.57,0.666,0.592,0.664,0.24,0.342,0.2
- 0.564,0.995,0.622,0.648,1,0.55,1,1
motion:
mask:
- 0.655,0.284,0.67,0.581,0.934,0.579,0.944,0.362
- 0,0.418,0.656,0.242,0.629,0,0,0
tapo_1:
ffmpeg:
output_args:
record: preset-record-generic
inputs:
- path: rtsp://127.0.0.1:8554/tapo_1 # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-restream
roles:
- record
# - detect
- audio
- path: rtsp://127.0.0.1:8554/tapo_1_sub # <--- the name here must match the name of the camera_sub in restream
input_args: preset-rtsp-restream
roles:
- detect
pocketbear_cam1:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/pocketbear_cam1
roles:
- record
- path: rtsp://127.0.0.1:8554/pocketbear_cam1_sub
roles:
- detect
detect:
enabled: true
width: 704
height: 576
fps: 10
motion:
threshold: 73
contour_area: 52
improve_contrast: true
pocketbear_cam2:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/pocketbear_cam2
roles:
- record
- path: rtsp://127.0.0.1:8554/pocketbear_cam2_sub
roles:
- detect
detect:
enabled: true
width: 704
height: 576
fps: 10
version: 0.16-0
semantic_search:
enabled: true
model_size: medium
face_recognition:
enabled: true
model_size: large
lpr:
enabled: true
classification:
bird:
enabled: false
camera_groups:
Sheen:
order: 1
icon: LuCar
cameras:
- carport_1
- carport_2
- carport_3
Pocketbear:
order: 2
icon: LuCctv
cameras:
- pocketbear_cam1
- pocketbear_cam2