Again, thank you for your help!
This is really very impressive - and I can see from your responses to the other posts as well how much thought has gone into this project
I could not implement any of the suggestions you made to bring the CPU load down (other than reducing the rate to 5fps). When I tried to use e.g. MMAL I received an error message, saying that only VAAPI and vdpau would be supported. So I gave up on that one.
And although my Pi4 4GB seems to be just about coping with the load right now, I decided to order a Coral stick so that I can turn up the fps from the current 5fps and connect more than just 1 camera to it.
Sorry, but Iāll probably have to bother you again once I receive the stick so that I can get it set up properly
Another issue I could not resolve was to lower the resolution on my cameraās substream to 640x480.
It was easy to do it on the main stream but I donāt want to lose the resolution in general.
And here are some snapshots of the metrics info you asked for:
Snapshot 1:
{
"cameras": [
{
"name": "cam",
"fps": {
"decoder": 5.8,
"sieve": 5.2,
"visual_effects": 3.5,
"snapshot": 5.2,
"mqtt": 5.2
},
"buffer_in": 10,
"buffer_out": 0
}
],
"detectors": [
{
"name": "CPU",
"fps": 5.2,
"fps_max": 7,
"inference_time": 141.9
}
]
}
Snapshot 2:
{
"cameras": [
{
"name": "outdoorcam",
"fps": {
"decoder": 6.6,
"sieve": 5.3,
"visual_effects": 5.4,
"snapshot": 5.3,
"mqtt": 5.3
},
"buffer_in": 0,
"buffer_out": 0
}
],
"detectors": [
{
"name": "CPU",
"fps": 5.3,
"fps_max": 7,
"inference_time": 143.7
}
]
}
Snapshot 3:
{
"cameras": [
{
"name": "outdoorcam",
"fps": {
"decoder": 5.2,
"sieve": 4.9,
"visual_effects": 4.9,
"snapshot": 4.9,
"mqtt": 4.9
},
"buffer_in": 10,
"buffer_out": 0
}
],
"detectors": [
{
"name": "CPU",
"fps": 4.9,
"fps_max": 7,
"inference_time": 143.9
}
]
}
Thanks again for your support and this great project
BTW:
After understanding the documentation a little better I disabled the encoder and now the Pi4 runs at about 100% CPU load and around 120F.