I was not able to see h265 cameras, so you need lower.
And the last yaml is wrong, the detector should be only one on the top, read docs.
Here’s mine:
#MQTT frigate/back/detect/set ON/OFF to turn on or off tensorflow
database:
path: /config/frigate.db
detectors:
coral_pci:
type: edgetpu
device: pci
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel warning
# Optional: global hwaccel args (default: shown below)
# NOTE: See hardware acceleration docs for your specific device
hwaccel_args:
- -hwaccel
- qsv
- -qsv_device
- /dev/dri/renderD128
# Optional: global input args (default: shown below)
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
# Optional: global output args
output_args:
# Optional: output args for detect streams (default: shown below)
detect: -f rawvideo -pix_fmt yuv420p
# Optional: output args for record streams (default: shown below)
#longloading-record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
#longloading-clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for clips streams (default: shown below)
clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
mqtt:
# Required: host name
host: xxxxxxx
# Optional: port (default: shown below)
port: zzzz
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
user: xxxxxxxxxx
# Optional: password
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
password: xxxxxxxxxxx
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
cameras:
CAM1:
ffmpeg:
inputs:
- path: rtsp://xxx:xxxxx@xxxxxxx:554/cam/realmonitor?channel=1&subtype=0&authbasic=xxxxxxxxx
roles:
- detect
- clips
width: 1920
height: 1080
fps: 5
best_image_timeout: 60
motion:
mask:
- 1634,262,1744,890,1792,1045,1370,1080,963,994,26,982,22,1080,1920,1080,1920,0,343,0,457,226
zones:
zone_0:
coordinates: 0,545,0,955,1266,996,1843,864,1750,156,1240,57,343,24,24,33
detect:
enabled: True
max_disappeared: 25
clips:
enabled: True
pre_capture: 5
post_capture: 5
objects:
- person
retain:
default: 14
#objects:
#person: 15
record:
enabled: False
retain_days: 30
rtmp:
enabled: False
snapshots:
enabled: True
timestamp: True
bounding_box: True
crop: False
retain:
default: 14
#objects:
#person: 15
mqtt:
enabled: False
timestamp: True
bounding_box: True
crop: True
height: 270
objects:
track:
- person
- cat
filters:
person:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.77
cat:
min_area: 1000
max_area: 40000
min_score: 0.5
threshold: 0.77
CAM2:
ffmpeg:
inputs:
- path: rtsp://xxx:xxxxx@xxxxx:554/cam/realmonitor?channel=1&subtype=0&authbasic=xxxxxxx
roles:
- detect
- clips
width: 1920
height: 1080
fps: 5
best_image_timeout: 60
motion:
mask:
- 142,0,1920,0,1920,1051,1587,992,1126,870,1142,746,1209,646,1477,63,673,95,350,126,0,295,0,0
- 742,221,1061,264,1063,358,752,652,656,602,744,504,886,421,697,380,650,252
zones:
zone_0:
coordinates: 0,1080,955,1080,1920,1080,1124,864,1422,211,874,106,630,118,402,158,0,284
detect:
enabled: True
max_disappeared: 25
clips:
enabled: True
pre_capture: 5
post_capture: 5
objects:
- person
retain:
default: 14
#objects:
#person: 15
record:
enabled: False
retain_days: 30
rtmp:
enabled: False
snapshots:
enabled: True
timestamp: True
bounding_box: True
crop: False
retain:
default: 14
#objects:
#person: 15
mqtt:
enabled: False
timestamp: True
bounding_box: True
crop: True
height: 270
objects:
track:
- person
- car
- cat
filters:
person:
min_area: 1000
max_area: 100000
min_score: 0.5
threshold: 0.77
cat:
min_area: 1000
max_area: 40000
min_score: 0.5
threshold: 0.77