<?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/3009" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2022-01-09T02:34:18+00:00</updated>

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

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2022-01-09T02:34:18+00:00</updated>

		<published>2022-01-09T02:34:18+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=12023#p12023</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=12023#p12023"/>
		<title type="html"><![CDATA[Record troubleshooting]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=12023#p12023"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br><br>This article is about narrowing down record issues to root cause.  Common ticket states I am missing recordings or recordings have skipped.  This is not actionable.<br><br>If you are new to BI, best to review <a href="viewtopic.php?f=11&amp;t=2305" class="postlink">Record tab article / webinar</a>.<br><br>The <strong class="text-strong">Next steps / Submitting a ticket</strong> section at the bottom of the article states needed information to move forward.<br><br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Troubleshooting</strong></span><br><br><strong class="text-strong">Record settings</strong><div style="margin-left:3em">Understand your record settings.  The <strong class="text-strong">When triggered</strong> and <strong class="text-strong">When alerted</strong> selections will ONLY record when the camera triggers/alerts.  <br><br><strong class="text-strong">When triggered</strong><br>Camera triggers (trigger tab settings) -&gt; Record<br>Trigger: Camera triggered (motion event in logs).  Easy to confirm whether camera triggered (besides checking the logs).    In the Trigger tab, set <strong class="text-strong">Add to alerts list: = Hi-res JPEG</strong> files.  If the camera triggers, a corresponding alert image is created in your Alerts folder!  Easy way to use BI to tell you what is going on.<div style="margin-left:3em">--&gt; Record: Recording occurs until the trigger ends<br><br></div><strong class="text-strong">When alerted</strong><br>Camera triggers (trigger tab settings) -&gt; AI (if enabled) -&gt; Alert filters (if any.  set in Alerts tab) -&gt; Record<br>Trigger: Camera triggered (motion event in logs).  Easy to confirm whether camera triggered (besides checking the logs).    In the Trigger tab, set <strong class="text-strong">Add to alerts list: = Hi-res JPEG</strong> files.  If the camera triggers, a corresponding alert image is created in your Alerts folder!  Easy way to use BI to tell you what is going on.<div style="margin-left:3em">-&gt; AI: If using AI, DeepStack analysis will tell you if an object was found, i.e. confirmed alert.  Fortunately a DeepStack event will also be registered in the logs.<div style="margin-left:3em">-&gt; Alerts tab:  Filters in the AIerts tab can block an alert.  Easy to check.  Do you see the alert in the Alerts list.  If not, then you know the Alerts tab is somehow blocking the Alert!<div style="margin-left:3em">-&gt; Record:  Recording occurs until the trigger ends</div></div></div> <br><br>BI does NOT record continuously with When triggered/alerted settings.  In addition, <strong class="text-strong">Combine or cut video each</strong> (selected by default) places triggers/alerts into a combined recording file.  Thus, playing back a recording (i.e. a clip) will result in the appearance of gaps when in actuality, BI is just jumping to the next alert.<br><br>So, the time lapse when playing back a file that was created with When triggered/alerted settings is due to BI playing alert 1 and then alert 2 and so on.  The time between alerts are NOT recorded, thus the possible appearance of a gap in the recording.<br><br>See <a href="viewtopic.php?f=11&amp;t=2305" class="postlink">Recording article / webinar</a> for details.<br><br></div><strong class="text-strong">Cameras</strong><div style="margin-left:3em"><br><strong class="text-strong">Camera streams</strong><br><br>Garbage in = Garbage recorded.  <br>Are the cameras functioning?  <br>Is a particular camera not recording?  May have a camera hardware issue.<br>Is a subset of camera(s) not recording?  May have a network hardware issue.<br>Do you have good healthy live video?  Not choppy?  Not lagging?  Not glitching etc.<br><br>If the camera streams are poor, choppy etc then of course the recordings will have issues.  The <a href="viewtopic.php?f=26&amp;t=2982#Cameras" class="postlink">camera streams section</a> has links to articles to resolve streaming issues if any.<br><br><strong class="text-strong">Camera stats</strong><br><br>Know your <a href="viewtopic.php?f=22&amp;t=3142" class="postlink">camera stats</a> and how to fix.  <strong class="text-strong">The key frames and pre-trigger buffer settings are so crucial for BI to perform well when saving D2D</strong>.  See details in <a href="viewtopic.php?f=22&amp;t=2598#Key%20frame%20ratio" class="postlink">key frame section</a>.<br><div style="margin-left:3em"><br>Below is an example from a past ticket.<br>Issue:  I had a dark room and a door opened, someone moved a box and left and the recording never showed any of it.  Not even a single idea the door had ever opened for 25 seconds.<br><br>Your camera stats tell you how the camera is performing.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2338" class="postimage" alt="record _camera stats.png" onclick="viewableArea(this);" /></dt></dl></div><br>The camera stats are terrible.  The key frame ratio is 0.11, i.e. one key frame every 9.09 s.  The person could have entered the dark room and cleaned out everything in 10s.  <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_e_wink.gif" width="15" height="17" alt=";)" title="Wink"><br><br>Fix: User also stated he was experimenting with H.265+/H.264+ encoding which is a major no, no.  H265+ / H264+ are all proprietary encoding which seem to optimize network bandwidth (for 4k+ cameras) by minimizing key frames and thus the issue.<br><br></div></div><strong class="text-strong">Network congestion</strong><div style="margin-left:3em"><br>Surveillance equipment puts a heavy load on the network.  Need to know your <a href="viewtopic.php?f=20&amp;t=2539#Network%20tests" class="postlink">network stats</a>.  If the network is congested, BI can lose connection to a camera or frames may be lost on the network.<br><br></div><strong class="text-strong">Storage</strong><div style="margin-left:3em"><br>The biggest cause of record issues is when recording is set to D2D, but the key frame ratio is low or no pre-trigger buffer is created, <strong class="text-strong">as stated above in bold</strong>.  <br><br>The second cause is BI does NOT have disk space to write the recording.  Confirm your <a href="viewtopic.php?f=11&amp;t=2817" class="postlink">storage is functioning</a>.<br><br></div><strong class="text-strong">BI Server</strong><div style="margin-left:3em"><br><strong class="text-strong">Windows</strong><br>Make sure BI and Windows are working well together.<br>See <a href="viewtopic.php?f=20&amp;t=2080" class="postlink">Windows Tuning article</a> for details. <br>Focus on the <strong class="text-strong">Storage</strong> sections.<br>Always good to review <strong class="text-strong">Firewall and Anti-virus</strong> sections as well.<br><br><strong class="text-strong">Windows power settings</strong><br>Power savings:  Make sure BI is running full throttle all the time.  <br>If the disk drive or the network card is put to sleep, then obviously you will have poor recordings.<br>On a BI server, power saver settings should only put the monitor to sleep and nothing more.<br><br><strong class="text-strong">BI Software - Check logs</strong><br>The <a href="viewtopic.php?f=27&amp;t=3043" class="postlink">logs</a> are a great place to start because it identifies errors associated with hardware BI is dependent on to function: Hard drives, NAS devices, DeepStack etc.<br>Look for <a href="viewtopic.php?f=14&amp;t=2086#Storage" class="postlink">Storage and Recording errors</a>.<div style="margin-left:3em"><br><strong class="text-strong">Server running</strong><br>If you have a gap in your recordings, first make sure the server was running.<br>Search for <strong class="text-strong">Restarted after unexpected shutdown</strong>.  Error code 2 (first column).<br>The timestamp of the preceding line tells you when the server went downs: 10:37:41.516.<div class="codebox"><p>Code: </p><pre><code>0 9/16/2021 10:37:41.516 PMAI                  Delete: nothing to do [62/168 hrs, 2.00M/5.00G, 256.0G free]2 9/16/2021 10:38:03.393 PMApp                 Restarted after unexpected shutdown (5.5.0.11/1500/240)</code></pre></div><br><strong class="text-strong">Other software checks</strong><div style="margin-left:3em">Threads that can temporarily stop recordings.<br><br><strong class="text-strong">Archive thread</strong><br>The archive thread is responsible for moving files based on your Clips and archiving settings and has the ability to stop recordings temporarily.  If you have <strong class="text-strong">Log clip move/delete details</strong> selected in Global settings -&gt; Clips and archiving tab, then below log entries every 5 minutes indicates the thread is running properly.<br><div class="codebox"><p>Code: </p><pre><code>0 1/1/2022 12:07:22.765 AMNew                 Delete: nothing to do [719/720 hrs, 11.0G/100.0G, 297.1G free] 1 locked0 1/1/2022 12:07:22.766 AMAlerts              Delete: nothing to do [167/168 hrs, 50.2M/20.0G, 297.1G free]</code></pre></div>The actual details will be different based on your Clips and archiving setup.  The 0 code event starting with <strong class="text-strong">Delete:</strong>, however, are the identifiers associated with archive thread events.  <br><br><strong class="text-strong">Compact / Repair thread</strong><br>Compact / repair is a UI feature initiated by right clicking on the clip list -&gt; Database -&gt; Repair/regenerate.  If there were issues with its functionality, it would be immediately visible in the UI feedback.<br><br></div></div><strong class="text-strong">CPU Utilization</strong><br>If the CPU is overloaded (&gt;80%), then BI may be too busy to fulfill all the camera settings.<br><a href="viewtopic.php?f=27&amp;t=3060" class="postlink">See link for details</a>.<br><br><br><strong class="text-strong">Hardware overloaded</strong><br><br>You may have so many cameras connected to your server that you overloaded the hardware.  Disable working cameras and see if the problematic cameras start working again.  This is a telltale sign that you have overloaded hardware resources.  <div style="margin-left:3em"><br><strong class="text-strong">Hardware acceleration</strong><br>To determine whether the hardware acceleration (HA) is overloaded, enable all the cameras and turn HA off for the non-working cameras.  By doing so, you have moved the decoding load from HA to the CPU.  See if the non-working cameras start working again.<br><br><strong class="text-strong">Ethernet card</strong><br><br>The Network congestion section above examines whether the server ethernet card is overloaded.<br><br><strong class="text-strong">Hard drives</strong><div style="margin-left:3em"><br>Customer Anecdotal:<br>Symptoms:  The cameras keep freezing and stop recording after so long.  Keeps getting network/signal retry but the network is fine <strong class="text-strong">and if I plug the old machine in it works fine</strong>.    <br><br>The server suddenly ‘freezes’ along with most of the cameras.  There’s doesn’t appear to be one ‘particular model’ of camera that is an issue.  This can happen after half an hour or after 10 hours, it is intermittent.  It can affect 2-3 cameras, or all of them.  Once it freezes the iphone app will connect but says all the cameras are unreachable, the UI3 interface won’t connect/refresh at all, the blueiris cameras on screen are frozen and despite the Server saying it is at 4% RAM, the app on the iphone says it’s at 96%?!<br><br>Once Blue Iris was started it kept creeping up to 100% usage and then maxing the RAM out.<br><br>Issue/Fix: Faulty hard drive which was replaced.<br><br>Google search for many articles on "windows faulty hard drives" to determine whether you have a bad drive.  Here is a <a href="https://www.makeuseof.com/tag/5-signs-hard-drive-lifetime/" class="postlink">link to one finding</a>.<br>System File Checker (SFC) and Check Disk (chkdsk) are popular tools provided by Windows.<br><br><br></div></div></div><strong class="text-strong">BI Software Settings</strong><br><br>Below are accidental software settings that could have stopped recordings.<br><div style="margin-left:3em"><br>The following are ways recordings could have stopped based on BI settings.<br><br><strong class="text-strong">Record settings</strong><br><br>Camera settings -&gt; Record tab<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2339" class="postimage" alt="record_record settings.png" onclick="viewableArea(this);" /></dt></dl></div><br>If the video checkbox is unselected, you turned off recordings for the camera.<br>If you choose one of the "When" settings, the cameras will NOT record unless the camera triggered.<br>Make sure your trigger settings are correct.<br><br><strong class="text-strong">Camera Paused</strong><br>Was the camera temporarily paused in BI?<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2340" class="postimage" alt="camera paused.png" onclick="viewableArea(this);" /></dt></dl></div><br><br><strong class="text-strong">Shield red</strong><br>Was the shield red?<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2341" class="postimage" alt="red shield.png" onclick="viewableArea(this);" /></dt></dl></div><br><br><strong class="text-strong">Profile</strong><br>Was the camera not active for certain profiles?<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2342" class="postimage" alt="record camera profile.png" onclick="viewableArea(this);" /></dt></dl></div><br>The image above shows the camera is set to inactive for Profile 2.  Camera settings -&gt; General tab.<br>The current active profile is 2 (Work hours).<br>In the camera border, BI tells you the camera is running Profile 0 (Inactive) instead of Profile 2, which is a great visual reminder of what is going on.<br><br><strong class="text-strong">Camera schedule</strong><br><br>Similar to above, the camera schedule can also force a camera to the Inactive profile.  Camera settings -&gt; Schedule.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2343" class="postimage" alt="record_camera schedule.png" onclick="viewableArea(this);" /></dt></dl></div><br>If you uncheck, Use global schedule when..., all the blank space in the schedule is filled with the Inactive profile.<br><br><strong class="text-strong">Motion sensor</strong><br>Is there a blue border around the camera?  The blue border means the motion sensors are off for the camera.<br>If you chose one of the <strong class="text-strong">When+</strong> record settings, then nothing will record because the camera will not trigger because the motion sensors are off.<br>The Alerts list / Timeline will always be empty because the camera is not triggering.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2344" class="postimage" alt="record blue border.png" onclick="viewableArea(this);" /></dt></dl></div><br><ul><li>Either your Schedule is running the Inactive profile as seen in the image above.  This would result in ALL the cameras not recording.</li><li>Or you paused the camera as stated above</li><li>Or somehow the motion sensor is turned off.  Camera settings -&gt; Trigger tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2345" class="postimage" alt="record motion sensor.png" onclick="viewableArea(this);" /></dt></dl></div></li></ul></div><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Gotchas</strong></span><br>Learnings from past tickets.<br><br>Gotcha 1: <strong class="text-strong">Recordings stopped</strong><div style="margin-left:3em"><br>You first need to understand the scope of the issue.  Did recordings stop across ALL your cameras or do you have issues with one camera?  Easy way to know is by opening the filter by date feature in the Clips list.<br><br>The red dots indicate days with recordings.  Notice in example below, no red dots for Jan 4 - Jan 21.  This implies the issue exists for all cameras.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2435" class="postimage" alt="record framework_calendar.png" onclick="viewableArea(this);" /></dt></dl></div><br>The question to ask yourself is whether Recordings do not exist because BI is not recording or whether the Database is running into errors and not inserting clips / alerts into the database tables.<div style="margin-left:3em"><a href="viewtopic.php?f=27&amp;t=3061" class="postlink">Check for database issues</a>.<br>If not the database, you probably have a <a href="viewtopic.php?f=11&amp;t=2817" class="postlink">storage issue</a>.</div><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Submitting a ticket</strong></span><br><br><strong class="text-strong">Log files</strong><div style="margin-left:3em">Fix any server errors.  The <a href="viewtopic.php?f=27&amp;t=3043" class="postlink">Log files framework</a> explains how to use excel to dissect log files quickly.<br>The <a href="viewtopic.php?f=14&amp;t=2503" class="postlink">Understanding Log Files article/webinar</a> is a case study on how I discovered NAS issues for a user.<br><br></div><strong class="text-strong">If you really believe the issue is with BI software, provide the supporting evidence.</strong><div style="margin-left:3em">Describe the issue.<br>When you discover a gap, send the bvr to us for review.<br>We need a screenshot of the Alert in the Alerts list.  This is how we confirm the camera was triggered/alerted and was supposed to continue recording.  Does not apply to Continuous or Periodic record settings.<br>Specify the time when the gap occurred.<br>Share your camera settings.  Camera settings -&gt; General tab -&gt; Export<br>Share the logs coinciding with bvr file.  ** Very Important **<br>Support info<br><br></div>What we will do with the information.<div style="margin-left:3em">Confirm recordings stopped in the BVR file.<br>Confirm your camera settings are not causing the issue<br>Check the logs to see what could have caused recordings to stop.<br>Were there any errors associated with writing to disk?<br><br></div>Before sending to us, you should first do the above to confirm for yourself the issue is NOT with your settings or your server hardware.<p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Sun Jan 09, 2022 2:34 am</p><hr />
]]></content>
	</entry>
	</feed>
