Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
delfredd opened this issue Sep 16, 2024 · 6 comments
Open

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

delfredd opened this issue Sep 16, 2024 · 6 comments

Comments

@delfredd
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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

Storage HDD

Any suggestion?

Thanks!

@roflcoopter
Copy link
Owner

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

@delfredd
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants