BI crashes when client connects with UI3

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
After latest update 5.2.5.7 I noticed it changed my web server hardware acceleration from "No" to "Intel QSV" This would cause BI to crash immediately when connecting to web server using UI3. By returning setting back to "NO" would fix the issue. According to help file, if you use Direct to Disk recording these settings do not apply. I would check your setting if you are trying the latest and greatest. Other than that, mine seems to be running stable.

Annotation 2020-04-15 200306.jpg

Annotation 2020-04-15 200209.jpg
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,006
Location
USA
Interesting, it didn't change my Hardware acceleration option when I updated.

You have misunderstood the help file. Direct-to-disc does not globally disable any video encoding settings, especially not the Streaming profiles used by the web server. The direct-to-disc setting is configured separately for every camera (and for every profile!) and only decides whether video is re-encoded or not when recording. If you don't enable direct-to-disc for a camera, you choose a recording profile for it. Otherwise, you don't.

1587044758109.png
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
Interesting, it didn't change my Hardware acceleration option when I updated.

You have misunderstood the help file. Direct-to-disc does not globally disable any video encoding settings, especially not the Streaming profiles used by the web server. The direct-to-disc setting is configured separately for every camera (and for every profile!) and only decides whether video is re-encoded or not when recording. If you don't enable direct-to-disc for a camera, you choose a recording profile for it. Otherwise, you don't.

View attachment 59619
Thanks BP2008 for the explanation. So since all my cams are using D2D, I can assume "No" is what I should I have in the web server hardware acceleration then ? I understand this is set for each cam under it's settings, but why is there the same setting under settings/web server/advanced/configure. For example: if I change that setting it does not change each camera's settings, so what is this setting for ?
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,006
Location
USA
D2D has no effect on the web server at all.

Blue Iris uses the same configuration panel for all video encoding profiles. The difference is when you go to the one in settings/web server/advanced, you are editing profiles "Streaming 0", "Streaming 1", "Streaming 2" which are used by the web server. When you go to the ones elsewhere, you are editing "recording 0", "recording 1", "recording 2". They are entirely different profiles.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,006
Location
USA
I will elaborate a bit more.

Streaming 0 is used by default when you connect to Blue Iris with the iOS or Android native apps. It is also used when you connect with UI3, however UI3 overrides some of the settings from Streaming 0 -- namely the bit rate limit and the resolution limit. In all of these apps, you can select between "Streaming 0", "Streaming 1", "Streaming 2".

There are a few other web server features that are just hard-coded to use "Streaming 0", such as when you pull a raw H.264 stream, or a .ts, or a .m3u8. You don't really need to worry about those unless you are integrating BI with other software.
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
So, then when I select "Intel OSV" in the web server streaming setting, mine should not crash then. Ken said to make sure video drivers are up to date AND I am running a older I5 3670k cpu, but I think it should work. I will do some more testing and see If I can add any info to crash.
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
Here is the event data:

Log Name: Application
Source: Application Error
Date: 4/15/2020 6:46:36 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: BI-Machine
Description:
Faulting application name: BlueIris.exe, version: 5.2.5.7, time stamp: 0x5e966f57
Faulting module name: AcLayers.DLL, version: 10.0.18362.449, time stamp: 0x85232faf
Exception code: 0xc0000374
Fault offset: 0x00000000000094fd
Faulting process id: 0x348
Faulting application start time: 0x01d6138014acfa66
Faulting application path: C:\Program Files\Blue Iris 5\BlueIris.exe
Faulting module path: C:\WINDOWS\SYSTEM32\AcLayers.DLL
Report Id: a3db1e8e-fccb-4942-aaf2-f76eee0c3097
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-04-15T23:46:36.617621700Z" />
<EventRecordID>12890</EventRecordID>
<Channel>Application</Channel>
<Computer>BI-Machine</Computer>
<Security />
</System>
<EventData>
<Data>BlueIris.exe</Data>
<Data>5.2.5.7</Data>
<Data>5e966f57</Data>
<Data>AcLayers.DLL</Data>
<Data>10.0.18362.449</Data>
<Data>85232faf</Data>
<Data>c0000374</Data>
<Data>00000000000094fd</Data>
<Data>348</Data>
<Data>01d6138014acfa66</Data>
<Data>C:\Program Files\Blue Iris 5\BlueIris.exe</Data>
<Data>C:\WINDOWS\SYSTEM32\AcLayers.DLL</Data>
<Data>a3db1e8e-fccb-4942-aaf2-f76eee0c3097</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,006
Location
USA
Its "Intel QSV" (Q not O)

I've never had Intel encoding work on my system before, but at least I don't get a crash. It just silently falls back to software encoding for me.

Based on this chart it should be supported as far back as Sandy Bridge (2nd-generation / 2xxx).

1587051390701.png
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
Thanks for the info, I am updating to latest driver now and will report back after some testing. I never have used it as well, until it mysteriously turned itself on and my brother informed me he thought my BI was crashing when he logged in. Anyway, thanks for the help !
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
Well after a couple of hours screwing around with this with my brother we found a few things. I first moved my testing to my machine which I have a test installation there to use. We kept going back and forth on the "Intel QVC" vs. "No" for the hardware acceleration on the web server. While it did work better and NOT crash BI on this I7-6700k cpu it still would have issues when the full camera index was shown in UI3. We also tried this in EDGE and Chrome with about the same results.

What confused us is why would you want to use the acceleration due to it increased bandwidth with absolutely no difference in quality.

This is using "NO" acceleration:
Annotation 2020-04-16 132424.jpg

This is using "Intel QVC" acceleration:
Annotation 2020-04-16 132311.jpg

Maybe you could clear this up for us ? Also UI3 could maintain the web servers 10fps output on single cam, but on the index view of cams it could not....which makes sense.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,006
Location
USA
QVC. QSV. CBS. NBC. Whats the difference, right? :rofl:

I haven't gotten the hardware accelerated encoding to work at all, but it does not really surprise me that the bit rate would be different. Likely, the "quality" setting is scaled differently. And quick sync is also pretty well known for producing less efficient encodes than slower software encoding methods.

Group camera frames are more work for Blue Iris because it must synchronize, rescale, and copy video from multiple cameras. It is not uncommon also for you to get a frame rate that is 1-2 FPS lower than the maximum that is set for a group.

UI3 on the other hand doesn't care if it is a group or a single camera; it is all just a video stream as far as UI3's video player is concerned. Any slowdown is a result of the BI configuration or the added work of building a group frame.
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
QVC. QSV. CBS. NBC. Whats the difference, right? :rofl:
LOL...you would think I would get it right after looking at it for 2 hrs. But at this point I am going to just forget I even messed with it. I do appreciate your explanation :)
 
Top