Hi
i setup frigate with 7 cams but cpu load is all time more than 90%
is this normal? or do someone knows how to get it down. i connected 3 reolink cams and 4 berghoch cam. im using a coral tpu.
mqtt:
host: 192.168.1.110
port: 1883
topic_prefix: frigate
client_id: frigate
user: admin
password: password
stats_interval: 60
detectors:
coral:
type: edgetpu
device: usb
database:
path: /media/frigate/frigate.db
# Optional: logger verbosity settings
logger:
# Optional: Default log verbosity (default: shown below)
default: debug
# Optional: Component specific logger overrides
logs:
frigate.event: debug
birdseye:
enabled: True
restream: False
width: 1920
height: 1080
quality: 8
mode: motion
ffmpeg:
global_args: -hide_banner -loglevel warning -threads 2
hwaccel_args: preset-rpi-64-h264
input_args: [] #preset-rtsp-generic
output_args: []
cameras:
####################################################################################
## CAM1 ##
####################################################################################
cam1:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam1
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
# width: 1920
# height: 1080
fps: 5
zones:
heizraum:
coordinates: 524,1080,391,710,337,417,506,412,803,1080
objects:
- person
bierbauch:
coordinates: 1375,929,1297,657,1920,243,1920,0,910,0,1195,934
objects:
- person
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
####################################################################################
## CAM2 ##
####################################################################################
cam2:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam2
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
# width: 1920
# height: 1080
fps: 5
# zones:
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
####################################################################################
## CAM3 ##
####################################################################################
cam3:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam3
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
# width: 1920
# height: 1080
fps: 5
# zones:
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
####################################################################################
## CAM4 ##
####################################################################################
cam4:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam4
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
# width: 1920
# height: 1080
fps: 5
# zones:
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
####################################################################################
## CAM5 ##
####################################################################################
cam5:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam5
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
width: 1920
height: 1080
fps: 5
# zones:
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
####################################################################################
## CAM6 ##
####################################################################################
cam6:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam6
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
width: 1920
height: 1080
fps: 5
# zones:
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
####################################################################################
## CAM7 ##
####################################################################################
cam7:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam7
roles:
- detect
- record
- rtmp
best_image_timeout: 60
detect:
width: 1920
height: 1080
fps: 5
# zones:
objects:
track:
- person
- car
- truck
- cat
- dog
filters:
person:
#min_area: 5000
#max_area: 100000
#min_ratio: 0.5
max_ratio: 2.0
min_score: 0.5
threshold: 0.7
record:
enabled: True
expire_interval: 60
retain:
days: 0
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
- car
- truck
- cat
- dog
required_zones: []
retain:
default: 10
mode: active_objects
objects:
person: 15
snapshots:
enabled: True
clean_copy: True
timestamp: False
bounding_box: False
crop: False
height: 175
required_zones: []
retain:
default: 10
objects:
person: 15
motion:
threshold: 25
#contour_area: 30
#delta_alpha: 0.2
#frame_alpha: 0.2
#frame_height: 50
#mask: 0,900,1080,900,1080,1920,0,1920
improve_contrast: False
#mqtt_off_delay: 30
go2rtc:
streams:
cam1:
- rtsp://admin:[email protected]:554/channel=1&stream=1.sdp?
cam2:
- rtsp://admin:[email protected]:554/channel=1&stream=1.sdp?
cam3:
- rtsp://admin:[email protected]:554/channel=1&stream=1.sdp?
cam4:
- rtsp://admin:[email protected]:554/channel=1&stream=1.sdp?
cam5:
- rtsp://admin:[email protected]:554/h264Preview_01_main
cam6:
- rtsp://admin:[email protected]:554/h264Preview_01_main
cam7:
- rtsp://admin:[email protected]:554/h264Preview_01_main