roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.66k stars 171 forks source link

What will be the best configuration in order to reduces CPU load. #808

Open delfredd opened 2 weeks ago

delfredd commented 2 weeks ago

Hi roflcoopter,

I have a very high CPU load (95%). only configured three cameras... I have a total of 9. In the meantime, it looks like all images are too slow.

CPU usage

Can you please share what can be the best configuration to have the CPU running with a reduced load? Any suggestions?

This is my configuration file:

Viseron Config File.txt

I am using Reolink Cameras with the following stream Configuration:

Camera Stream Config

Main= 640 x360 FPS= 10 Sub = 2560*1440 FPS = 15

Viseron Live View

Thank you in advance.

roflcoopter commented 2 weeks ago

You should swap your main stream and the substream in the Viseron config.

You want the low resolution stream as the substream since it is used to perform image processing. RIght now you are running object detection on the large stream.

To reduce CPU usage further i suggest you lower the FPS on the motion detector to 1 and then you can also set the FPS to 1 in the camera itself.

Using scan_on_motion_only: false will also increase CPU usage since it runs object detection constantly.

delfredd commented 2 weeks ago

ok, I am using the path: /h264Preview_01_sub (Substream)

On the other hand, where my recordings are stored? I configured in /mnt/Storage1/Recordings, but there is no any file there. Do you know where the recordings are stored by default?

Viseron Program Configuration

Thank you!

delfredd commented 2 weeks ago

All recordings are stored in my System Drive OS, not in my storage Drive EXT4.

Storage HDD

Any suggestion?

Thanks!

roflcoopter commented 1 week ago

You have mapped it to /Recordings (with a capital R), has to be /recordings

delfredd commented 6 days ago

Fixed the /recordings, Thank you!!! I see the CPU is always over 90% and hot, is this normal? By the way, I changed the stream configuration from main to sub in all cameras.

roflcoopter commented 5 days ago

CPU usage highly depends on how strong your CPI is, if it has hardware acceleration capabilities, your camera settings and also the Viseron config.

https://viseron.netlify.app/components-explorer/components/ffmpeg#hardware-acceleration