[Config Support]: Can my config be optimized (mutated through the years)?? #15474
Replies: 2 comments 4 replies
-
The most obvious thing that I see that you could change would be to use restreaming to reduce the number of connections to your camera and save some CPU cycles. |
Beta Was this translation helpful? Give feedback.
1 reply
-
mqtt:
host: 10.14.12.11
port: 1883
topic_prefix: frigate
user: frigate
password: frigate!
enabled: true
ffmpeg:
hwaccel_args: preset-vaapi
input_args: preset-rtsp-restream
output_args:
record: preset-record-generic-audio-aac
detectors:
coral:
type: edgetpu
device: usb
tls:
enabled: false
ui:
time_format: 24hour
record:
enabled: true
retain:
days: 30
mode: motion
events:
pre_capture: 5
post_capture: 10
retain:
default: 365
mode: active_objects
# objects:
# person: 180
# car: 14
snapshots:
bounding_box: true
enabled: true
objects:
# Optional: list of objects to track from labelmap.txt (default: shown below)
track:
- person
- car
- bicycle
- cat
- dog
- plate
# - bird
# - mouse
go2rtc:
streams:
Schuur:
- rtsp://admin:[email protected]:554/Streaming/Channels/101
Schuur_sub:
- rtsp://admin:[email protected]:554/Streaming/Channels/102
Speelkamer:
- rtsp://admin:[email protected]:554/Streaming/Channels/101
Speelkamer_sub:
- rtsp://admin:[email protected]:554/Streaming/Channels/102
Oprit:
- rtsp://admin:[email protected]:554/Streaming/Channels/101
Oprit_sub:
- rtsp://admin:[email protected]:554/Streaming/Channels/102
Babyfoon:
- rtsp://admin:[email protected]:8554/Streaming/Channels/101
Babyfoon_sub:
- rtsp://admin:[email protected]:8554/Streaming/Channels/102
Zijkant:
- rtsp://admin:[email protected]:554/Streaming/Channels/101
Zijkant_sub:
- rtsp://admin:[email protected]:554/Streaming/Channels/102
cameras:
Schuur:
ui:
order: 5
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Schuur
roles:
- record
- path: rtsp://127.0.0.1:8554/Schuur_sub
roles:
- detect
detect:
width: 640
height: 480
objects:
filters:
bicycle:
mask:
- 0,480,0,0,640,0,640,480
motion:
threshold: 30
contour_area: 10
improve_contrast: true
mask: 0.429,0.051,0.475,0.052,0.475,0.098,0.428,0.103
Speelkamer:
ui:
order: 3
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Speelkamer
roles:
- record
- path: rtsp://127.0.0.1:8554/Speelkamer_sub
roles:
- detect
detect:
width: 640
height: 480
motion:
mask: 0.958,0.975,0.993,0.977,0.991,0.944,0.959,0.942
threshold: 60
contour_area: 20
improve_contrast: true
objects:
filters:
bicycle: {}
car: {}
cat: {}
dog: {}
motorcycle: {}
zones:
Speelkamer_Zone:
coordinates: 0.002,0.007,0.003,0.993,0.994,0.995,0.994,0.005
loitering_time: 0
review:
detections: {}
Oprit:
ui:
order: 1
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Oprit
roles:
- record
- path: rtsp://127.0.0.1:8554/Oprit_sub
roles:
- detect
zones:
Oprit_Zone:
coordinates:
1,1,0,1,0,0.676,0.27,0.646,0.265,0.323,0.448,0.316,0.694,0.324,0.743,0.034,1,0.081
inertia: 3
loitering_time: 0
Straat_Zone_1:
coordinates: 0.739,0,0.685,0.313,0.515,0.307,0.261,0.31,0.277,0.635,0,0.669,0,0
inertia: 3
loitering_time: 0
objects:
filters:
car:
mask: 0.306,1,0.895,1,1,0.823,1,0.556,0.725,0.294,0.577,0.292,0.253,0.291
person:
min_area: 3000
detect:
width: 640
height: 480
motion:
mask: 1,0.035,0.952,0.035,0.956,0,1,0
threshold: 30
contour_area: 11
improve_contrast: true
review:
alerts:
required_zones: Oprit_Zone
Babyfoon:
ui:
order: 4
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Babyfoon
roles:
- record
- path: rtsp://127.0.0.1:8554/Babyfoon_sub
roles:
- detect
detect:
width: 640
height: 360
motion:
threshold: 30
contour_area: 10
improve_contrast: true
zones:
Babyfoon_Zone:
coordinates: 0.997,0.003,0.996,0.998,0.002,0.997,0.003,0.012
loitering_time: 0
review:
detections:
required_zones: Babyfoon_Zone
Zijkant:
ui:
order: 2
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Zijkant
roles:
- record
- path: rtsp://127.0.0.1:8554/Zijkant_sub
roles:
- detect
objects:
filters:
person:
min_area: 4000
mask: 0.182,0.796,0.208,1,0.147,1,0.099,0.626,0.068,0.177,0.136,0.108
zones:
Buren_Zone:
coordinates: 0.384,0.311,0.754,0.998,0.999,0.99,1,0,0.687,0,0.686,0.257
inertia: 3
loitering_time: 0
Zijkant_Zone:
coordinates: 0.746,1,0,1,0,0,0.207,0,0.214,0.33,0.377,0.311
inertia: 3
loitering_time: 0
Straat_Zone_2:
coordinates: 0.211,0,0.218,0.323,0.683,0.258,0.685,0
inertia: 3
loitering_time: 0
objects: person
detect:
width: 1280
height: 720
motion:
threshold: 30
contour_area: 10
improve_contrast: true
mask: 0.467,0.941,0.468,0.986,0.521,0.987,0.526,0.931
review:
alerts:
required_zones: Zijkant_Zone
version: 0.14
camera_groups:
Birdseye:
order: 1
icon: LuBird
cameras: birdseye |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
JBakers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem you are having
I'm not having a problem per se.
But, I've been using Frigate for quite a while, and through the years I added/changed/removed a lot.
So my config file kind of mutated in a way, that I think it could be more streamlined, maybe even remove parts for optimization.
I humbly ask, if you guys can see something out of the ordinary, or obvious things I could change that will benefit my installation.
The main reason for this discussion is the record/retain part.
Id like to retain events for as long as possible (maybe even overwrite oldest retained items when disk is full, or limit has been reached, but I dont think thats optional).
I also tried retain motion for 60 days, but my 1TB USB drive was starting to fill up so I set it to 30 days.
Im sure that during the years I made a mess of my config file
Please feel free to ask me more info if needed, and thanks for your time
Version
0.14.1-f4f3cfa
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
Frigate stats
Operating system
Debian
Install method
Docker Compose
docker-compose file or Docker CLI command
Object Detector
Coral
Screenshots of the Frigate UI's System metrics pages
No response
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions