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

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

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

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2022-01-16T23:18:12+00:00</updated>

		<published>2022-01-16T23:18:12+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=12124#p12124</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=12124#p12124"/>
		<title type="html"><![CDATA[NVR Connector]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=12124#p12124"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><div style="margin-left:3em"><br>Connecting NVR/DVR devices to BI is similar to connecting cameras.  The <a href="viewtopic.php?f=11&amp;t=2043" class="postlink">Camera connector article</a> has more details regarding the IP Config dialog if you are new to BI.<br><br><br><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">NVR / DVR Setup</strong></span><br><br><strong class="text-strong">Connecting NVR/DVR</strong><br>Connecting BI to your NVR or DVR is possible as well.  A common request from customers is they purchased a single-vendor solution at first but now are growing their surveillance system with different vendors.  They use BI to put all cameras under one management interface.<br><br>The following information is needed to connect a DVR/NVR to BI:<ul><li>Does the NVR allow access to their channels (camera streams) via RTSP or RTMP?</li><li>If so, what is the URI convention for the streams?  Check documentation.<br>Hikvision example: /Streaming/channels/301 = channel 3/ stream 1<br>Dahua example: /cam/realmonitor?channel=1&amp;subtype=0</li><li>What ports are used?<br>Http = 80 or other?<br>ONVIF = 80 or 8999 or other?<br>RTSP / RTMP = 554 or other?</li></ul>ONVIF makes connecting cameras easy.  However, finding ONVIF support on DVR/NVR systems are more rare, but does exist (see further below).  <br><br>Thus, connecting DVR/NVR systems typically require more research with vendor and vendor documentation.  This may be a good time to approach the camera vendor and ask is it possible to connect the camera channels from the NVR/DVR to 3rd party VMS systems using RTSP.  One user asked how to connect a camera to VLC. After much prying, the vendor finally gave up the information. Camera vendors would prefer you use their software and lock you in to their ecosystem.<br><br>Below is an example of connecting a Hikvision NVR.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2397" class="postimage" alt="Hikvision NVR.png" onclick="viewableArea(this);" /></dt></dl></div><br>The Hikvision convention is 101/102.  <br>101 = channel 1 (i.e. camera 1), stream 1 (i.e. main stream)<br>102 = channel 1, stream 2 (i.e. sub stream)<br><br>So connecting camera 2 from the Hikvision NVR would need the following settings: main stream = 201, sub stream = 202.<br>Same IP address, username and password.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2398" class="postimage" alt="NVR channel 2.png" onclick="viewableArea(this);" /></dt></dl></div><br>You would do similarly to add camera 3, 4 etc.<br>To get the Hikvision NVR connected, we had to research through the documentation (or reach out to vendor).  Only through some investigation were we able to correctly identify the RTSP URI stream (/Streaming/channels/101 etc) and the RTSP port = 8554.<br><br>If you are still stuck, we would be happy to do some remote testing.  Could you please send a WAN address for this camera for testing purposes with necessary ports, usually just 80 and 554 (RTSP) and 8999(ONVIF if available).  Don't forget a temp login as well.  If you put the DVR/NVR on the internet we can take a look.  This <a href="https://www.youtube.com/watch?v=WF80V_AQBqM" class="postlink">video</a> explains how to do so.    To be clear, we need direct access to the DVR/NVR, not BI web interface.<br><br><strong class="text-strong">ONVIF NVR Support</strong><br><br>Looks like NVRs are now starting to support ONVIF!  This example is from a <a href="https://us.hikvision.com/en/products/video-recorders/digital-video-recorder/turbohd-tribrid-dvr/value-series/turbohd-dvr-ds-6" class="postlink">Hikvision DS-7216HUHI-K2</a>, a vendor known for delivering great ONVIF support.<br><br>Just like cameras, enter IP Address, Username and Password and hit Find/Inspect to see if any ONVIF information comes over.<br>BI defaults to ports 80 or 8999 for ONVIF.  Know your equipment.  If ONVIF resides elsewhere, for example port 8080, you need to let BI know by altering 8999 to 8080 for the ONVIF port before hitting Find / Inspect.<br><br>The Find / Inspect dialog shares all the rich information coming via ONVIF.<br><br>System info<blockquote class="uncited"><div>Opening &lt;ip address&gt; port 80...<br>HTTP Get / request...<br>OK<br>ONVIF GetSystemDateAndTime<br>2021-09-18T20:11:02.000Z<br>Requesting device information...<br>Manufacturer: Hangzhou Hikvision Digital Technology Co., Ltd<br>Model: DS-7216HUHI-K2<br>FirmwareVersion: V4.25.000, build 200925<br>GetCapabilities...<br>Querying services</div></blockquote>Pulling in profiles of the 13 cameras connected to this 16 channel NVR<blockquote class="uncited"><div>Has Search services: /onvif/search_service<br>Has Imaging services: /onvif/imaging_service<br>Has media services: /onvif/media_service<br>Has RTP_RTSP_TCP, requesting profiles<br>profile token ProfileToken001<br>profile name ProfileName001<br>profile source is VideoSourceToken001<br><br>...<br><br>profile token ProfileToken013<br>profile name ProfileName013<br>profile source is VideoSourceToken013<br>profile source config is VideoSourceConfigurationToken013</div></blockquote><br>Pulling in sub streams for each channel!<br>Notice the mapping that is also provided.  Channel 49 corresponds to the sub stream for Channel 1.<blockquote class="uncited"><div>profile token ProfileToken049<br>profile name ProfileName049<br>profile source is VideoSourceToken001<br>profile source config is VideoSourceConfigurationToken001<br><br>...<br><br>profile token ProfileToken061<br>profile name ProfileName061<br>profile source is VideoSourceToken013<br>profile source config is VideoSourceConfigurationToken013</div></blockquote>Much more information is pulled over which is not documented here to conserve space.<br><br>Once you know what the profiles mean, easy to connect cameras.<br>In below example, I connect Channel 1.<br>I know Channel 1 is Profile 1.  Based on the above ONVIF information, I also know the Channel 1 sub stream is associated to Profile 49.<br>Pretty easy to also guess what streams belong to which channels based on the intuitive Hikvision conventions.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2399" class="postimage" alt="ip camera connection_onvif nvr.png" onclick="viewableArea(this);" /></dt></dl></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Sun Jan 16, 2022 11:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
