Camera visible on HIK-connect app, but error on door station display

ivv

n3wb
Oct 31, 2024
15
1
Romania
Hi!

(not sure where to post this)
I live in an apartment building where is installed a HikVision intercom (with indoor stations in every apartment) and a Dahua surveillance camera system.
We managed to reset the all the passwords and now we are trying to connect the Dahua IP cameras to HikVision indoor stations. We verified all the IPs and made sure there are no conflicts. We used ONVIF protocol and added one of the Dahua IP cameras on the HikVision indoor station. The settings are good, we can see the live view from that camera using the HikVision app (from anywhere), but when we tap on the indoor station and choose the camera, there is only an error saying: ”Live view failed. There is a connection exception” (translated from Romanian).
How is this possible?

The setup:
Wi-Fi network <----- indoor station -----> HIK intercom switch <------> IP Cameras POE switch <------ Dahua NVR and IP cameras.

Thank you!
 
Last edited:
Great news!
Indoor station: DS-KH6320-WTE1
The problem was that, by default, this unit reads the mainstream of the IP cams and there is no way to change it. I even tried to change it in the XML file, but it always reverts back.

This is the only way to views live cameras on the HIk unit, Hik App and still have good quality on mainstream:

Code:
<?xml version="1.0" encoding="utf-8"?>
<MonitorInfo>
<MoniInfo>
<strRelateChannel>1</strRelateChannel>
<strDeviceName>Parcare interioara</strDeviceName>
<StreamMode>URL</StreamMode>
<strUrl>rtsp:/192.168.1.108:554/cam/realmonitor?channel=1&amp;subtype=1&amp;unicast=true&amp;proto=Onvif</strUrl>
<strFacProtocol></strFacProtocol>
<strUserName></strUserName>
<strPassWord></strPassWord>
<strIP></strIP>
<strPort></strPort>
<strTransType></strTransType>
<strChannel></strChannel>
<strPeriodNo></strPeriodNo>
<strBuildNo></strBuildNo>
<strUnitNo></strUnitNo>
<strIndex></strIndex>
<strDeviceType>2</strDeviceType>
</MoniInfo>
</MonitorInfo>

1. Set Onvif authentification to ”disable” on each camera (this is the downfall, but still ok in a controlled environment),
2. Ensure sub-stream is set to H.264 and resolution is no more than 720p.
3. Manually add cameras using the above XML.
Here is the magic:
<StreamMode>URL</StreamMode>
<strUrl>rtsp:/192.168.1.108:554/cam/realmonitor?channel=1&amp;subtype=1&amp;unicast=true&amp;proto=Onvif</strUrl>


These posts here: Hikvision DS-KD8003-IME - New video doorbell
and here: Hikvision DS-KD8003-IME - New video doorbell are GOLD!

Thank you, @user8963 !
 
Last edited:
  • Like
Reactions: TonyR
Great news!
Indoor station: DS-KH6320-WTE1
The problem was that, by default, this unit reads the mainstream of the IP cams and there is no way to change it. I even tried to change it in the XML file, but it always reverts back.

This is the only way to views live cameras on the HIk unit, Hik App and still have good quality on mainstream:

Code:
<?xml version="1.0" encoding="utf-8"?>
<MonitorInfo>
<MoniInfo>
<strRelateChannel>1</strRelateChannel>
<strDeviceName>Parcare interioara</strDeviceName>
<StreamMode>URL</StreamMode>
<strUrl>rtsp:/192.168.1.108:554/cam/realmonitor?channel=1&amp;subtype=1&amp;unicast=true&amp;proto=Onvif</strUrl>
<strFacProtocol></strFacProtocol>
<strUserName></strUserName>
<strPassWord></strPassWord>
<strIP></strIP>
<strPort></strPort>
<strTransType></strTransType>
<strChannel></strChannel>
<strPeriodNo></strPeriodNo>
<strBuildNo></strBuildNo>
<strUnitNo></strUnitNo>
<strIndex></strIndex>
<strDeviceType>2</strDeviceType>
</MoniInfo>
</MonitorInfo>

