<?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/forum/19" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-10-08T01:32:22+00:00</updated>

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

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-10-08T01:32:22+00:00</updated>

		<published>2021-10-08T01:32:22+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=10746#p10746</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=10746#p10746"/>
		<title type="html"><![CDATA[Remote Access • Web Interface (UI3)]]></title>

					<category term="Remote Access" scheme="https://blueirissoftware.com/forum/viewforum.php?f=19" label="Remote Access"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=10746#p10746"><![CDATA[
<span style="font-size:150%;line-height:116%">Introduction</span><div style="margin-left:3em"><br>This article documents UI details, mostly driven from tickets.<br><br><strong class="text-strong">Webinar</strong><br>The <a href="https://youtu.be/HX0o29_JD_8" class="postlink">Web Interface webinar</a> provides a great overview of the functionality and calls out many important tips and tricks.<br><br></div><span style="font-size:150%;line-height:116%"><a name="Networking">Networking</a></span><div style="margin-left:3em"><br><span style="font-size:125%;line-height:116%"><a name="Login">Login</a></span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: Using DDNS instead of port forwarding.  Accessing the UI3 interface from the LAN using the DDNS URL is very slow.</strong><br><br>We are not networking experts so users on the forum may have a better answer.  <br>One possibility is the firewall settings are not set correctly.<br>Another possibility is usually when you use a DDNS url from within the same LAN, the traffic gets proxied through the router using a function called "NAT loopback" or "hairpin NAT".  It could be that their router is bad at this.  One workaround is to try the BI server's LAN IP address instead of the DDNS url when on the same LAN.<br><br><br><strong class="text-strong">Gotcha 2: Login is slow.  Live view fails to load or takes a minute to load.</strong><br><br>I recommend checking CPU and memory usage on both server and client while remote viewing.  Most computers these days are plenty good enough for UI3, but that isn't a guarantee.  And also make security software exceptions (see <a href="viewtopic.php?f=14&amp;t=2080" class="postlink">Windows Tuning article</a>), as such software can interfere with the web server connections.  A poorly performing network could also cause such issues.<br><br>If CPU usage is high, consider unselecting "Require/decode all camera frames when streaming".<br>Gear icon in top right of Console.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1928" class="postimage" alt="ui3 gotcha_group stream.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">Gotcha 3: Ad-blockers</strong><br><a href="viewtopic.php?f=20&amp;t=2955#Gotcha%203" class="postlink">See ad-blocker gotcha</a>.<br><br><br></div><span style="font-size:125%;line-height:116%"><strong class="text-strong"><a name="Live view">Live view</a></strong></span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: Orange Clock Warning</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1922" class="postimage" alt="ui3-gotcha_clock.png" onclick="viewableArea(this);" /></dt></dl></div><br>If you get the orange clock warning, either the fps is low for the stream or the endpoint is overloaded because the resolution (i.e. bitrate) is too high.  <br>Run through the <a href="viewtopic.php?f=12&amp;t=2080" class="postlink">Windows Tuning article</a> just to make sure Windows is not in conflict with BI.<br>Readjust the stream using Gear icon (bottom right).<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1923" class="postimage" alt="ui3 gear icon.png" onclick="viewableArea(this);" /></dt></dl></div><br>FYI, the UI3 gear settings are just presets values in the web server encoder settings<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1924" class="postimage" alt="ui3-vs-settings_optimized.png" onclick="viewableArea(this);" /></dt></dl></div><br><br><strong class="text-strong">Gotcha 2: Live view is choppy.</strong><br>Symptom:  Many frames are missing.  The time overlay skips several seconds.  The live view was delayed by several seconds.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2554" class="postimage" alt="ui3_fps.png" onclick="viewableArea(this);" /></dt></dl></div><br>Fix:  Try increasing the fps for the group stream.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2037" class="postimage" alt="ui3-gotcha_group fps.png" onclick="viewableArea(this);" /></dt></dl></div><br>If the load on the network gets too much, in the UI3 interface, click on gear icon on bottom right and choose a higher/lower resolution to ease network congestion (Gotcha 1 above).<br><br>Engineering warning<div style="margin-left:3em">This setting was at 10 at one time, but it used so much CPU, it caused a lot of tickets for that.  It should be increased judiciously. 15  would be even worse.<br><br>Perhaps now that dual-streaming is the norm, this will not be as much of an issue.<br><br></div></div><span style="font-size:125%;line-height:116%"><a name="Playback">Playback</a></span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: Playback is slow or choppy for recordings.  1 - 5 fps</strong><br><br>If the live view of the same camera is streaming just fine, then there is probably not an issue with CPU or network performance.  The main difference between live and clip playback is the involvement of the storage device on the BI server.  It may be having trouble seeking and reading an existing file if there is a lot of recording going on.<br><br>Some ideas:<br><br>1) Revisit <a href="viewtopic.php?f=19&amp;t=2716#Live%20view" class="postlink">Gotcha 1 above</a> in the Live view section.  Simplify the stream coming to BI using the gear icon. <br>2) Make sure playback in UI3 is set to 1x speed and not playing in reverse.<br>3) Try temporarily disabling recording on the BI server (set shield to red) to reduce disk load for testing purposes.<br>4) Make sure the recording format is BVR.  I've had bad playback issues with MP4 before.<br>5) If hardware acceleration is used, look for the "Also BVR" checkbox in Blue Iris console &gt; Camera Properties &gt; Video tab.  Toggle it on or off in case hardware acceleration is helping or hurting the playback somehow.<br><br>If still an issue, run through <a href="viewtopic.php?f=20&amp;t=2539#Remote%20device%20tests" class="postlink">Remote device tests</a> to rule out the server and network.<br><br><br><br></div></div><span style="font-size:150%;line-height:116%">UI3 Settings</span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: I set the UI3 timeout to 0 (i.e. never time out), but the browser still logs me out.</strong><br><br>In General settings, users can set the UI3 idle timeout period.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1927" class="postimage" alt="ui3 timeout setting.png" onclick="viewableArea(this);" /></dt></dl></div>Users state this setting is not being honored and UI3 still logs out.  UI3 will let you know when a session disconnected because of a timeout.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1925" class="postimage" alt="ui3 time out message.png" onclick="viewableArea(this);" /></dt></dl></div><br>If instead you received the login page, that means UI3 lost the session with BI which resulted in reloading the page which typically redirects to the login page.  <br><br>It could be caused by anything that causes temporary connectivity loss, such as the network going down for 1 minute or longer, or even Blue Iris crashing.  Or maybe even a session length limit applied to the Blue Iris user account.  Although I think the user would realize if they had set this on all their BI systems.  There certainly is not a session length limit by default.<br><br>The other possibility is the endpoint viewing UI3 is disconnecting.  For example, if the endpoint is a laptop, power saving settings may have put the laptop to sleep or disconnected the laptop from the network.<br><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1926" class="postimage" alt="ui3 login.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">Gotcha 2:  Login credentials</strong><br><br>The login page does not remember user credentials.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1982" class="postimage" alt="UI3_login credentials.png" onclick="viewableArea(this);" /></dt></dl></div><br>Like all other UI3 settings, the username, password, and "Log in automatically" checkbox state are saved in the browser's Local Storage.   Local Storage can be inspected for troubleshooting purposes in the browser's developer tools.  In Chrome, a person would open developer tools &gt; Application tab &gt; Storage &gt; Local Storage &gt; [address].  This will show all local storage items that exist for the selected web site.  Look for the keys "bi_username", "bi_password", and "bi_rememberMe".  <br><br>To make the saved credentials get lost, the browser may be clearing Local Storage regularly (such as when the tab is closed) due to security or privacy settings.  Or perhaps a browser extension is responsible.  Most browsers treat "Local Storage" the same as "Cookies" so most settings affecting Cookies would affect this as well.<br><br><br></div><span style="font-size:150%;line-height:116%">Console view</span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: Reduce margins between camera windows.</strong><br>See <a href="viewtopic.php?f=13&amp;t=2628#Gotcha%207" class="postlink">Gotcha 7 in 5.5 Release notes</a>.<br><br><br><strong class="text-strong">Gotcha 2: Missing cameras</strong><br><br>Below are settings that can prevent a camera from being visible on UI3.<ul><li>A camera could be marked as hidden (BI Camera Properties &gt; General), or its webcasting could be disabled (BI Camera Properties &gt; Webcast).</li><li>Or the user could be logged in to the web server using a limited account that does not have permission to view all cameras.</li><li>Or it could be that he just needs to use the Current Group dropdown in UI3 to select <strong class="text-strong">All cameras</strong>.</li></ul><br><strong class="text-strong">Gotcha 3: Can I filter Alerts/Clips by camera like in the console?</strong><br><br>Yes.  Go to Clips tab -&gt; Select a camera.  Filter is automatically applied.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2484" class="postimage" alt="UI3_camera filter.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><span style="font-size:150%;line-height:116%">BI Server Settings</span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 2: Ad blockers</strong><br><a href="viewtopic.php?f=20&amp;t=2955#Gotcha%203" class="postlink">See Ad blockers gotcha</a>.<br><br><br><strong class="text-strong">Gotcha 1: User permissions</strong><br>Global settings -&gt; Users tab<br>User Permissions may be restricting access<br>Global settings -&gt; Users tab<br>The below settings restrict access to LAN and/or applies restrictions based on the schedule.<br>Help button in dialog has details.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1981" class="postimage" alt="UI3_server permissions.png" onclick="viewableArea(this);" /></dt></dl></div><br>The Global settings -&gt; Web server tab -&gt; Advanced button has other possible access restrictions.<br>Help button in dialog provides details.<br></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Fri Oct 08, 2021 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-08-09T17:53:50+00:00</updated>

		<published>2021-08-09T17:53:50+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=9952#p9952</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=9952#p9952"/>
		<title type="html"><![CDATA[Remote Access • Mobile Devices - User interface]]></title>

					<category term="Remote Access" scheme="https://blueirissoftware.com/forum/viewforum.php?f=19" label="Remote Access"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=9952#p9952"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><div style="margin-left:3em"><br>This article provides clarity to the user interface based on tickets.<br><br>Link to <a href="viewtopic.php?f=11&amp;t=2211" class="postlink">Mobile Devices - Setup article (if needed)</a>.<br><br>If you are facing video issues like Live view is choppy or you are getting a black screen when trying to playback an alert then you are having video streaming issues.  The <a href="viewtopic.php?f=11&amp;t=2049" class="postlink">Camera Stream Gotchas article</a> deals with all things streaming including streaming to mobile endpoints.<br><br></div><span style="font-size:150%;line-height:116%">Alert actions</span><div style="margin-left:3em">If your issue is with alert actions, Push / Email / SMS, go to the <a href="viewforum.php?f=24" class="postlink">Alerts &amp; Action map sub-forum</a>.<br><br></div><span style="font-size:150%;line-height:116%">Recent Alerts</span><div style="margin-left:3em"><br>Located in the cameras tab, the recent alerts column displays the last alert that was generated by each camera.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2454" class="postimage" alt="recent alert.png" onclick="viewableArea(this);" /></dt></dl></div><br>If you happen to delete the recent alert or the clip containing the recent alert, the space will be blank until the next alert is created by the camera.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2455" class="postimage" alt="recent alert blank.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><span style="font-size:150%;line-height:116%">PTZ</span><div style="margin-left:3em"><br><strong class="text-strong">PTZ Controls are greyed out.</strong><ul><li>There is no such thing as PTZ controls when viewing a group of cameras, i.e. group view.</li><li>Camera settings -&gt; PTZ tab.  Enable Pan/Tilt/Zoom etc. checkbox has to be selected.</li><li>Global settings -&gt; Users tab.  The user using the app has to have PTZ privileges.  PTZ/Control has to be checked.</li></ul><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2457" class="postimage" alt="mobile ui_group ptz.png" onclick="viewableArea(this);" /></dt></dl></div><br><br></div><span style="font-size:150%;line-height:116%">Motion Overlays</span><div style="margin-left:3em"><br><strong class="text-strong"><span style="text-decoration:underline">Motion overlays are not visible</span></strong><br>Go to the playback window for an alert.<br>Click the 3 dots button in the top right.<br>Video overlays are usually the BI timestamp but could have customizations based on the user.<br>Motion rectangles obviously show the motion overlays.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1711" class="postimage" alt="mobile article motion overlays.PNG" onclick="viewableArea(this);" /></dt></dl></div><br>Also, keep in mind, if you have <strong class="text-strong">Re-encode instead of D2D as your Record setting</strong>, Motion overlays are not recorded unless you have them turned on during Live view.  Camera settings -&gt; Trigger tab -&gt; Motion sensor.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1712" class="postimage" alt="mobile article motion settings.png" onclick="viewableArea(this);" /></dt></dl></div><br><br></div><span style="font-size:150%;line-height:116%">Cameras</span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: Camera streams no longer appear.</strong><br>If none of the cameras appear, <a href="viewtopic.php?f=27&amp;t=3035" class="postlink">see mobile apps troubleshooting framework</a>.<br><br><br><strong class="text-strong">Gotcha 2: Some cameras do not show live video</strong><br><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1598" class="postimage" alt="mobile no camera.png" onclick="viewableArea(this);" /></dt></dl></div><br>Fix1:<br>Highly unusual.  The most common reason is if the camera has no signal or lost signal.  See <a href="viewtopic.php?f=12&amp;t=2484" class="postlink">No Signal article</a> to troubleshoot.<br>Outside of the camera not connecting from the Console, the only other way this is possible is if webcasting for that camera was disabled.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1599" class="postimage" alt="webcast disabled.png" onclick="viewableArea(this);" /></dt></dl></div><br>Fix2:<br>The video pipeline: Camera feed -&gt; Decode -&gt; Encode -&gt;Mobile device live view.<br><br>Decode: Turn Decode on/off to see if video improves <br>Camera settings -&gt; Video tab.  Hardware decode = Default (On) / No (Off)<br><br>Camera feed:  See <a href="viewtopic.php?f=11&amp;t=2598" class="postlink">Camera settings article</a> on optimal encoding settings on a camera.<br><br><br><br><strong class="text-strong">Gotcha 3: Cameras do not show up on the phone</strong><br><br>If cameras are visible on the console but do not show up on the mobile apps, there must be a permissions issue.<br><br>In the console, did you make the camera hidden?<br>FYI, we're trying to move away from hidden cameras because it often leads to confusion.<br><a href="viewtopic.php?f=13&amp;t=2628#Pro%20tips" class="postlink">See 5.5 Release notes for details</a>.<br><br>Otherwise the user account used to login to the phone app does not have permission to access the camera.<br>Double check your user settings.  Global settings -&gt; User tab.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1976" class="postimage" alt="mobile_camera groups.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><span style="font-size:150%;line-height:116%">Alerts list</span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1:  Missing alerts</strong><br><br>The Alerts tab in the mobile app should have the identical listing as the Alerts list in the Console.<br>If you notice differences (rare occasions)<br><br><strong class="text-strong">Confirmed alerts</strong><br>The mobile apps ONLY show Confirmed alerts.  Know the difference between Confirmed alerts and Cancelled alerts.  Confirmed alerts meet all the restrictions beyond the Trigger tab.  This includes <strong class="text-strong">Artificial Intelligence</strong>, if enabled, the <strong class="text-strong">Trigger sources and zones</strong> restrictions in the Alerts tab and any other conditions specified in the Alerts tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2485" class="postimage" alt="database_confirmed alerts.png" onclick="viewableArea(this);" /></dt></dl></div><br>For example, a user can unselect <strong class="text-strong">Hide cancelled alerts on timeline and 'all alerts'</strong>.  Camera settings -&gt; AI dialog.  If a user does so, cancelled alerts due to AI will appear in the Alerts list in the console.  However, the mobile app will NOT show cancelled alerts.  This is one example where the Alerts list on the console may differ from the Alerts list on the mobile app.<br><br><br><strong class="text-strong">User permissions</strong><br>First confirm the username for login at the console is the same as the username used on the mobile device.  For example, if you access the console via local_console and the mobile app with a user login, the user privileges may very well be different.<br><br>Does the user that logged into the mobile device have access to the camera?<br>In the cameras tab, is the camera listed?  Can you see the live view? <br>If not, check user settings.  Global settings -&gt; Users tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2487" class="postimage" alt="alert map_camera groups.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">Hidden cameras</strong><br>Hidden cameras are not visible on remote devices in general.  They are only visible to admin accounts on remote devices.  Similar to user permissions issue (above), a non-admin user will not see alerts associated with hidden cameras.  However, if an admin account is used to access the console, the alerts from the hidden cameras will still be listed.<br><br><a href="viewtopic.php?f=13&amp;t=2628#Pro%20tips" class="postlink">One of the motivations for the 5.5 release of Dynamic Group Layout</a> was to do away with the confusion associated with hidden cameras.<br><br><br></div><span style="font-size:150%;line-height:116%">Instability</span><div style="margin-left:3em"><br><strong class="text-strong">Gotcha 1: Ad blockers</strong><br><a href="viewtopic.php?f=20&amp;t=2539#Gotcha%203" class="postlink">See Ad blockers gotcha</a>.</div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Mon Aug 09, 2021 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-04-06T00:13:33+00:00</updated>

		<published>2021-04-06T00:13:33+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=8635#p8635</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=8635#p8635"/>
		<title type="html"><![CDATA[Remote Access • Mobile Devices - Setup]]></title>

					<category term="Remote Access" scheme="https://blueirissoftware.com/forum/viewforum.php?f=19" label="Remote Access"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=8635#p8635"><![CDATA[
