You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

264 lines
9.6 KiB

# yaml-language-server: $schema=http://ccab4aaf-frigate:5000/api/config/schema
mqtt:
host: core-mosquitto
user: bruno
password: superpapa56
ffmpeg:
hwaccel_args: preset-vaapi
ui:
# Optional: Set the default live mode for cameras in the UI (default: shown below)
live_mode: webrtc
# Optional: Set a timezone to use in the UI (default: use browser local time)
timezone: America/Toronto
# Optional: Use an experimental recordings / camera view UI (default: shown below)
use_experimental: False
# Options are browser, 12hour, or 24hour
time_format: 24hour
# Options are: full, long, medium, short
# short: 2/11/23
# medium: Feb 11, 2023
# full: Saturday, February 11, 2023
date_style: medium
# Options are: full, long, medium, short
# short: 8:14 PM
# medium: 8:15:22 PM
# full: 8:15:22 PM Mountain Standard Time
time_style: medium
#################################################################################
# NOTE: Can (enabled, mode) be overridden at the camera level
birdseye:
# Optional: Enable birdseye view (default: shown below)
enabled: true
# Optional: Restream birdseye via RTSP (default: shown below)
# NOTE: Enabling this will set birdseye to run 24/7 which may increase CPU usage somewhat.
restream: false
# Optional: Width of the output resolution (default: shown below)
width: 1920
# Optional: Height of the output resolution (default: shown below)
height: 1080
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 10
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: motion
# Optional: Threshold for camera activity to stop showing camera (default: shown below)
inactivity_threshold: 30
# Optional: Configure the birdseye layout
layout:
# Optional: Scaling factor for the layout calculator (default: shown below)
scaling_factor: 2.0
# Optional: Maximum number of cameras to show at one time, showing the most recent (default: show all cameras)
#max_cameras: 1
#################################################################################
###Detector Block options
detectors:
ov:
type: openvino
device: AUTO
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
##################################################################################
#Global Objects
# NOTE: Can be overridden at the camera level
objects:
# Optional: list of objects to track from labelmap.txt (default: person)
track:
- person
- car
- cat
- dog
- umbrella
- bicycle
# Optional: mask to prevent all object types from being detected in certain areas (default: no mask)
# Checks based on the bottom center of the bounding box of the object.
# NOTE: This mask is COMBINED with the object type specific mask below
#mask: 0,0,1000,0,1000,200,0,200 #Per camera preferable
# Optional: filters to reduce false positives for specific object types
#filters:
# person:
# # Optional: minimum width*height of the bounding box for the detected object (default: 0)
# min_area: 5000
# # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
# max_area: 100000
# # Optional: minimum width/height of the bounding box for the detected object (default: 0)
# min_ratio: 0.5
# # Optional: maximum width/height of the bounding box for the detected object (default: 24000000)
# max_ratio: 2.0
# # Optional: minimum score for the object to initiate tracking (default: shown below)
# min_score: 0.5
# # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
# threshold: 0.7
# # Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
# # Checks based on the bottom center of the bounding box of the object
# mask: 0,0,1000,0,1000,200,0,200
#################################################################################
record:
enabled: true
retain:
days: 2 #Days to keep
mode: motion #Keep motions events (bugs, branches, snow, car headlights, whatever moves)
events:
retain:
default: 2 #Days to keep
# mode: motion #Keep motions events (bugs, branches, snow, car headlights, whatever moves)
mode: active_objects #Keep events with detected object(s)
pre_capture: 5 #Seconds to keep before motion happened
post_capture: 20 #Seconds to keep after motion stopped
#################################################################################
motion:
# Increasing this value will make motion detection less sensitive.
# The value should be between 1 and 255.
threshold: 50
#Decreasing will make motion detection more sensitive to smaller moving objects.
#As a rule of thumb:
# - 10 - high sensitivity
# - 30 - medium sensitivity
# - 50 - low sensitivity
contour_area: 30
#################################################################################
#Global Detect Settings
detect:
enabled: true
width: 640 #Basic detect resolution; Override in camera config if necessary
height: 360
fps: 5
stationary:
interval: 50 ###Every 50 Frames (50 Frames = 10sec@5fps)
threshold: 50 ###IF not moving for numFrames (50 = 10sec@5fps)
# Optional: Milliseconds to offset detect annotations by (default: shown below).
# There can often be latency between a recording and the detect process,
# especially when using separate streams for detect and record.
# Use this setting to make the timeline bounding boxes more closely align
# with the recording. The value can be positive or negative.
# TIP: Imagine there is an event clip with a person walking from left to right.
# If the event timeline bounding box is consistently to the left of the person
# then the value should be decreased. Similarly, if a person is walking from
# left to right and the bounding box is consistently ahead of the person
# then the value should be increased.
# TIP: This offset is dynamic so you can change the value and it will update existing
# events, this makes it easy to tune.
# WARNING: Fast moving objects will likely not have the bounding box align.
annotation_offset: 0
snapshots:
enabled: true
retain:
default: 2 #Days to keep
bounding_box: true
###########################################################################################
###Camera Streams block!
#
go2rtc:
webrtc:
candidates:
- 192.168.222.500:8555 #local homeassistnat ip or else?
- stun:8555
streams:
house_front_main:
- rtsp://admin:pass@192.168.222.300:554/Streaming/Channels/101/ # <- stream which supports video & aac audio.
- ffmpeg:house_front_main#audio=opus # <- copy of the stream which transcodes audio to opus for webrtc *mandatory*
house_front_sub:
- rtsp://admin:pass@192.168.222.300:554/Streaming/Channels/102/
- ffmpeg:house_front_sub#audio=opus
house_side_main:
- rtsp://admin:pass@192.168.222.400:554/Streaming/Channels/101/
house_side_sub:
- rtsp://admin:pass@192.168.222.400:554/Streaming/Channels/102/
###########################################################################################
cameras:
house_front:
live:
stream_name: house_front_main
detect: #Override defaults for camera substream resolution
width: 1920
height: 536
fps: 5
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
inputs:
- path: rtsp://127.0.0.1:8554/house_front_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/house_front_main?video&audio
input_args: preset-rtsp-restream
roles:
- record
motion:
mask:
- 359,514,504,322,541,237,445,66,596,65,595,0,0,0,0,536
- 1920,0,1505,0,1451,38,1335,42,1318,66,1536,112,1804,240,1839,287,1920,257,1920,160
zones:
front_yard: ###FrontYard
coordinates: 551,244,1396,158,1735,335,1417,536,370,536
front_balcony: ###Balcony
coordinates: 1893,536,1920,314,1798,283,1457,536
public_road: ###Road
coordinates: 432,0,1050,0,1269,0,1389,65,528,188
house_side:
live:
stream_name: house_side_main
detect: #Override defaults for camera substream resolution
width: 960
height: 480
fps: 5
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/house_side_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/house_side_main
input_args: preset-rtsp-restream
roles:
- record
motion:
mask:
- 960,0,960,50,960,106,207,60,0,70,0,0
- 960,302,960,0,723,0,730,266,867,339
zones:
driveway:
coordinates: 203,99,140,96,39,138,75,170,231,219,425,156
side-yard:
coordinates: 656,480,922,480,960,376,666,283,516,373
objects:
track:
- person
- car
- cat
- dog
- bicycle
filters:
umbrella:
mask:
- 601,156,507,299,434,263,249,152,108,164,79,114,181,70,301,90