playback issues

batch

Young grasshopper
Jan 26, 2018
65
6
Not sure what happened in the last few months but my playback is horrific.

what i usually do is:
  1. click on live view and pick a camera
  2. click clips
  3. highlight clips to see the playback to know which one im looking for
    1. This is where the issue starts happening, live feed goes crazy and the preview windows is choppy.
  4. if i stop preview the live video starts to spin and takes a few seconds to minutes to come back.

I never had this issue in the past and lately its only getting worse.
I was so annoyed that i cleaned out the recordings and rebuild the DB. still there.

Am i maybe using some old UI version ?
UI3 version 300, Blue Iris version: 5.9.9.73

i am using code project Object Detection (YOLOv5 .NET) 1.14.0 GPU (DirectML)


system specs:
Processor Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (2.59 GHz)
Installed RAM 64.0 GB (63.9 GB usable)
Nvidia GeForce RTX 3060 Ti 8GB
1TB PCIe NVMe SSD

Thoughts?
 
So BI's video clips are on the same drive as Windows, Blue Iris and BI's "db" folder?
 
Those are the latest versions of everything. It does sound like something is very wrong, but it is unclear to me exactly what is happening. Can you make a video showing all of this? Either via screen recording software or even just a cell phone video of the screen.

Some other things to try, to help narrow down the cause of the issue:
  • Load UI3 in a different web browser on the same device, see if same issues happen.
  • Load UI3 on a different device, see if same issues happen.
  • Try clip playback in Blue Iris's local console to see if it plays okay or if there are issues there too.
 
Those are the latest versions of everything. It does sound like something is very wrong, but it is unclear to me exactly what is happening. Can you make a video showing all of this? Either via screen recording software or even just a cell phone video of the screen.

Some other things to try, to help narrow down the cause of the issue:
  • Load UI3 in a different web browser on the same device, see if same issues happen.
  • Load UI3 on a different device, see if same issues happen.
  • Try clip playback in Blue Iris's local console to see if it plays okay or if there are issues there too.
well shoot, playback on BI directly is Snappy and i have zero issues.
I tried a new browser also in private window and it seems slow still but maybe not as terrible as the original issue i mentioned. Still not what it was before.

wonder why its slow from my one machine which is on the same network. i dont really have another machine to test on though as my work machines dont let me.
 
Can you open UI3 on the same machine that runs Blue Iris, to rule out any network issues? Is there any proxy server involved?
thats wild, i just tried to run UI3 on the server itself and its horrifically slow and does even worse.
the only thing i do use is ngrok but thats only for external UI access .
One other item to point out is that im using a intel nuc and it has both network ports wired. Seems i setup NIC Teaming for both to be used. I cant for the life of me remember why i set it up that way but this is nothing new and has been this way for at least 2 years


1757530976632.png
 
Last edited:
It would be a good test to connect via 127.0.0.1 on the BI server machine.

Is the CPU and memory usage very low on that server? Like 30% or below on CPU, 80% or below on RAM?

I never used NIC teaming so I don't know if that could be a problem. But if you connect via 127.0.0.1 I would think that would completely avoid using your NIC at all.