<span style="font-size:150%;line-height:116%">Introduction</span><div style="margin-left:3em"><br>This article walks you through connecting your iOS/Android devices (phones, tablets) to your Blue Iris server.  It walks through all the dependencies and potential pitfalls when trying to setup your device.<br><br>If you prefer to watch the webinar associated with this article, checkout the <a href="https://youtu.be/TvGmp80N4eA" class="postlink">Mobile Devices and Apps webinar</a>.<br><br>If you are on an Android device, the <a href="viewtopic.php?f=4&amp;t=2093" class="postlink">Android gotchas article</a> also has information the may help you self-correct the issue.<br><br>The <a href="viewtopic.php?f=12&amp;t=2519" class="postlink">Mobile Gotchas</a> article is a list of past learnings from tickets.  Good to review before creating a ticket.<br><br><br><br></div><span style="font-size:150%;line-height:116%"><a name="Networking">Networking</a></span><div style="margin-left:3em"><br>There is no way for the mobile app to communicate with the Blue Iris server unless you setup your network to do so.  <br>The <a href="viewtopic.php?f=12&amp;t=2539" class="postlink">Networking - Remote Access article</a> will walk you through setting up the network correctly.<br><br><br></div> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_exclaim.gif" width="15" height="17" alt=":!:" title="Exclamation"> Checkpoint: The BI server is setup correctly.  The network is setup correctly.<br><br><br><br><span style="font-size:150%;line-height:116%"><a name="Mobile app">Mobile app</a></span><div style="margin-left:3em"> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> The below sections are about setting up the mobile app to connect to the BI server.  This section has three main sections.<div style="margin-left:3em"><br>Server settings:  Settings needed for the mobile app to be able to connect to any server.<br>Network connectivity:  Based on server settings, can the app connect to the server.  If not, how to troubleshoot.<br>App settings: All the settings on the mobile app that allows you to customize your user experience.<br><br><br></div><span style="font-size:150%;line-height:116%"><a name="Server settings">Server settings</a></span><div style="margin-left:3em"><br><strong class="text-strong">Server settings - Wizard</strong><br>This section explains setting up the mobile app using the wizard.  <strong class="text-strong">Always best to use the Wizard the first time because the wizard sets up the app but also sets up the right permissions for the app on your phone.</strong><div style="margin-left:3em"><br>This section is about the <strong class="text-strong">Add a new server</strong> button / dialog so the mobile app can connect to the BI server.<br><br>Easiest way to setup your phone settings to connect and work well with the BI App is to use the Wizard within the <strong class="text-strong">Add New Server</strong> function. <br> FYI, the BI Mobile App can connect to multiple servers.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1190" class="postimage" alt="Add new server.PNG" onclick="viewableArea(this);" /></dt></dl></div><br><br><strong class="text-strong">The iOS Server Setup Wizard (helps configure iOS device settings)</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1200" class="postimage" alt="ios phone settings.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">The Android Server Setup Wizard (helps configure Android device settings)</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1201" class="postimage" alt="android phone settings.png" onclick="viewableArea(this);" /></dt></dl></div><br><br>The final step is to Scan the QR Code.  Where is the QR Code?<br>The QR Code is located in one of the last pages in the Remote Access Wizard. (see below)<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1094" class="postimage" alt="QR Code.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><strong class="text-strong">Server settings - Manual</strong><div style="margin-left:3em"><br>FYI, you can choose to bypass the Server Wizard and go directly to the server setup page.  <strong class="text-strong">Keep in mind the setup page only configures the settings needed to connect the mobile app to the BI server.  Users should always go through the Wizard at least once so the mobile app has the correct phone privileges to work correctly.  For example, you may need to allow the application to use your phone's location services if and when you activate geo-fencing.  Privileges on the phone can only be set in phone Settings (manually) or through the Server Wizard.</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1174" class="postimage" alt="iOS manual setup.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong"><a name="Lookup key">Lookup key</a> (iOS) / Get IPS (Android)</strong><br>The Lookup key / Get IPS key is great for having BI populate your LAN / WAN address for you.<br>It helps prevent fat fingering the wrong values.<br>It also helps when you have an ISP provider that changes your WAN address a lot.<br><br>The Lookup key can be your best friend.  However, for it to work, you have to enable the functionality on the BI server.  On by default.<br><strong class="text-strong">Register IP address to assist with client app connections</strong>.  Global settings -&gt; About tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2024" class="postimage" alt="mobile device_register ip.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><strong class="text-strong">Http vs Https</strong><div style="margin-left:3em"><br>If you decided to add encryption, make sure to select https where appropriate.  Revisit <a href="viewtopic.php?f=20&amp;t=2539#Network%20setup" class="postlink">Web server settings section</a> if stuck.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2530" class="postimage" alt="networking_mobile app settings.png" onclick="viewableArea(this);" /></dt></dl></div><br></div></div> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_exclaim.gif" width="15" height="17" alt=":!:" title="Exclamation"> At this point, the mobile app should be setup.  Time to connect to the server!<br><br><br><span style="font-size:150%;line-height:116%"><a name="Network connectivity">Network connectivity</a></span><br><br> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> This section helps you connect the mobile app to the BI server.<br>Update to the latest version or the latest stable version of the BI server software.<br>Features/functionality on the mobile app are not guaranteed to run with older versions of the server.<br><div style="margin-left:3em"><br><strong class="text-strong">LAN test</strong><br>Try connecting the mobile app to the server from the LAN.  Hit save in Server settings page (if not done so already) -&gt; Connect.<br><br>If successful, great!  You have confirmed your mobile device has access to your BI server (license key, username, password, LAN address are all entered correctly) and you have confirmed at least some of the network requirements have been met like the BI web server is running and accessible from the LAN.  You can scroll down to the WAN test.<div style="margin-left:3em"><br>If the mobile app spins after hitting the connect button, the app cannot talk to the BI server.<br><br><strong class="text-strong">Mobile device permissions</strong><br>Global settings -&gt; Mobile devices tab<br>If the mobile app connects successfully to your server, your device will be listed in the <strong class="text-strong">Global settings -&gt; Mobile Devices</strong> tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1230" class="postimage" alt="push enabled.PNG" onclick="viewableArea(this);" /></dt></dl></div><br>If your device is NOT listed, then the mobile app cannot register (i.e. talk) with the BI server.  <div style="margin-left:3em"><br><strong class="text-strong">Permissions</strong><br>You first need to confirm correct user permissions for the user logging into the mobile app.<br>You also need to confirm the mobile device has access to the server.<br><a href="viewtopic.php?f=24&amp;t=2943" class="postlink">See permissions article</a>.<br><br></div><strong class="text-strong">Network</strong><br>If you have other mobile devices that do connect to the server, then obviously the network must be fine and you can skip this section.<div style="margin-left:3em"><strong class="text-strong"><a href="viewtopic.php?f=20&amp;t=2539#Remote%20device%20tests" class="postlink">Device test</a></strong><br>Use the UI3 interface to confirm whether the network and BI server are working correctly.<br><br></div></div><strong class="text-strong">WAN test</strong><br>Now you can test whether the network is setup correctly for remote access.<div style="margin-left:3em"><ul><li>Logout of mobile app.  Disconnect mobile phone from LAN/Wifi, i.e. use your cellular network.</li><li>Try re-connecting app to server.  If successful, confirmed remote access.</li><li>If a problem, confirm WAN address is correct (not LAN) in the Server settings.</li></ul> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> If the UI3 device tests above passed, the primary reason the mobile app cannot connect but the mobile browser can connect is security settings.<br><br><strong class="text-strong">Android devices</strong><br>Self signed certs are no longer allowed within Android, so users will need to get a properly signed certificate in order to leverage HTTPS connections. See TLS section of <a href="viewtopic.php?f=19&amp;t=2805#TLS" class="postlink">Android gotchas article</a> for details.<br><br><strong class="text-strong">Server settings</strong><br>If you enabled encryption via STunnel or NGROK, you need to choose the correct LAN/WAN protocol, i.e. http or https.<br><br><strong class="text-strong">Network</strong><br>Revisit <a href="viewtopic.php?f=20&amp;t=2539" class="postlink">Networking article</a> and your network setup.<br>Review <a href="viewtopic.php?f=20&amp;t=2955" class="postlink">Networking Gotchas article</a> and try to self-correct.  <br><br><strong class="text-strong">Web server advanced</strong><br>Review the Web Server Advanced dialog.  Make sure the mobile device is not blocked via the IP address.<br><br><strong class="text-strong">Encoding settings</strong><br>If the web browser works fine on the WAN but the mobile app does not, the biggest difference between the browser and the app is the media player used to play the video.  The <a href="viewtopic.php?f=19&amp;t=2088#Mobile%20apps" class="postlink">mobile apps section</a> explains generally good streaming settings for the LAN/WAN.<br><br></div> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_exclaim.gif" width="15" height="17" alt=":!:" title="Exclamation"> At this point the Mobile app and your BI server can talk to each other.  <br><br><strong class="text-strong">Final tests</strong><br><div style="margin-left:3em"><br><strong class="text-strong">User permissions</strong><br>If you can connect to the server, good time to confirm you have access to the appropriate camera groups.  Revisit <strong class="text-strong">Camera groups section</strong> in the <a href="viewtopic.php?f=24&amp;t=2943#Users%20tab" class="postlink">Permissions article -&gt; Users tab section</a> if the mobile app does not have access to the correct cameras.<br><br><strong class="text-strong">Camera streams</strong><br>This is a good time to confirm all your cameras are streaming well (no choppy video) on LAN / WAN.  If not, <a href="viewtopic.php?f=19&amp;t=2088#Mobile%20apps" class="postlink">adjust your streams</a>.<br><br></div></div><span style="font-size:150%;line-height:116%"><a name="App Settings">App Settings</a></span><br>Now you can play with all the mobile app settings to get the experience that you want.  Run through the app functionality and make sure everything is working.  <div style="margin-left:3em"><br>The App Settings section is about all the app settings.<br>Home tab -&gt; Gear icon.<br>These settings need to be set correctly so the app meets your needs.<br><br>Most of the setting descriptions are intuitive or can be understood by simply turning them on/off.  Below I highlight the ones that raise tickets and cause confusion.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1202" class="postimage" alt="ios settings explained 1.png" onclick="viewableArea(this);" /></dt></dl></div><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1171" class="postimage" alt="ios settings explained 2.png" onclick="viewableArea(this);" /></dt></dl></div><br><span style="font-size:125%;line-height:116%"><a name="Camera settings">Camera settings</a></span><br><br>In addition to App settings, you also have access to camera settings.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1107" class="postimage" alt="camera settings.png" onclick="viewableArea(this);" /></dt></dl></div>Mapping:<ul><li>Schedule : Camera settings -&gt; Schedule -&gt; Override global schedule for this camera</li><li>PTZ preset cycle : Auto-cycle patrol</li><li>PTZ event schedule : Camera settings -&gt; Schedule -&gt; Event schedule</li><li>DIO output 1 : Turn first output to on/off</li></ul><br><span style="font-size:125%;line-height:116%">Blue badges</span><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1106" class="postimage" alt="blue-badge-explained_optimized.png" onclick="viewableArea(this);" /></dt></dl></div><br></div></div><span style="font-size:150%;line-height:116%"><a name="Next steps">Next steps</a></span><div style="margin-left:3em"><br>See <a href="viewtopic.php?f=12&amp;t=2519" class="postlink">Mobile Gotchas article</a> before submitting a ticket.<br><br><strong class="text-strong">Mobile app - <a name="Debug logs">Debug logs</a></strong><br>Support sometimes needs to know what versions of the software are running (server &amp; app), the make/model of the phone and the debug logs.<br>Follow steps below when providing the logs.<ol style="list-style-type:decimal"><li>Go through steps to reproduce the issue.</li>  <li>After the issue occurs, <strong class="text-strong">send the debug log to YOURSELF</strong>.  ? -&gt; Debug log.  The debug log will provide error details, if any.  <br>After receiving the email, copy/paste the body of the email into a txt file.<br>Create/Reply to the support ticket <strong class="text-strong">by attaching the txt file</strong>.  The logs can be quite large.  A file attachment is preferred because of the length of debug log.</li><li>For iOS users only: Send a support info email from the mobile app as well.  ?-&gt; Send feedback to Support.  <strong class="text-strong">Send the email to YOURSELF, not SUPPORT</strong>.  This will clarify the software version you are currently running.  The Android app already provides the support info with the debug log.  iOS will do so shortly.  <strong class="text-strong">In the interim, send the feedback email to YOURSELF, not support</strong>.  Once you receive the email, copy / paste body as a reply to the support email so all the information remains together.  This information is much smaller then the debug logs so pasting to body of support email is fine.</li></ol><strong class="text-strong">Optional video:</strong>  If hard to describe, a <a href="viewtopic.php?f=27&amp;t=3051" class="postlink">video exhibiting the problem</a> is ideal.  <br><br><strong class="text-strong">Optional temp login:</strong>  A temporary login to reproduce the issue from our end is always helpful.  For privacy reasons, many users set the account to only have access to one or two public facing cameras such as the front door / driveway.</div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Tue Apr 06, 2021 12:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-02-26T22:17:33+00:00</updated>

		<published>2021-02-26T22:17:33+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11079#p11079</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11079#p11079"/>
		<title type="html"><![CDATA[Remote Access • Android 3.0 Gotchas]]></title>

					<category term="Remote Access" scheme="https://blueirissoftware.com/forum/viewforum.php?f=19" label="Remote Access"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11079#p11079"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br>This article is from BI support in order get known issues and fixes to the community as soon as possible.<br><br>We did a complete refresh of the Android app on Feb. 12, 2021, starting with version 3.0.14.  We appreciate all feedback and are vigilant in incorporating the feedback and bug fixes into the product asap.<br><br>Never a bad idea to reset the phone and the app: delete data, cache, reinstall the app and see if functionality returns or issues goes away.<br><br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Known Issues</strong></span><br><br><strong class="text-strong"><span style="text-decoration:underline">Override Do not Disturb for BI app notifications.</span></strong><div style="margin-left:3em">Some users prefer to have their Do Not Disturb (DnD) settings overridden by the BI app, i.e. if a BI alert happens late at night, users still want to be notified.<br><br>The Android settings that allow you to override DnD will only apply to the "default" notification sound.   We cannot support it when using custom notification sounds, as each notification category can only have one custom sound, where our system allows multiple custom sounds.   This is a limitation of Android.<br><br>Users that need to override DnD should use the default notification sound.<br><br><br></div><strong class="text-strong"><a name="Geofencing">Geofencing</a></strong><div style="margin-left:3em"><br><strong class="text-strong"><span style="text-decoration:underline">Below is a list of settings that may or may not apply to your phone that could affect geo-fencing accuracy.</span></strong><br><ul><li>Make sure battery optimization is off.</li><li><strong class="text-strong">WiFi must be turned on.</strong> It may seem weird, but the low power location management that Geofencing uses is actually primarily based off distances from WiFi signals.</li><li>Go to your device's Settings, navigate to your Location Settings.  Make sure that your phone's <strong class="text-strong">Location is turned on</strong> and also in <strong class="text-strong">High Accuracy Mode</strong>.</li><li>Make sure that your device has given the app Location Permission (on Android 10 and higher, you will need to give location permission <strong class="text-strong">"All the time"</strong>)</li><li><strong class="text-strong">Newer devices put applications to sleep if they haven't been opened in a while.</strong>  It is difficult to determine if your device has a setting for this or not.  You will have to look through your phone settings to see.  For example, the latest Samsung devices use the Smart Manager to put our app to sleep.  To add our app to the unmonitored list on a Samsung, go to Settings -&gt; Battery -&gt; Unmonitored Apps -&gt; then add Simple In/Out to the list.</li><li>The phone <strong class="text-strong">must have mobile data</strong>.  Geofences will not work without an internet connection.</li><li>The phone <strong class="text-strong">must NOT be in Airplane Mode</strong>.  Airplane Mode will disable both WIFI and Location.</li><li><strong class="text-strong">Avoid using 'Power Saving Mode'</strong> while using Geofences.  The Geofences will be a lot less consistent while Power Saving Mode is turned on (as it will automatically lower your location accuracy).</li><li><strong class="text-strong">Avoid using 'Task Killer' apps on your phone</strong>.  Task killer apps can potentially kill the background processes that monitor the Geofences.  Any application that has the ability to kill, stop, or sleep our application may prevent Geofences from working.</li></ul>User feedback regarding geo-fencing on Android devices:<ul><li>Is there a problem with Samsung devices and the geofence function, because I have never got it to work well, this is my third Samsung phone. <br> When I had a iphone 6 there was no problem with geofence.<br><br>My Blueiris application has access to the location service all the time.  The location (lat/lon) in BlueIris server setting is set up to where I live.  When I check my location in a GPS tool on the phone it is within the range to be inside, but it still says I am outside.  I have tried to reset the Geofence location in the app.  Removed and added my device in Blueiris.  Changed the Lat/Lon settings in the app.<br><br>Also, If I set the profile to be inside anyway it keeps the profile but when I check the device status it says I am outside of the Geofence.<br><br><strong class="text-strong">Newer versions of Android have more aggressive battery saving measures.   This can affect the frequency at which location updates are triggered. Try disabling any battery optimizations for the app.  It's also important that the app's location permission is set to "allow all the time" and not "allow when app is open".<br><br>Nothing more we can do on the app side.  We react to the location and if the device reports a geolocation outside of the geofence, a transition is triggered.  Expanding the radius may help.<br><br>If geo-fence is not working for you, BI provides alternative solutions, albeit less convenient.  For example, you could simply use the app as a remote control device.  When you walk into the house or pull into the garage, you could manually switch the profile and vice versa when leaving.<br><br>Other users use the shield icon, which mimics the arm/disarm feature that you see on home surveillance solutions like ADT.<br></strong></li></ul><br><br>Geofence Gotcha1:  You allowed the BI app location services yet the App continues to state permission denied.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2061" class="postimage" alt="android gotchas_geo gotcha1.png" onclick="viewableArea(this);" /></dt></dl></div>The user needs to figure out how to "allow all the time" with their particular Android device.   An uninstall / reinstall should allow them to go through the initial steps again.<br><br><br></div><strong class="text-strong"><span style="text-decoration:underline">3.0.22: Notification settings not working.  Sound alerts keep playing the default sound only</span></strong><div style="margin-left:3em">In Settings, Users can now adjust the sound, LED and vibrate notifications.<br>If you want to go back to default settings, simply select "Choose Default Notification Options".<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2060" class="postimage" alt="notification settings.jpg" onclick="viewableArea(this);" /></dt></dl></div><br>Fix: The user needs to figure out how to "allow all the time" with their particular Android device.   An uninstall / reinstall should allow them to go through the initial steps again.<br><br><br></div><strong class="text-strong"><span style="text-decoration:underline">Can I roll back to the previous version?</span></strong><div style="margin-left:3em">It may be possible to continue to run the old app which Google already approved, however we do not have this APK for distribution.  We are very responsive to feedback and fix issues asap.  <br><br><br></div><strong class="text-strong"><span style="text-decoration:underline">What happened to the cast icon?</span></strong><div style="margin-left:3em">Chromecast sends the video stream to a Cast-enabled device.  It's still there, but Android seems to have tighter restrictions similar to SSL certificates as described below.<br><br>The Chromecast button will show up in the top bar for a video if:<ol style="list-style-type:decimal"><li>One of your two connections (LAN/WAN) is HTTPS.</li><li>The video you're looking to cast has audio.</li><li>The video you're looking to cast is not multi-cam.</li><li>The video is a live stream.</li></ol><br></div><strong class="text-strong"><span style="text-decoration:underline">In the Camera tab, when I view a group, I cannot select a camera in the group. To view the desired camera, I must scroll through the list and select it.</span></strong><div style="margin-left:3em">Longpress camera in group to open camera</div><br><br><strong class="text-strong"><span style="text-decoration:underline">SSL certificates / <a name="TLS">TLS</a></span></strong><div style="margin-left:3em"><br>Are you using TLS or certificates?<br><br><strong class="text-strong">Self signed certs are no longer allowed within Android, so users will need to get a properly signed certificate in order to leverage HTTPS connections.</strong>  <br><br>You may want to reconsider whether encryption is needed for your cameras.  Blue Iris DOES already encrypt login credentials.  Your password and session are secure WITHOUT using HTTPS or Stunnel.  The video itself is ENCODED only, so it may be POSSIBLE for a malicious ISP or government agency to spy on your video, but it's safe from general "hacking".  You can turn off Stunnel on the Settings/Web server page in the PC and the issue will resolve.  <br><br>If you really want full HTTPS security on the app, please consider using NGROK instead, it's just much more straightforward than dealing with Stunnel and certificates etc.<br><br>However, if you want to proceed with Stunnel, continue reading.<br><br>Others users have stated they are using a public key.  <strong class="text-strong">However, Android decides which CA authorities are valid, not BI.  There is nothing we can do from the app side to force Android to trust a user's CA.  Either they do or they don't.</strong>  In fact, we were removed from the Play Store for ignoring errors and forcing Android to accept that connection.  More details here.  <a href="https://developer.android.com/training/articles/security-ssl.html#CommonProblems" class="postlink">https://developer.android.com/training/ ... onProblems</a><br><br>The Android team is using a PositiveSSL cert from Namecheap.com.  Other CA Authorities include ZeroSSL or GoDaddy.  The SSL and HTTPS section in Help also has information regarding using SSL with a domain in order to work with Android.<br><br>For the java exception, "CertPathValidatorException: Trust anchor for certification path not found.", per the docs, this is caused by:<br><ol style="list-style-type:decimal"><li>Using an unknown certificate authority and/or a self signed cert</li><li>A missing intermediate certificate authority.</li></ol><strong class="text-strong">Missing Intermediate Certificates Authority</strong><br>Google says the solution is "Configure the server to include the intermediate CA in the server chain. Most CAs provide documentation on how to do this for all common web servers."<br><br><span style="text-decoration:underline"><em class="text-italics">User 1 example: namecheap.com (Sectigo)</em></span><br>From another user, who got his certificate from Sectigo (previously Comodo) through namecheap.com (as well).  Some slight changes to the STunnel config as seen below (obfuscated):<br>[blue-iris]<br>accept = ##<br>connect = xxx.xxx.xxx.xxx:##<br>CAfile = certname.ca-bundle    (had to add this line for the intermediary stuff I think)<br>cert = certname.pfx<br><br><br><span style="text-decoration:underline"><em class="text-italics">User 2 example: pfSense CA</em></span><br>Simply created a new intermediate CA (on same pfSense install) signed by my original pfSense CA and then from that intermediate CA created a new Server Certificate for my BlueIris stunnel config.<br><br>I created a new .pem for the new cert and replaced the existing entry in my stunnel config, so I only needed to change the cert entry:<br><br>[blueiris]<br>accept = 8443<br>connect = 127.0.0.1:9443<br>cert = Iris10IntermediateCA.pem<br><br>The new Iris10IntermediateCA.pem is formatted just the same as the original:<div class="codebox"><p>Code: </p><pre><code>-----BEGIN CERTIFICATE-----MIIERzCC……lW9xMlNg==-----END CERTIFICATE----------BEGIN PRIVATE KEY-----MIIEvwIB……BGDO7i4ng==-----END PRIVATE KEY-----</code></pre></div>I also needed to trust (i.e. install) the new intermediate CA certificate onto my Android phone using the system settings UI flow. I’d have to do the same for every other Android phone/tablet we use with the BI app.<br><br><br><em class="text-italics"><span style="text-decoration:underline">User 3 example: Let's encrypt service</span></em><br>I followed the instructions from letsencrypt which consists of:<ul><li>Download and install the certbot client</li><li>On the BI machine run windows cmd : $ certbot certonly— standalone.  It asks several inputs like domain name etc.  Follow the process and this will generate 2 files privKey1.pem and fullchain1.pem</li><li>Declare the 2 generated files in stunnel config file :<br>cert=/etc/letsencrypt/live/example.com/fullchain1.pem<br>key=/etc/letsencrypt/live/example.com/privkey1.pem</li><li>Restart Stunnel and it works well.</li></ul>Lets encrypt is free but the certificate will expire after 3 months.<br>Automatic renewal is also possible to setup. I didn't do it at this stage.<br><br>Another Let's encrypt user stated:<br><br>Thank you, I read the page (this article) and found out all I need is to put the certificate and private key in separate files instead of one pem file.<br><br><br><em class="text-italics"><span style="text-decoration:underline">User 4 example: ZeroSSL service</span></em><ul><li>Use ZeroSSL to generate a CA-signed certificate. Certificates with 3-month durations are free.</li><li>Download the certificate from ZeroSSL. This is a ZIP file containing the following files:<div class="codebox"><p>Code: </p><pre><code>ca_bundle.crtcertificate.crtprivate.key</code></pre></div></li><li>Rename private.key to key.pem and move it into the stunnel configuration folder (default location is C:\Program Files (x86)\stunnel\config).</li><li>It looks like Android requires the full certificate chain, including the root certificate, which is not provided by ZeroSSL by default. Their website's help section says the following: "If you need the full chain including the root certificate we recommend you use a tool like whatsmychaincert.com to download it". So, go to <a href="https://whatsmychaincert.com" class="postlink">https://whatsmychaincert.com</a>, enter your server's public IP address, and download the file containing the full chain.</li><li>Rename this file to <strong class="text-strong">cert.pem</strong> and move it into the stunnel config folder.</li><li>Edit the Blue Iris section of the stunnel config file to include both files as follows:<div class="codebox"><p>Code: </p><pre><code>cert = cert.pemkey = key.pem</code></pre></div></li><li>Restart stunnel and the Android app should connect successfully via HTTPS.</li></ul><em class="text-italics"><span style="text-decoration:underline">DDNS &amp; STunnel Gotcha</span></em><br>Since I was using a DDNS to point to my host that I had to use the DDNS rather than the external IP.  STUNNEL will only recognize the DDSN name and not the external IP.<br><br><em class="text-italics"><span style="text-decoration:underline">User 5 example: No-IP DDNS + Let's Encrypt ssl</span></em><br>stunnel.pem file was composed of my key file and my crt file. It also needed the chain file appended to the end of it. <br>So my stunnel config uses stunnel.pem as the cert file.<br><br>Not working: mydomain-key.pem + mydomain-crt.pem concatenated into stunnel.pem<br>Working: mydomain-key.pem + mydomina-crt.pem + mydomain-chain.pem concatenated into stunnel.pem<br><br><br><em class="text-italics"><span style="text-decoration:underline">Troubleshooting Certificates</span></em><br><br>If the above examples do not help resolve your certificate issue, this user was kind enough to document how he resolved the issue.<br><blockquote class="uncited"><div>I went to <a href="https://www.geocerts.com/ssl-checker" class="postlink">https://www.geocerts.com/ssl-checker</a> and put in my domain name <a href="http://www.cohovideofeed.com" class="postlink">www.cohovideofeed.com</a>.<br>That site will tell you the problem.<br>I got the error:<br><br>A valid Root CA Certificate could not be located, the certificate will likely display browser warnings.<br><br>Had to add Root certificate and it had to be in the correct order.<br><br><span style="text-decoration:underline">Chaining certificates correctly</span><br><br>Some web servers need all SSL/TLS (root, intermediate and end-user) certificates in <strong class="text-strong">one file</strong> but CAs normally send you all their certificates separated, so you need to concatenate them manually. But pay attention while concatenating them because their order is important!<br>The correct order of a chained certificate is:<br><br>1.  end-user certificate<br>2.  all intermediate certificates<br>3.  root certificate<br><br>I also had to add these lines:<br>sslVersionMax = TLSv1.2<br>sslVersion = TLSv1.2<br><br>Works great now</div></blockquote></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Fri Feb 26, 2021 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-02-24T00:11:37+00:00</updated>

		<published>2021-02-24T00:11:37+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=8142#p8142</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=8142#p8142"/>
		<title type="html"><![CDATA[Remote Access • Web server &amp; Webcasting]]></title>

					<category term="Remote Access" scheme="https://blueirissoftware.com/forum/viewforum.php?f=19" label="Remote Access"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=8142#p8142"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br>Besides being a Video Management System, Blue Iris is also a Streaming Server.  This allows users to share their camera feeds externally.  The best way to understand how to leverage BI's streaming services is via the following use cases.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1500" class="postimage" alt="BI webcasting.png" onclick="viewableArea(this);" /></dt></dl></div><br><br><em class="text-italics">Webcasting (video streaming) Pipeline</em><br><br>Standard streaming pipeline: IP Cameras -&gt; Media Server -&gt; Endpoint<br><ul><li>IP Cameras<br>The process starts with a video capture device otherwise known as a IP camera.  The camera is dedicated hardware that usually captures 15-30 frames per second.<br>IP Cameras are high performance computers which is why they are so expensive.  <strong class="text-strong">Compression</strong> algorithms are responsible for shrinking each frame to manageable chunks which can be transported over the internet.  H.264 and H.265 are standard compression algorithms supported by Blue Iris.<br><strong class="text-strong">Packaging</strong> involves bundling all the compressed frames into manageable sizes that can be transported over the network.  Think of packaging as grouping 1-3s of video frames into one chunk of data that is transported across the network.  HLS, MPEG DASH, RTMP and RTSP are all common protocols for video streaming.</li><li>Network: Responsible for moving the data from cameras to Blue Iris.</li><li>Blue Iris.  Media server + Video Management System<br>Blue Iris is also a media server.  Media servers can take streams in one format, for example RTSP from a camera and convert them to another format, for example, RTMP so that users can, for example, share their camera streams elsewhere such as YouTube.  Media servers are responsible for taking video/audio inputs and streaming the content to various endpoints.</li><li>Network</li><li>And the final destination is the endpoint playing the video, for example a browser on a laptop, a mobile device, a TV, a gaming device etc.</li></ul>In terms of the video pipeline as defined in the <a href="viewtopic.php?f=11&amp;t=2424" class="postlink">BI Streaming Overview article</a>:<br>Source -&gt; Decode -&gt; Encode -&gt; Endpoint<ul><li>IP Cameras = Source</li><li>Media server = Decode + Encode</li><li>Endpoint = Endpoint</li></ul><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Web server</strong></span><br><br>Global settings -&gt; Web server tab<div style="margin-left:3em"><br>Every time a user accesses BI via a remote endpoint (mobile app, web browser), a connection is made between the BI web server and the endpoint.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2258" class="postimage" alt="BI web server.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><strong class="text-strong">Web server streams</strong><br><br>Global settings -&gt; Web server tab -&gt; Advanced  <br><div style="margin-left:3em"><br>BI allows for <strong class="text-strong">three types of streams</strong> from the web server.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2257" class="postimage" alt="webserver streams.PNG" onclick="viewableArea(this);" /></dt></dl></div><br>Recommendations:<br>Streaming 0 profile: Leveraged by the UI3 endpoint.  I would leave these settings as default.<br>Streaming 1 profile: LAN.  Create a profile that works well in your LAN.  Since these endpoints only sit on the LAN, you may want to provide a richer user experience via higher resolution streams.<br>Streaming 2 profile: WAN.  Network bandwidth may be challenging on the WAN so you may want to make stream adjustments, e.g. trade-off resolution (small screen any way) for smooth video.<br>See mobile apps section below for some streaming recommendations.<br><br></div><strong class="text-strong">Web server encoding settings</strong><div style="margin-left:3em"><br>Global settings -&gt; Web server tab -&gt; Advanced -&gt; Configure button<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2259" class="postimage" alt="webserver encoding.PNG" onclick="viewableArea(this);" /></dt></dl></div><br><span style="text-decoration:underline">H.264 Encoding Settings</span><ul><li>H.264 video encoding</li><li><strong class="text-strong">Hardware acceleration:</strong> Usually set to No.  Many GPUs do a poor job of HA encoding which leads to streams that cannot be played by media players.  Best to leave off.</li><li><strong class="text-strong">Quality</strong>: Value from 0 - 100.  Lower the value, lower the quality.  The marginal difference in quality after a certain point is minimal.  For example, 100 does not produce an image that is twice the quality of a 50 setting.  In most cases, quality = 50 is plenty good.</li><li><strong class="text-strong">Rate control</strong>:  If selected, you are choosing a Constant Bit Rate (CBR).  Choose if you have bandwidth concerns.  <br>If unchecked, you are using a Variable Bit Rate (VBR).</li><li>Frame type layout<br><strong class="text-strong">Maximum keyframe interval  (GOP)</strong>: 300<br><strong class="text-strong">Maximum B-frames between P-frames</strong>: 0 (only applies to Main profiles or above)</li><li><strong class="text-strong">Profiles</strong>: H.264 provides features that are encapsulated in profiles.<br><strong class="text-strong">Baseline</strong> restricts the encoder to certain basic features only.  Baseline can easily be played back on most devices.  Main and High add features on top of Baseline.  Baseline profiles were widely used for mobile devices.  However, now more and more mobile devices support Main or High profiles.<br><strong class="text-strong">Main</strong>:  B frames (above) are only allowed in the Main profile or above.  They can be used to save on bandwidth but harder to decode.  Widely used for web streaming.<br><strong class="text-strong">High</strong> profile is often used in broadcasting.  Used on high definition TVs.  Also adopted by the Blu-ray disc storage format.</li><li><strong class="text-strong">Presets</strong>: Presets are a collection of options that will provide a certain encoding speed to compression ratio.  A slower preset will provide better compression.  This means that, for example, if you target a certain file size or constant bit rate, you will achieve better quality with a slower preset. Similarly, for constant quality encoding, you will simply save bitrate by choosing a slower preset.</li></ul><span style="text-decoration:underline">Audio encoding</span><ul><li>Audio: AAC or MP3</li><li>Bitrate (kbps): 192</li></ul><br></div><strong class="text-strong">Streaming formats</strong><div style="margin-left:3em"><br>BI support M-JPEG, H.264 and other formats.  The <strong class="text-strong">Http interface -&gt; Direct image and video requests</strong> section in the Help file has details.<br><br><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Use cases</strong></span><br><br><strong class="text-strong">UI3 web endpoint</strong><div style="margin-left:3em"><br>This is one of the most common ways to access cameras remotely from a web browser (laptop) or mobile browser (phone).<br>Hit the Help button from Global settings -&gt; Web server tab for details.<br><br><a href="https://youtu.be/HX0o29_JD_8" class="postlink">The Blue Iris Web Interface webinar</a> walks through the user interface and all its features/functionality.<br><a href="viewtopic.php?f=12&amp;t=2716" class="postlink">See Web Interface (UI3) gotchas article</a> for learnings from past tickets.<br><br><br><strong class="text-strong">Large screen TVs</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2316" class="postimage" alt="ui3 tv.png" onclick="viewableArea(this);" /></dt></dl></div><br>Many users are using TVs to display their cameras.  Since these devices are usually on the LAN, they want to take advantage of their high resolution screens with high resolution video streams, since they know their network can handle the load.<br><br>With UI3, it is easy to experiment with higher and higher resolutions to determine what works best with your monitor.  Simply choose different resolutions by using the gear icon in the lower right corner.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2317" class="postimage" alt="web server_tv gear icon.png" onclick="viewableArea(this);" /></dt></dl></div><br><br><strong class="text-strong">One final comment.  If you have a monitor or TV that does NOT have internet connectivity a popular solution is to purchase an Amazon Firestick and run UI3 from there to the monitor.</strong>  Firestick + Silk browser + UI3 interface is the goto solution for many resellers when trying to display the cameras on a TV or monitor.<br><br><br><br></div><strong class="text-strong"><a name="Mobile apps">Mobile apps</a> (iOS / Android)</strong><br>The streams used by the mobile apps are set in Camera settings -&gt; Web server tab -&gt; Advanced page.  See <strong class="text-strong">Web server streams</strong> section above for details.  <strong class="text-strong">The default resolution for Streaming 0 is 720p.</strong>  <br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2546" class="postimage" alt="web server_default stream.png" onclick="viewableArea(this);" /></dt></dl></div><br>If the request from the app (720p default) is &lt;= the sub stream resolution, the sub stream is streamed.  Below are LAN/WAN suggestions that generally deliver smooth video based on higher/lower network bandwidth.<br><div style="margin-left:3em"><br><strong class="text-strong">LAN / WAN streaming profiles</strong><br><br>What's great about BI is it allows the ability to assign different streaming profiles for the LAN / WAN.  A common convention is to assign Profile 1 for LAN connections and Profile 2 for WAN connections.  <br><br>Video Pipeline: Camera video / feed -&gt; Decode -&gt; <strong class="text-strong">Encode</strong> -&gt; Endpoint (high resolution tablet / low resolution phone)<br><br>A tablet with a bigger screen and always connected to the LAN may have value in a higher resolution stream.  Being on the LAN, the network considerations are usually not as stringent either.<br><br>However, a WAN profile may entail a lower resolution stream.  Most WAN profiles are used by mobile phones with small screens.  Why unnecessarily send a stream with a high resolution that provides no additional value on a phone screen and also adds unnecessary load to the network and perhaps results in choppy video.<br><br><br><strong class="text-strong">LAN settings</strong><br><br>As stated above, according to our convention, LAN settings would be assigned to Streaming Profile 1<br><br>To get high resolution, smooth video, try the following settings for one of your web server video streams.<ul><li>Use variable bit rate instead of constant bit rate.  Unselect Rate control.  Crank up Quality value.  <strong class="text-strong">Gotcha:</strong> If network bandwidth too high, adjust.</li><li>Profile = high Uses more bells and whistles such as b-frames to optimize bandwidth while delivering quality.  <strong class="text-strong">Gotcha:</strong> If endpoint cannot decode, adjust.</li><li>Preset = veryfast.  Set to lowest to maximize quality.  <strong class="text-strong">Gotcha:</strong> If CPU utilization is high adjust.</li><li>Uncheck Resize output frame.  Send the full camera resolution to the device.  <strong class="text-strong">Gotcha:</strong> If network bandwidth spikes, adjust.  If the player at the endpoint starts to choke, adjust</li><li>b-frames are great for increasing quality and optimizing bandwidth.  <strong class="text-strong">Gotcha:</strong>  However, if you have a PTZ camera, b-frames can cause delays displaying the new view after a camera position changes.</li></ul><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2532" class="postimage" alt="web server_LAN settings.png" onclick="viewableArea(this);" /></dt></dl></div><br>Don't forget to choose the appropriate stream for the mobile app.  Below is a reminder on how to do so.<br>Home tab -&gt; Gear icon -&gt; LAN.  Profile 1 is the LAN stream.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2261" class="postimage" alt="ios settings 320.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">WAN settings</strong><br><br>The below settings generally provide a good user experience on mobile phones connected to the WAN (cellular network).<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2262" class="postimage" alt="encoder options.png" onclick="viewableArea(this);" /></dt></dl></div><br>Differences between WAN vs LAN:<ul><li>Switch from variable bit rate to constant bit rate to reduce network load.</li><li>Changed profile to superfast.  Trade quality for lower CPU load and processing time.</li><li>Resize frame.  Reduce resolution since stream is going to a small screen any way.</li></ul><br></div><strong class="text-strong">Multiple servers</strong><div style="margin-left:3em">Because BI is also a media server (RTSP server), you have the flexibility to pull video from one BI server to another.<br><br>Use case:  Enterprises with large deployments may have multiple servers because they have &gt;64 cameras.  However, they may want to pull video from one server to another.  Why?  Because suppose five cameras belong to a user group and 3 cameras reside on Server A and the other two reside on Server B.  In order to display all 5 cameras to the users belonging to this group, admins will pull the two cameras from Server B to Server A.  The admin can then create a camera group for the corresponding user group, thus providing one pane of glass for all the cameras belonging to the group.<br><br>In order to pull a camera from one server to another, first confirm Webcasting is enabled for the camera.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2263" class="postimage" alt="web server_webcast.png" onclick="viewableArea(this);" /></dt></dl></div><br>Attain the following information for the remote server:<ul><li>IP / Port of the web server</li><li>Username / password for a user that has access to the camera.</li><li>Pull camera or group stream<br>rtsp://ip:port/cam1 (camera)<br>rtsp://ip:port/groupname (group)</li></ul>In example below, I have a camera called ADF7.<br>I was testing locally so IP address was 127.0.0.1.  My web server is running on port 7000.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2264" class="postimage" alt="web server_rtsp feed.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><strong class="text-strong">Embed video in your website</strong><div style="margin-left:3em">Many users like to share a camera on their website.  Below are two code snippets showing how to do so.  <br>Change url to meet your environment<ul><li>server is a placeholder for the ip address or hostname of your BI server</li><li>The web server listens on port 81 by default.  Use the port you specified if different from 81.</li><li>ADF_Cameras is a placeholder for the camera name or camera group name in your server.</li></ul><strong class="text-strong">&lt;iframe&gt; tag</strong><br><div class="codebox"><p>Code: </p><pre><code>&lt;iframe src="http://server:81/livestream.htm?cam=ADF_Cameras&amp;audio=0" allowfullscreen="true" width="640" height="360" /&gt;</code></pre></div><strong class="text-strong">&lt;img src&gt; tag</strong><br><div class="codebox"><p>Code: </p><pre><code>&lt;img src="http://server:81/mjpg/ADF_Cameras/video.mjpg?q=50&amp;w=640" style="width: 640px; height: 360px" /&gt;</code></pre></div>livestream.htm is a web page that loads a video player and feeds it an HLS stream from Blue Iris.  This is the best thing to embed in an iframe if you want minimal user interface functionality.  This method adds several seconds of video delay though, making it not ideal for all use cases.<br><br>The page source of livestream.htm includes the usage details.  It takes different URL parameters than UI3.<br><br>livestream.htm supported URL parameters:<ul><li>cam=short: Select camera or group with [short] name</li><li>autoplay=0: Disables autoplay.</li><li>audio=1: Unmute at startup. Also disables autoplay.</li><li>mode=2: Hide video player controls</li><li>mode=3: Use browser's standard video player controls</li></ul>Two other considerations when embedding streams:<br><br>1.  Authentication must be dealt with, either by enabling anonymous access or by turning off secure login and embedding credentials in the URL.<br><br>2. If the web site is hosted with HTTPS, the link to embed a video stream must also use HTTPS which will mean setting up stunnel or a similar secure proxy in front of Blue Iris.<br><br><br></div><strong class="text-strong">Embed video in your website via RTSP.Live site</strong><div style="margin-left:3em">If the above is too complicated, you can also try the <a href="https://youtu.be/0hef3pvmSqY" class="postlink">RTSP.Live free service</a>.<br><br><br></div><strong class="text-strong">YouTube - Streaming</strong><div style="margin-left:3em"><br>Use case: Pushing Blue Iris live camera stream(s) to YouTube's media server via RTMP.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=983" class="postimage" alt="YouTube architecture.png" onclick="viewableArea(this);" /></dt></dl></div><br>YouTube provides URLs to connect to 3rd party software such as Blue Iris.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=980" class="postimage" alt="youtube setup.png" onclick="viewableArea(this);" /></dt></dl></div><br>BI setup is just as simple.  Camera settings -&gt; Webcast tab.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=981" class="postimage" alt="youtube BI settings.PNG" onclick="viewableArea(this);" /></dt></dl></div><br><em class="text-italics">You do need to supply the correct stream settings that will work with YouTube.</em><ul><li>Audio:  Set to AAC.  128 kbps</li><li>Max bitrate (kbps): 2048.  YouTube prefers 9500 kbps so go higher if network can support bandwidth.</li><li>Maximum keyframe interval (GOP): 60</li><li>Profile: main</li><li>Preset: superfast</li><li>Zero frame latency: Unchecked</li><li>Resize output frame width x height: Checked.  1280 x 720.  YouTube prefers 2560 x 1440 (double 1280 x 720) so go higher if network can support bandwidth and camera has the resolution.  No point increasing the resolution if your camera is 1 MP (1280 x 720).</li></ul>YouTube will provide Stream status feedback based off which, you can adjust BI settings further.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1031" class="postimage" alt="youtube stream feedback.png" onclick="viewableArea(this);" /></dt></dl></div><br></div><strong class="text-strong">Amazon Echo Show + Monocle</strong> Coming soon!<br><br><br><strong class="text-strong"><a name="Pro tip 1">Pro tip 1</a>: Leverage UI3 to help set optimal encoding settings on your mobile device</strong><div style="margin-left:3em"><br>Global settings -&gt; Web server tab -&gt; Advanced tab<br>Encoder profiles: &lt;streaming profile&gt; Configure button.<br><br>The encoder dialog box is a bit daunting.  What are good values for all those settings?<br>If like most, you are not well versed on encoder settings, use the UI3 interface for help!<br><br>The issue here is if you bring up a browser on your phone and go to the BI web interface, playback and live view work fine.  When doing the same through the app, the streaming is choppy, jittery etc.<ul><li>Test 1:  Need to make sure live stream and playback are first smooth on the BI Server.  Garbage in = Garbage out.</li><li>Test 2:  If you open a browser on the phone/tablet and go to the BI web interface (UI3), are the live view and playback a good experience.  If so, then you know the problem is not with the network.</li></ul>If you are still reading, then the problem probably means the player used by your device cannot handle the incoming stream well.  The short answer is to go to Global settings -&gt; Web server -&gt; Advanced -&gt; Encoder profiles (Choose Streaming 1 (LAN) or 2 (WAN)) -&gt; Configure dialog.  Use the below settings to start and see if they work.<br><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2313" class="postimage" alt="encoder options orig.png" onclick="viewableArea(this);" /></dt></dl></div><br>Below are the changes from the default settings:<ul><li>First, I turned on Constant Bit Rate (CBR).  This settings caps the amount of data going to the player at 1024 kbps.</li><li>Next, I reduced the resolution to 856 x 480.  You are streaming to a mobile device, so reducing the resolution will probably have no affect on your viewing experience.  I played with "Retain aspect ratio within frame".  On iOS devices, the setting seemed fine.  But I noticed instability and crashes on some Android devices.  It does not really change/help the user experience, so my conclusion was to just leave it off unless required for another reason.</li><li>Finally, I set Hardware encode = No.  The hardware encoding often will not play on mobile players.  Best to encode using BI software.</li></ul>Reference:  If you want a deeper understanding of the settings in the encoder dialog or how encoding generally works, a great reference article was created by IPVM titled <a href="https://ipvm.com/reports/h264-mjpeg-bandwidth-quality-test#:~:text=The%20main%20difference%20between%20H,manually%20%28ergo%20Motion%20JPEG%29." class="postlink">"H.264 vs MJPEG - Quality and Bandwidth Tested"</a>.  If you are not familiar with IPVM, they are a great resource for research and information regarding surveillance and security cameras.<br><br><em class="text-italics">So how did I choose the values for the bit rate and resolution?</em><br><br>I cheated and used the expertise of the BI development team!  If you click on the gear icon in UI3 (lower right), you can select any predefined resolution and hit the pencil button up top.  You then see the encoding settings for the selected resolution.  I just copied those values into the encoder dialog on the console.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2314" class="postimage" alt="ui3-streaming-settings-trick_smaller.png" onclick="viewableArea(this);" /></dt></dl></div><br>Once I made the stream adjustments, I went to the mobile app settings and chose the appropriate settings for my LAN and WAN connections.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2315" class="postimage" alt="video streaming gotcha smaller.png" onclick="viewableArea(this);" /></dt></dl></div></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Wed Feb 24, 2021 12:11 am</p><hr />
]]></content>
	</entry>
	</feed>