1. Set Onvif authentification to ”disable” on each camera (this is the downfall, but still ok in a controlled environment),
2. Ensure sub-stream is set to H.264 and resolution is no more than 720p.
3. Manually add cameras using the above XML.
Here is the magic:
<StreamMode>URL</StreamMode>
<strUrl>rtsp:/192.168.1.108:554/cam/realmonitor?channel=1&amp;subtype=1&amp;unicast=true&amp;proto=Onvif</strUrl>


These posts here: Hikvision DS-KD8003-IME - New video doorbell
and here: Hikvision DS-KD8003-IME - New video doorbell are GOLD!

Thank you, @user8963 !
You missed one / after rtsp ;)
Have you checked it with a dahua camera? I've tried it with IPC-HDW3849H-AS-PV-0280B-S4 with no success :/
If I put it in VLC everything is working ok, but I can not start working this in indoor station DS-KH6320-WTE1 firmware V2.2.96 build241111 :(
 
  • Like
Reactions: ivv
You missed one / after rtsp ;)
Have you checked it with a dahua camera? I've tried it with IPC-HDW3849H-AS-PV-0280B-S4 with no success :/
If I put it in VLC everything is working ok, but I can not start working this in indoor station DS-KH6320-WTE1 firmware V2.2.96 build241111 :(
You're right! The problem is on this this forum. When I try to insert the correct link using 2 x "/", after I post it, it is saved with only one "/".
I checked these settings and it's working (Hik and Dahua).
Did you checked these?

1. Set Onvif authentification to ”disable” on each camera (this is the downfall, but still ok in a controlled environment),
2. Ensure sub-stream is set to H.264 and resolution is no more than 720p.
 
I did everything. I've also tied to change other settings in sub-stream but no success :( Screen on the hik is black. When I turn on auth on onvif i get error user/pass. Maybe the problem is that I've got this as DS-KIS604-S(C). There are models B.
I also can't connect DS-KV8113-WME1(C) to my Dahua NVR, because there is no onvif protocol. I've found on release note for DS-KV8113-WME1(B) that there is onvif profile S. I didn't found that for DS-KV8113-WME1(C).
In attached Dahua screenshots of my settings.
 

Attachments

  • Zrzut ekranu 2025-01-20 054840.png
    Zrzut ekranu 2025-01-20 054840.png
    65.1 KB · Views: 0
  • Zrzut ekranu 2025-01-20 055024.png
    Zrzut ekranu 2025-01-20 055024.png
    28.9 KB · Views: 0
Unfortunately I am not at that location to check the settings. I have multiple Dahua cameras, different models, so there shouldn’t be a problem on Dahua side. I also managed to connect intercom camera to Dahua NVR using Onvif.

What error do you get after waiting a while on the Hik screen?

In Hik-Vision app do the cameras work? This is how you will know if the problem is on the sub-stream settings. On my first config, I was able to view all my cameras using the app, but Hik unit was showing black screen and then error. On my first attempt I was even able to connect the cameras using RTMP, using the main-stream - but this will only let you view the cameras using HikVision App.

First, just for testing. Try lowering the resolution of the sub-stream (under 480) and also lower the framerate to “20”. Make sure these settings are applied, checking also the camera settings in NVR admin page.

Then, how did you create the rtsp link, using the NVR ip and then changing the channel name for each camera or using each camera ip always on channel 1?
If the first one is you case, make sure Onvif authentication is also disabled on NVR settings.

I don’t remember what Onvif settings were on Hik intercom, but I can’t imagine they would ditch the Onvif protocol.
 
Last edited:
There is no error at all. In attached photo how it looks like and it stuck like this all the time. Nothing happens.

The thing is that I want to connect dahua camera (IPC-HDW3849H-AS-PV-0280B-S4) to hikvision (DS-KH6320-WTE1-C) without NVR. I can see camera on DMSS. I can see camera by VLC (RTPS like you wrote).

I,ve tried lowering the resolution of the sub-stream (under 480) and also lower the framerate to “20”. The same thing. Still black screen like in attached. No errors.

I've copied from your instruction RTSP. In camera there is example but does not work. If I set a channel other than 1, I can't see the image. Onvif auth is disabled as you can see on screenshot.

In DS-KV8113-WME1(C) there is no option with onvif. You can look at manual. I also wrote to hik support and they confirmed that there is no onvif in that intercom.
 

Attachments

  • 20250120_142817.jpg
    20250120_142817.jpg
    161.1 KB · Views: 0
Usually, if the screen is black and no error, then is a codec/bitrate/resolution error - could also mean it is trying to view the main-stream, not the sub-stream. You still didn't tell if you can see the Dahua camera in Hik Vision Phone app - this is very important, because this will tell us if the intercom is communicating with the camera. Hik tech support is not very brilliant, they told me what I want is impossible... The link should be exactly like this: rtsp:/<YOUR_CAMERA_IP>:554/cam/realmonitor?channel=1&amp;amp;subtype=1&amp;amp;unicast=true&amp;amp;proto=Onvif . (of course with 2 x "/" on rtsp)

Also, upload your xml config here (make sure to right click and open with notepad first).
 
I can't see Dahua video on hik connect app on phone :(
xml attached
 

Attachments

  • 1.xml
    1.xml
    645 bytes · Views: 0
  • Zrzut ekranu 2025-01-20 221014.png
    Zrzut ekranu 2025-01-20 221014.png
    31.6 KB · Views: 0
That’s strange. Note that, you have to wait a bit and refresh a few times the app before camera appear for the first time.

Try adding the ip camera using Hik Protocol and then check if they appear and work on HikVision app. This is just for testing.

The XML looks good.
 
I think I wrote something wrong and we didn't understand each other. I can see added camera but I can't see video it's stuck at 94% and next I get error like it is off.
 
The only thing left you can try is to make the link using NVR ip and the camera channel (as seen on NVR). Also make sure the anonymous log in is enabled for Onvif NVR settings. It’s a good idea to check the camera video settings also on NVR.
 
I can't see in NVR option to disable Onvif auth :/ I have NVR4216-I. But when I've added that camera by onvif in NVR it is working. Hik intercom doesn't work this way at all in this NVR. Camera video settings are the same in NVR.
 
I am out of ideas. You can try changing the compression of the main stream also to H.264 and then check if it’s working on Hik intercom and also on Hik App.

You can even try to set lower resolution/framerate/bitrate of mainstream - just for testing to see if Hik is trying to load mainstream instead of substream and then check on both - Hik intercom and Hik App.

Always check both, app and intercom, because intercom has some limitations and if the app successfully streams the video, it might give you some clues where to change settings.

If none of these work, then your Hik might actually lack Onvif capabilities, which is very odd.
 
You were right. Stupid Hik tries to load mainstream instead substream :/ I think there is no options to load substream like support hik told me :/ On VLC is everything ok. I can see mainstream and switch to substream. So links are ok.
 
Maaaan!!!! I figured it out. Change subtype=1, not “0”, in your XML. This specifically says what stream to be loaded. I missed that. Don’t listen to Hik support, they only follow a set of instructions, like robots. The above is a proof that your device indeed has Onvif protocol and this last edit will help you finally stream the video.
 
Sorry, I've made a mistake. In xml I have subtype=1. When I tried different records I've should copy wrong one :( Dahua has Onvif protocol but Hik cannot load substream on it. It always trying mainstream :(
 
It has to work! The Onvif protocol is there, so it’s just a matter of settings.

Double check the subtype is 1. Try to keep both main and sub to H.264. Lower the resolution to 320 on substream (if it’s working you can increase it after) and lower the framerate of substream to 20. Bitrate looks fine. Should work.

If none of these work, maybe you Dahua camera is streaming the substream on subtype=2 . Also check that drop-down list on Substream 1.

 
Last edited:
I know it should work.
I've checked everything many times. I've tried different settings. Dahua has mainstream and two substreams. I have only one on. I can try second one.
I don't want to lowering mainstream. I know if I did it i will be works. Like I said before if I put url to VLC it works like it should be. I think there is something wrong with hik screen.
 
VLC is running on capable hardware. Hik intercom is limited. You have to start with lower settings and then make adjustments and increase quality until it’s not working anymore.