# Hikvision Onvif doorbell - how did OpenHab get it working?

**URL:** <https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404>\
**Category:** Hardware\
**Created:** [17 October 2020 09:11 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404 "2020-10-17T09:11:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [17 October 2020 09:11 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/1 "2020-10-17T09:11:00Z")

</div>

Hi folks,

Having my own ip video doorbell is already since day one on my todo list. But most bells need a cloud subscription, and I'm not going to pay somebody to look at my own pictures from my own camera... The DoorBird doorbell could solve this, but it is pretty expensive...

Found [here](https://www.vueville.com/home-security/doorbells/best-wireless-video-doorbell-cameras-recommendations/) some doorbells with Onvif support, like e.g. the [DS-HD1](https://us.hikvision.com/en/products/more-products/video-intercom/door-station/3-mp-outdoor-wi-fi-smart-doorbell-camera-ds-hd1) from Hikvision:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e9ecc1025c12c24fa6e629cb0b7dcb583d1bfd92.png)

Seems that the Openhab community [managed](https://community.openhab.org/t/working-doorbell-hikvision-ds-hd1/102487/2) to get it running somehow, but my Openhab knowledge is too small to understand how it works. So if anybody can tell me, that would be great!

The camera supports Onvif and RTSP streaming. But I don't understand how the dual way audio (via [ffmpeg](https://github.com/Samfox2/homebridge-videodoorbell/issues/25) perhaps?) works ... And also not sure how I could use my [node-red-contrib-onvif-nodes](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes) to get this working ....

I have come to the painful conclusion that I can't do both: developing nodes for the community and experimenting with this kind of stuff... So would be nice if some people could join this discussion with their knowledge and experience!

Thanks!  
Bart

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [17 October 2020 09:31 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/2 "2020-10-17T09:31:30Z")

</div>

Bart, the link to your Onvif nodes was a revelation! I have been searching for something like this, I never thought to search here! Doh 🙂

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [17 October 2020 09:58 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/3 "2020-10-17T09:58:28Z")

</div>

Garry,  
Keep in mind that these nodes are not published on npm yet. And the reason is very simple: I don't have time to fix the known issues. So keep in mind that it is not 100% working! And I'm not going to publish those on NPM when I have no time to help everybody, because every brand of cameras has it own onvif issues. Especially the cheap chinese ones...  
But don't want to go further _ **off-topic** _ now about this!!!!!

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [17 October 2020 14:53 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/4 "2020-10-17T14:53:44Z")

</div>

Seems that the Onvif [streaming spec](http://www.onvif.org/specs/stream/ONVIF-Streaming-Spec-v210.pdf) requires an RTSP stream from the camera to the client, but there should also be an audio _ **backchannel** _ for audio from the client towards the camera.

And based on this [discussion](https://github.com/Sunoo/homebridge-camera-ffmpeg/issues/489#issuecomment-635801811), it seems that ffmpeg does NOT support such backchannels.  
So I'm stuck again ...

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [17 October 2020 21:43 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/5 "2020-10-17T21:43:11Z")

</div>

Not sure if this could help but I found this discussion with a quick search [https://github.com/Sunoo/homebridge-camera-ffmpeg/issues/174](https://github.com/Sunoo/homebridge-camera-ffmpeg/issues/174).

On a quick glance it seemed to be about ffmpeg and two-way audio.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [20 October 2020 10:41 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/6 "2020-10-20T10:41:54Z")

</div>

> [@ristomatti](#):
>
> On a quick glance it seemed to be about ffmpeg and two-way audio.

Hi Ristomatti,  
So there could be two ways to do this, if I understand correctly:

- Use an RTSP server that supports a back channel, like e.g. [gst-rtsp-server](https://github.com/GStreamer/gst-rtsp-server) which is based on gstreamer.
- Use two separate ffmpeg processes, one for each direction.

Not sure at the moment which is the best way to go ...

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [20 October 2020 14:36 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/7 "2020-10-20T14:36:24Z")

</div>

Sounds like quite a mess regardless. 🙄

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 December 2020 14:36 UTC](https://discourse.nodered.org/t/hikvision-onvif-doorbell-how-did-openhab-get-it-working/34404/8 "2020-12-19T14:36:29Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
