<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://blueirissoftware.com/forum/app.php/feed/topic/2052" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-02-08T18:29:37+00:00</updated>

	<author><name><![CDATA[Blue Iris]]></name></author>
	<id>https://blueirissoftware.com/forum/app.php/feed/topic/2052</id>

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-02-08T18:29:37+00:00</updated>

		<published>2021-02-08T18:29:37+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=8018#p8018</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=8018#p8018"/>
		<title type="html"><![CDATA[Software Startup Issues]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=8018#p8018"><![CDATA[
<strong class="text-strong"><span style="font-size:150%;line-height:116%">Introduction</span></strong><br><br>If the software no longer starts, there is little that can be done to troubleshoot the issue.  Follow the steps below to manually change registry settings to get the software running again.<br><br><strong class="text-strong">If the software starts, but takes longer than before or takes a long time, i.e. more than 5s to start, this almost always implies you have a corrupt file.<br>Run Microsoft's System File Checker on your hardrive to see if there are any damaged files.  From command prompt, run "sfc/scannow"</strong><br><br>If you are unfamiliar with Windows registry, <a href="https://youtu.be/CMHIXXmo6dM" class="postlink">this YouTube video</a> should provide enough context to carry out actions below.<br><br><strong class="text-strong">How to use this article</strong><br><br>The Quick fixes section shares next steps if the software suddenly stopped working after a Windows update or BI update.  A common cause is hardware acceleration incompatibility with a camera.  Another common cause is a user was making setting changes and for some reason BI stops working.  The Clear registry section explains how to quickly go back to previous settings.  The Clear registry section is also an easy way to clear the registry temporarily just to confirm the executable on your computer is not corrupt.<br><br>The Troubleshooting Crashes section is the next course of action.  If the Quick fixes do not get the software running, then you need to figure out which camera or feature within a camera is causing the issue.  This section helps you do so.<br><br><strong class="text-strong"><span style="font-size:150%;line-height:116%"><a name="Before starting">Before starting</a></span></strong><br><br>Before doing anything, make sure you have the below two pieces of information.<br>The worst feeling is when you start something and it breaks and there is no way to go back!<ul><li>Your license key.  The easiest way to store your license key is to mail your support info to yourself.<br>This way you will always have a copy of your license in your email.</li><li>Working registry settings.</li></ul>If you routinely backup BI settings great!  Find your backup and save it to a thumb drive (better safe than sorry).<br>If not, BI automatically saves your settings from the last 3 days.  Go to your program installation directory, usually "C:\Program Files\Blue Iris 5".  You will find 3 settings: backup.reg, backup2.reg and backup3.reg from newest to oldest.  Hopefully, one of those will work.<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong"><a name="Quick Fixes">Quick Fixes</a></strong></span><br><br>This section has quick fixes to common tickets.<br><br><strong class="text-strong"><a name="Hardware acceleration">Hardware acceleration</a></strong><br><br>Scenario: BI starts crashing immediately.  But you have no idea why.  All you did was update BI or just notice instability one day.<br><br>Frequent crashes usually mean the hardware decoding is not happy with one of your cameras.  Easy fix is to go into the registry and turn off hardware acceleration globally.<br><br><strong class="text-strong">Global hardware acceleration</strong><br>How to turn HA off globally (for all cameras)<br>Find the below key in the Registry (Windows start button -&gt; regedit):<br>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris\Options<br>Set <strong class="text-strong">hwaccel</strong> to 0.<br><br><strong class="text-strong">Hardware acceleration per camera</strong><br>How to turn off HA for each camera.<br>Find HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris\Cameras<br>For each camera, set the value of <strong class="text-strong">ip_hwaccel</strong> to 2.<br><br>Other fixes:<ul><li>Usual issue is the camera is set to H.265 encoding, but your QuickSync or hardware decoder does NOT support H.265. <br>See <a href="viewtopic.php?f=20&amp;t=2463#Server%20Recommendations" class="postlink">Processor section</a> for details.</li><li>Simplify camera encoding to H.264.  <a href="viewtopic.php?f=22&amp;t=2598#Camera%20settings" class="postlink">Camera setup article</a> has details.</li><li>Update your hardware drivers.</li></ul><br><br><strong class="text-strong"><a name="Clear registry">Clear registry</a></strong><br><br>Scenario: This seems like the solution of choice when you did something funky, e.g. resulting in the display or something else no longer working properly or the software will not start.  You can either clear the registry and start over or load past settings.<br><br>Make sure you meet all the requirements in the <a href="viewtopic.php?f=14&amp;t=2052#Before%20starting" class="postlink">Before Starting section</a> ABOVE <strong class="text-strong">especially having a working backup of your BI settings</strong>.  If not, you will be re-adding all your cameras.<br><br>Steps to clean out registry:<div style="margin-left:3em"><strong class="text-strong">Stop BI</strong>  <br>BI should not be running as a service or manually.<br>See <a href="viewtopic.php?f=14&amp;t=2052#Stop%20BI%20service" class="postlink">Stop BI service section</a> (below) on how to stop the BI service.<br><br><strong class="text-strong">Registry</strong><br>Run regedit and delete the following keys if they exist:<br>HKEY_CURRENT_USER\SOFTWARE\Perspective Software<br>HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software<br><br>Good to start the software here.  If the program does not start with no settings, go to the website (blueirissoftware.com) and download/install the latest software.  Start the software.  If the software still does not start, you will need to examine the hardware or operating system.<br><br><strong class="text-strong">Restore past settings</strong><br>If you want to start from previously stable setting, import your registry settings.  Global settings -&gt; About tab -&gt; Import settings.  <br><br><strong class="text-strong">Start or Reinstall BI</strong><br>(optional) If reinstalling <a href="https://blueirissoftware.com/" class="postlink">BI</a>, temporarily disable antivirus software after installing BI.<br><br><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong"><a name="Troubleshooting Crashes">Troubleshooting Crashes</a></strong></span><br><br>Below is how users can isolate crashes using the registry.  Another cool tool in the toolbox.  If you don't want to start with past settings or start over and the above fixes do not work, this section explains how to turn off cameras using the registry until the software starts.  If you prefer to watch the webinar associated with this article, checkout the <a href="https://youtu.be/eaajLUXUXlg" class="postlink">Performance and Troubleshooting webinar</a>.<br><br>Again, before doing anything with the registry, go through <a href="viewtopic.php?f=14&amp;t=2052#Before%20starting" class="postlink">Before starting section</a> ABOVE.  <br><a href="viewtopic.php?f=14&amp;t=2052#Stop%20BI%20service" class="postlink">Stop the BI service</a> (below) if not done so already.<br><br><strong class="text-strong">Disconnect All your Cameras</strong><br>This section explains how to disconnect all your cameras using the registry.  It's an easy test to determine whether the startup issue lies with your cameras or some other functionality in BI.  An example of isolating the issue.<br><ul><li>First shutdown BI if it is running.</li><li>Type regedit in the Window search bar (lower left) and select Registry Editor</li> <li>Search for the BI settings: HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris (see image below)</li><li>Rename the Cameras key to CamerasX.  This will immediately remove all your cameras from BI.  <strong class="text-strong">If the software starts up, then you know there is an issue with one of your camera settings</strong>.</li></ul>Once you know the issue lies with cameras, rename CamerasX back to Cameras.  Proceed below to identify the offending camera(s).<br><br><strong class="text-strong">Disabling a camera</strong><br><br>This section explains how to disable a camera using the registry.  <br><ul><li>First shutdown BI if it is running.</li><li>Type regedit in the Window search bar (lower left) and select Registry Editor</li> <li>Search for the BI settings: HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris (see image below)</li><li>Go to a camera and change enabled to 0.  This effectively disables the camera. (see image below)<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=942" class="postimage" alt="camera registry.png" onclick="viewableArea(this);" /></dt></dl></div></li></ul><br><strong class="text-strong">Troubleshooting cameras strategy</strong><br><br>Now you know how to disable cameras using the registry.  You can now leverage the registry to identify the offending camera(s).<br><br>I prefer using the UI to troubleshoot instead of the registry.  In order to get the software started as quickly as possible, I first turn off hardware acceleration globally.  Hardware acceleration with a camera(s) is often the issue with software startup.  Follow <a href="viewtopic.php?f=14&amp;t=2052#Hardware%20acceleration" class="postlink">hardware acceleration steps above</a> to turn off HA globally.<br><br>I then disable all the cameras.  This usually gets the software running.<br><ul><li>Disable all the cameras via the registry using technique above.</li><li>BI should start.</li><li>From the UI, you can now enable camera(s) one-by-one until software crashes.</li><li>Make note of offending camera and go back into registry and disable the camera.</li><li>Repeat steps and disable all offending camera(s).</li> </ul>If you have many cameras, users typically divide and conquer.  Disable half your cameras and see if the other half crashes.  If not, the disabled half of cameras has offending camera(s).  If so, the current half of cameras has an offending camera(s).  This logic applies to section below as well.<br><br><strong class="text-strong">Identify Camera &lt;&gt; HA Conflicts</strong><br><br>If the software starts with ALL the camera(s) enabled, it is very likely individual camera(s) incompatibility with HA is the reason for startup failures.<ul><li>Turn HA off for each of the cameras via the registry.    Follow <a href="viewtopic.php?f=14&amp;t=2052#Hardware%20acceleration" class="postlink">hardware acceleration steps above</a> to turn off HA for each camera.</li><li>Start the software.</li><li>Turn HA on globally.  Global settings -&gt; Cameras tab.</li><li>Software should still be running since HA is off for each camera.  Camera settings -&gt; Video tab.</li><li>Turn HA on for each camera.  When the software crashes, you identified a camera with compatibility issues with HA.</li><li>Go back to registry and turn off HA for the offending camera.  Repeat above until you identify all offending camera(s)</li></ul><strong class="text-strong">Troubleshoot offending camera(s)</strong><br><br>Once you know the offending camera(s), revisit the <strong class="text-strong">Hardware decode</strong> section in the <a href="viewtopic.php?f=22&amp;t=2778#Video%20tab" class="postlink">Video tab article</a> for the offending camera(s).<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Miscellaneous</strong></span><br><br><strong class="text-strong"><a name="Stop BI service">Stop BI service</a></strong><br><br>How to stop a BI service manually.  Used frequently in tasks above before editing the registry.<br><ul><li>To do so, in the Windows search bar, type services and bring up the services app.</li><li>Find the "Blue Iris Service" service.</li><li>Double-click the entry</li><li>Change Startup type from Automatic to Manual</li><li>Then stop the service.</li></ul><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Final thoughts</strong></span><br>At this point, your BI server should be up and running.  Below are other topics dealing with system stability.<br><br><a href="viewtopic.php?f=12&amp;t=2059" class="postlink">Rolling back to previous BI settings</a><br><br><a href="viewtopic.php?f=12&amp;t=2060" class="postlink">Rolling back to previous BI software versions</a><br><br><a href="viewtopic.php?f=14&amp;t=2492" class="postlink">Windows Tools</a>: Leveraging Windows capabilities to roll back Windows updates or Software Security updates and other topics.<p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Mon Feb 08, 2021 6:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
