De mon côté aussi, Frigate en LXC sous proxmox avec CORAL usb, sur PC intel i5.
4 caméras, dont 3 Reolink HD et une noname SD
Système stable jusque là: 6 mois que le CORAL est installé.
EDIT : je précise que j’ai quand même quelques erreurs dans les logs mais je ne m’en suis pas occupé.
(frigate)configuration.yaml
mqtt:
host: @IP
# port: 1883
### Optional (default: 1883)
user: LOGIN
password: PASSWD
detectors:
# cpu1:
# type: cpu
coral:
type: edgetpu
device: usb
birdseye:
enabled: false
width: 2560
height: 1920
mode: continuous
### objects / motion / continuous
quality: 8
### Optional: 1(best) to 31(lowest) (default: 8) + mind CPU ressources
detect:
enabled: True
width: 640
height: 480
fps: 5
### NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera.
max_disappeared: 25
### Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
record:
enabled: true
retain:
days: 0
### Optional: Number of days to retain recordings regardless of events (default: 0)
### NOTE: This should be set to 0 and retention should be defined in events section below if you only want to retain recordings of events.
mode: active_objects
### Optional: all / motion / active_objects
### NOTE: this mode only applies when the days setting above is greater than 0
events: ### Optional: Maximum length of time to retain video during long events. (default: shown below)
### NOTE: If an object is being tracked for longer than this amount of time, the retained recordings
### will be the last x seconds of the event unless retain_days under record is > 0.
pre_capture: 15
### Optional: Number of seconds before the event to include (default: 5)
post_capture: 5
### Optional: Number of seconds after the event to include (default: 5)
objects:
### Optional: Objects to save recordings for. (default: all tracked objects)
- person
- car
# - bicycle
# - motorcycle
- cat
# - dog
# required_zones: []
### Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones)
retain:
### Optional: Retention settings for recordings of events
default: 4
### Required: Default retention days (default: 10)
mode: active_objects
### Optional: all / motion / active_objects
### NOTE: If the retain mode for the camera is more restrictive than the mode configured
# here, the segments will already be gone by the time this mode is applied.
# For example, if the camera retain mode is "motion", the segments without motion are
# never stored, so setting the mode to "all" here won't bring them back.
objects:
### Optional: Per object retention days
person: 7
snapshots:
### Optional: Configuration for the jpg snapshots written to the clips directory for each event
### NOTE: Can be overridden at the camera level
enabled: true
clean_copy: false
### Optional: save a clean PNG copy of the snapshot image (default: true) # =================== MODIF de true à false le 11/01/23
timestamp: false
### Optional: print a timestamp on the snapshots (default: false)
bounding_box: true
### Optional: draw bounding box on the snapshots (default: false)
crop: false
### Optional: crop the snapshot (default: false)
# height: 175
### Optional: height to resize the snapshot to (default: original size)
# required_zones: []
### Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
retain:
### Optional: Camera override for retention settings (default: global values)
default: 7
### Required: Default retention days (default: 10)
objects:
### Optional: Per object retention days
person: 14
rtmp:
### Optional: RTMP configuration
### NOTE: Can be overridden at the camera level
enabled: false
### Optional: Enable the RTMP stream (default: true)
ffmpeg:
# hwaccel_args: preset-vaapi
hwaccel_args: preset-intel-qsv-h264
live:
### Optional: Live stream configuration for WebUI
### NOTE: Can be overridden at the camera level
# height: 720
### Optional: Set the height of the live stream. (default: 720)
### This must be less than or equal to the height of the detect stream. Lower resolutions
### reduce bandwidth required for viewing the live stream. Width is computed to match known aspect ratio.
quality: 8
### Optional: 1(best) to 31(lowest) (default: 8) + mind CPU ressources
objects:
filters:
person:
min_area: 1800
### Optional: minimum width*height of the bounding box for the detected object (default: 0)
max_area: 12600
### (default: 24000000)
min_ratio: 0.5
### Optional: minimum width/height of the bounding box for the detected object (default: 0)
max_ratio: 2.0
### (default: 24000000)
min_score: 0.5
threshold: 0.7
### Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive
##################
### go2rtc ###
##################
go2rtc:
streams:
camjardin_live_main:
- rtsp://FLUX
camjardin_live_sub:
- rtsp:/FLUX
camchemin_live_main:
- rtsp:/FLUX
camchemin_live_sub:
- rtsp://FLUX
camparking_live_main:
- rtsp://FLUX
camparking_live_sub:
- rtsp://FLUX
camplus_live:
- rtsp://FLUX
###################
### CAMERAS ###
###################
cameras:
### ============================================================================================================== PARKING
camparking:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/camparking_live_main
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/camparking_live_sub
input_args: preset-rtsp-restream
roles:
- detect
# hwaccel_args: preset-intel-qsv-h265
# hwaccel_args: preset-intel-qsv-h264
# hwaccel_args: preset-vaapi
live:
stream_name: camparking_live_sub
# motion:
# mask:
# - 640,0,640,214,328,290,0,204,0,0
objects:
track:
- person
- car
# mask:
# - 640,0,640,169,448,233,346,0
# - 0,0,186,0,0,480
# - 193,0,335,0,353,30,238,74
# best_image_timeout: 60
mqtt:
enabled: true
timestamp: false
bounding_box: true
crop: false
# height: 270
# quality: 70
# required_zones: []
ui:
order: 1
dashboard: true
### ============================================================================================================== CHEMIN
camchemin:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/camchemin_live_main
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/camchemin_live_sub
input_args: preset-rtsp-restream
roles:
- detect
# hwaccel_args: preset-intel-qsv-h265
# hwaccel_args: preset-intel-qsv-h264
# hwaccel_args: preset-vaapi
live:
stream_name: camchemin_live_sub
# zones:
# chemin:
# coordinates: 0,0,260,0,380,480,0,480
# cour:
# coordinates: 260,0,640,0,640,480,380,480
# motion:
# mask:
# - 640,0,640,96,338,91,374,314,640,480,0,480,285,214,190,135,85,145,35,256,0,269,0,0
objects:
track:
- person
- car
mqtt:
enabled: true
timestamp: false
bounding_box: true
crop: false
# height: 270
# quality: 70
# required_zones: []
ui:
order: 2
dashboard: true
# ### ============================================================================================================== JARDIN
camjardin:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/camjardin_live_main # <--- 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/camjardin_live_sub # <--- the name here must match the name of the camera_sub in restream
input_args: preset-rtsp-restream
roles:
- detect
# hwaccel_args: preset-intel-qsv-h265
# hwaccel_args: preset-intel-qsv-h264
# hwaccel_args: preset-vaapi
live:
stream_name: camjardin_live_sub
# motion:
# mask:
# - 0,0,640,0,640,480,521,480,607,74,256,35,101,83,109,292,0,341
objects:
track:
- person
- cat
# mask:
# - 114,297,261,384,312,480,0,480,0,0,376,0,357,47,96,77
# - 396,97,395,0,640,0,640,123
# - 301,25,300,113,225,121,225,43
mqtt:
enabled: true
timestamp: false
bounding_box: true
crop: false
# height: 270
# quality: 70
# required_zones: []
ui:
order: 3
dashboard: true
# ### ============================================================================================================== GARAGE
camplus:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/camplus_live
input_args: preset-rtsp-restream
roles:
- record
- detect
# hwaccel_args: preset-intel-qsv-h265
# hwaccel_args: preset-intel-qsv-h264
# hwaccel_args: preset-vaapi
live:
stream_name: camplus_live
objects:
track:
- cat
mqtt:
enabled: true
timestamp: false
bounding_box: true
crop: false
ui:
order: 4
dashboard: true