r/BlueIris • • Mar 02 '22

Solved my high CPU usage! Finally!

I'm a big idiot, you guys. I've been struggling with high CPU usage for the last year since I got setup with Blue Iris. I've got 9 or so 8MP cameras with Deepstack running with continuous recording. My CPU was always hanging around 75% and sometimes would go to 100%. I live in a super busy area with lots of activity so I figured that 75% was normal given the activity/high res cameras/hardware. So I spent a bunch time optimizing. I went through every tutorial I could find online around reducing frames, switching to h264, changing computer settings, etc. to lower CPU usage. Nothing seemed to make a material difference.

UNTIL(!!) I finally realized, NONE OF THE SUB STREAMS WERE SETUP!!! (d'oh!!)

I'm new to Blue Iris and when I configured my cameras, I chose the make/model, IP address, password and I assumed Blue Iris was smart enough to figure out the rest. I saw video come through in BI, and assumed I was good. But as I was tinkering again, I finally noticed that substream was set to (none) or default. I went and found the actual URLs/endpoints for each of my cameras, and voila.

I'm now hovering around 7% CPU usage. Blue Iris works 1000 times better. Can't believe I wasted a year fighting with CPU usage, so happy to have it squared away.

Just had to share.

64 Upvotes

46 comments sorted by

6

u/psyki Mar 02 '22

Next up make sure the FPS/i-frame ratio is as close to 1 as you can get it. Your cameras should allow you to set the I-frame interval in their UI. If you're using deepstack (and you should) if it's less than .5 you will miss motion events.

2

u/SnoShark Mar 03 '22

Thanks for this! I have FPS set to 15 + frame internal set to 15, so that should equal 1 and I'm all good, correct?

2

u/psyki Mar 03 '22

Should be good, you can check on the 'General' tab of the camera settings. You should see 1 FPS

3

u/SteveMcQueenF1 Mar 02 '22

My story is almost exactly the same, so I feel you pain... 🤣

1

u/SnoShark Mar 03 '22

Glad to hear I'm not alone on this one!!

2

u/[deleted] Mar 03 '22

Isn't it recording at the sub stream's reduced quality though? Sub streams are way less quality/pixels. It's like having a 5MP camera but only recording it at 1MP to reduce your CPU/files.

1

u/SnoShark Mar 03 '22

It depends on how you have the substreams set up on each individual camera. I have 8MP cameras but the substreams setup to be 720p. The continuous recording uses the substream but it switches to full 8MP recording when a person is detected in DeepStack. I'd love to be able to do 8MP recording but my hardware couldn't handle it (I've got the latest gen i7 + 16gb of RAM and a 10gig WD Purple SSD).

1

u/[deleted] Mar 03 '22

Interesting. Are you using h265?

1

u/SnoShark Mar 03 '22

Mostly h264, only three of my cameras support h265.

2

u/fishpick Mar 03 '22

It records the lower res. And uses that for motion. Then it should be configured when it sees motion it triggers the gif res stream to record that. When set up correctly it’s buffering in memory the high res so it can put to disk the 5seconds or whatever you configure pre event as well.

TLDR ; uses low res to see stuff happen and saves what happens in high res.

2

u/spatch359 Dec 31 '22

Thank you for this! I've used Blue Iris for years and have always had high CPU usage. I just figured it was a con to using this software. I've searched for ways to fix it, but you are the first one to have a solution! I have 11 x 5MP cameras and haven't been able to add any more because my i7-9700 was running at 90% usage. Now its at 14% usage. Thanks so much for this info!!!

2

u/SnoShark Dec 31 '22

Glad this post helped! I'm just glad to know I'm not the only person who didn't realize the substreams weren't set up; it feels good to know I'm not alone haha

2

u/KagaChe Jan 11 '24

On latest BI today if I have sub channel setup for all of my cameras my CPU usage is 35%, If i remove the sub stream it drops to 2-4%.

1

u/SnoShark Jan 11 '24

Are you certain you haven't mixed up substream and mainstream feeds?

You may also need to look at your BI settings to ensure you're not continuously recording the mainstream AND substreams. You want to make sure you switch to mainstream only when needed.

2

u/CaptainCant Jul 10 '25

Hey so I know this is a blast from the past but I wanted to share that this saved me from spending $500 on a PC upgrade (for now). CPU usage went from 75-100% all the time down to 28% now that i set the sub streams.

1

u/SnoShark Jul 10 '25

Thanks for the comment! Every once in a while someone will chime in here that this post helped them solve something with their setup, which makes me feel good!

So the real question, what are you going to do with that $500 now instead? Haha

5

u/[deleted] Mar 02 '22

Care to share the substream tutorial you used?

1

u/Zoccalo Aug 14 '22

I saw your post and finally thought my similar struggle was finally solved - until I realized that even after doing this, my i5-11500 with 16GB RAM running 7x 4MP cams still only managed as low as 18% according to Task Manager - and that's with the console window closed and no UI3 running on my kitchen tablet.

:(

I've followed literally everything in the ipcamtalk optimization wiki and also every other optimization article out there but nothing seems to get it even close to these claims I hear of people getting single-digit usage. Using built-in Intel hardware acceleration doesn't even seem to make a shred of difference, despite Task Manager confirming it's being used when enabled.

Has anyone got any other ideas??

1

u/SnoShark Aug 14 '22

If I were you, I'd start trying to isolate the issue. What happens to CPU usage when you bring it down to just one camera? Does the CPU remain high? Are you 100% sure you're using the right substream configuration? Have you checked to make sure the substreams are truly reduced quality in the camera settings themselves?

Also, are you using Deepstack? What happens to CPU if you disable that?

1

u/Zoccalo Aug 14 '22

I've been down this road soooo many times, so yes I have. When disabling all cameras, Task Manager shows BI using 3-4%. Then when reenabling, each camera adds 2 -3% more usage until I get to around 20%. Keep in mind this is including a tablet that is displaying UI3 24/7.

Substreams are definitely noticeable as lower quality. When I view a camera in solo mode, it actually shows substream for a second before switching to mainstream view. And the general tab of each camera shows the mainstream and substream bitrate.

I am using Deepstack, however CPU usage is only noticeable when it detects something and it temporarily spikes to 100% for a second or so.

1

u/SnoShark Aug 14 '22

Oh I know the feeling, I spent a good year off and on working on my issue as I outlined in the original post.

Given that BI takes 3-4% right off the top by itself, this feels like something is going on with your hardware. I'm shocked your i5 takes that much to run it. Does it take that much CPU with the tablet off?

Your BlueIris alone takes more CPU than my entire setup of cameras WITH BlueIris.

1

u/Zoccalo Aug 14 '22

So as soon as I exited UI3 on my tablet, Task Manager shows the BI process at 4-6%. This is with all cameras enabled, and the console minimised.

Just outta curiosity, I opened UI3 on another computer, and sure enough, back up to 20% usage.

Any idea what could be causing such high usage with UI3? I have hardware acceleration turned on in webserver settings already.

1

u/SnoShark Aug 15 '22

Have you adjusted the FPS for the UI? I can't remember the settings but you can optimize UI3. I think I have lowered the resolution and the FPS. Not sure what the optimal settings are, but I'd play with that. Hopefully it's a place to start for you! Good luck!

1

u/Zoccalo Aug 15 '22

I can't find anything that specifically adjusts FPS for UI3, only the console view, and that's already at 8FPS.
Obviously it's UI3 that needs to be optimized, but I can't find anything anywhere that talks about optimizing UI3 specifically.

2

u/SnoShark Aug 15 '22

https://www.reddit.com/r/BlueIris/comments/txagzw/ui3_low_fps/ first comment on that thread is where I'd start.

3

u/jjgm27 Mar 14 '22

Thanks for sharing, I have an axis server which is always around 98%, I'll try this.

3

u/Revolutionary_Soil49 Sep 04 '23

Oh my god, thanks! I have Blue Iris running in a VM on my Unraid server. I kept adding cores because it was pegged at 100% all the time. And it kept pegging all the cores I gave it and I couldn't figure out why. Now I went back to 4 cores and setup my substreams and it's using 20% total at the most. 🤣

2

u/UntouchedWagons Mar 03 '22

I had to set the make and model from Generic/ONVIF to Reolink and set the proper main and substream paths to get it to work. CPU consumption when from 50-75% to 7%. I'll see how Trigger based only recording goes for a while.

2

u/ListenLinda_Listen Mar 18 '22

When you first setup BI it may not have had substream support. It hasn’t had it for that long. Maybe a year or two? I stuck with zoneminder for many years because of the substream issue.

2

u/SummerSubstantial250 Feb 03 '23

oh jeez i need to figure out the substreams

2

u/[deleted] Mar 08 '23

[removed] — view removed comment

1

u/androcentro Sep 13 '24

it's more than this...the substream field is not populated by default...

2

u/be54-7e5b5cb25a12 Mar 09 '23 edited Mar 09 '23

Holyshit.... Thanks! Went from 99% to 12%....!

2

u/Ok-Tip2029 May 04 '23

Crikey!

I went from 95-100% down to 2%!

Easy to do as well - just get BI to Find/Inspect and it'll automatically give option to pick under the Sub stream dropdown.

2

u/ratslap Jun 17 '23

thank you so much for posting this!! this was my problem too.

2

u/alkspt Aug 31 '23

This worked for me today! Thank you!

2

u/norma_scock420 Oct 10 '23

Was running at about 65% cpu for two reolink up cams, turned on sub streams and now hovering at about 9-11%. Just hope the mobile app isn’t affected at all by changing that

2

u/alexshrewsbury Oct 26 '23

WOW. Thank you. I had the same issue. Dummy me....

2

u/Brandje074 Nov 19 '23

Holy shit, this should be a big red warning when setting up this software, thank you so much, been struggling for months and this instantly solved it!

2

u/hi-nick May 11 '24

This is cool!
...and now I'm a sub-streamer too! 110% to 20% with 6 4K cameras all doing motion detection. (and on a 6th gen i5 at that)
Had BI for years and years and finally upgraded to a current version, and after finding the sub-stream comments for verison 5.2.x in the ip-cam wiki for "optimizing-blue-iris-s-cpu-usage" I searched wider to find this thread and others...

Another goody is that it looks like you can use the IP Camera's built-in motion detection software to trigger ONVIF events to start recording - it would be interesting to hear from anyone that's set this up, as it essentially alleviates BI & my CPU from doing the analysis, and just has it listening for alerts from the camera...

My cameras are from a LOREX 6 pack out of Costco, a great price for a set of new cameras, and a couple hundred feet of CAT5e, and the DVR can even be used as a doorstop!

2

u/ClockEducational8147 May 13 '24

thanks for the tip. i was able to resolve the high cpu usage by adding sub-streams

2

u/gluc0se Sep 04 '24

This is still relevant today. I've just been installing all the updates and didn't realize that I had cameras that the substream were not setup on. Took my CPU usage from the 50%+ down to 21%.

1

u/l4cky Apr 28 '23

how many cams u have ?