Ngrok I would be a little suspicious of if it has a concurrent connection limit (I don't know if it does). Otherwise I wouldn't expect it to cause this sort of difficulty. But I never used it before.
 
It would be a good test to connect via 127.0.0.1 on the BI server machine.

Is the CPU and memory usage very low on that server? Like 30% or below on CPU, 80% or below on RAM?

I never used NIC teaming so I don't know if that could be a problem. But if you connect via 127.0.0.1 I would think that would completely avoid using your NIC at all.

Ngrok I would be a little suspicious of if it has a concurrent connection limit (I don't know if it does). Otherwise I wouldn't expect it to cause this sort of difficulty. But I never used it before.
I tried to access it via local host and its choppy if i pause the recording and then click live view the screen sits there spinning for a little: 1757593517121.png
during playback i get a clock 1757593483578.png
 
I want to say it could be a video encoder issue, but I have no idea what you could have changed to make it behave that way. Maybe enabled hardware acceleration and it is buggy? Try going to BI settings > Web server > Advanced, and edit the "Streaming 0" configuration and reset it to defaults. Do the same for "Streaming 1" and "Streaming 2" unless you have a good reason not to, just to cover all the bases.
 
I want to say it could be a video encoder issue, but I have no idea what you could have changed to make it behave that way. Maybe enabled hardware acceleration and it is buggy? Try going to BI settings > Web server > Advanced, and edit the "Streaming 0" configuration and reset it to defaults. Do the same for "Streaming 1" and "Streaming 2" unless you have a good reason not to, just to cover all the bases.
I dont see any obvious crashes in the log.

I did see streaming 0 was set to this so i did default and well see what happens.
1757625241582.png
 
unfortunately that didnt help.
may end up rebuilding this machine in the future.
 
Hehe you definitely did some ill-advised tweaks there. But since resetting it didn't fix the issue, I don't know what else could be wrong. Did you by chance edit UI3's streaming profiles (within UI3) like you did with the Streaming 0 profile?

Some notes about that:

"ultrafast" preset has noticeably lower quality than the "superfast" default, in exchange for saving a very minor amount of CPU, and that is a tradeoff I don't recommend to anyone anymore.

Intel QSV hardware encoding has never worked as far as I know. Granted I haven't tried it in at least a year. As far as I could tell, this setting has no effect whatsoever when set to Intel QSV, but it wouldn't surprise me much to find out there is some hardware/driver configuration where it breaks something.

Setting H.264 quality to 90-100% is the most common encoder setup mistake I see people make. There are several reasons for that:
  • Blue Iris's H.264 quality scale is not intuitive. In most other software offering 0-100% image quality control, "50%" yields a picture full of compression artifacts. But in Blue Iris, 50% H.264 quality is actually very high.
  • Having a bit rate limit enabled mostly makes it irrelevant if your quality is set above 50%, because the quality will be constrained by the bit rate limit. It does still affect bitrate allocation to iframes, sometimes not in a good way, but iframes are normally 300-1000 frames apart in UI3 so this relatively minor difference is not noticed.
  • UI3 implements its own streaming profiles (e.g. "1080p") that all (by default) inherit from "Streaming 0" but also override the quality and bitrate limit settings. Consequentially, editing the quality or the bit rate limit of the Streaming 0 profile in Blue Iris has no affect on UI3 unless you also edit UI3's streaming profiles to remove the overrides.
  • Group video (multiple cameras at once) is relatively low resolution by default due to the higher CPU usage involved in creating these streams. People often struggle to find the correct place to adjust this (in UI3, right click the video, choose Group Settings), so instead they struggle to make the group video look better by increasing every quality setting they can find. Seeing no effect either positive or negative, they leave it maxed out.
 
The issue for me is not knowing so i watched tons of videos and setup things i forgot about.
I did reset setting on UI3 and i still have the same issues.

Historically even when i was using Deepstack everything worked great then after a few months without changing any settings it would loose its mind.
Finally i did move over to CodeProject and its been smooth so far.

I do keep my system updated, i dont use it for anything else.
Really only have 4 amcrest cameras for blueiris but added my 12 unifi protect cameras. I still primarily like to use BI as my platform.

I may just rebuild BI from scratch and stop using my exports for camera settings as well.
 
Here's a thought. It is a long shot. Are you by chance recording to MP4 files or any other file type that is not "BVR"? MP4 playback issues are really common. BVR, being the default and most powerful option, is the only one that gets much testing.
 
here are my settings , one thing to keep in mind, i do not do substreams. never have as i found it more confusing for my tiny brain and use the main streams only.
1757697708985.png1757697720215.png
 
ive been digging around and one common theme i see is that the CPU spikes hard up to 100% even though the GPU is being used primarily.

the only item i see is the task manager that BI spikes hard. it does show 86 but i do see it spike to 100

1759427798512.png

looking at the stats for nerds

1759427855762.png


Is it possible maybe my code ai is causing this ? on yoloV5 .net using gpu DirectML

I do that the ability to install another m.2 and maybe point BI to store videos there but it worked perfectly before .