# IpCamera: New IP Camera Binding

**URL:** <https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771>\
**Category:** Bindings\
**Tags:** camera, onvif, ip-cam1\
**Created:** [March 30, 2018, 12:13am UTC](https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771 "2018-03-30T00:13:27Z")\
**Posts on this page:** 1\
**Showing post:** 772

<div class="post-metadata">

**Author:** ![matt1](https://community.openhab.org/user_avatar/community.openhab.org/matt1/32/19930_2.png) [@matt1](https://community.openhab.org/u/matt1)\
**Post date:** [April 12, 2019, 3:32am UTC](https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771/772 "2019-04-12T03:32:04Z")

</div>

> [@zacofunny](#):
>
> breaking my openhab, twice.  
> It has to be connected somehow with out of heap space

If you ever used the Android app, see this thread. I suspect the leak you refer to having issues with in the past is in the displaying of images and is not part of my binding but the core of Openhab or the a app and the way it handles the image data…

> [@Openhab filling up Memory and Swap](https://community.openhab.org/t/openhab-filling-up-memory-and-swap/63394/15):
>
> 2 weeks later, still the same issue… did again a lot of tests without success and decided to switch over running basic ui in fully kiosk browser on the tables. currently running my full setup since one week without any memory problems (except some button display problem in the dark theme (grey font on black background)) but as soon as i turn on the android openhab app(S) the fun begins. no or sporadically refreshing of item visibilty and memory is filling up and openhab crashes about 24 ho…

I run only a single camera currently for weeks on end with no issues, however I don’t run the camera on a tablet non stop like you appear to be doing. I did do some testing where I ran the new stream non stop for over two hours watching the heap to see if it grew whilst monitoring memory/threads and objects, did not find any issues. The stream ran without stopping for over 2 hours when I got sick of watching and stopped it.

> [@zacofunny](#):
>
> I solved the same problem with my foscam cameras by refreshing stream every 5m. However it doesn’t work with the stream from this binding. After refresh the camera does not reconnect.

In regards to your stream stopping, does this happen only on Foscams or is it happening on the Hikvision as well? If on both it may be a network issue and worth fault finding if it may be a bad cable or something that is simple to replace.  
The binding copies the stream and will not stop the stream from the camera to the binding if you are watching it on multiple tablets, this could be the reason why the same band aid fix of doing a refresh does not work. It only stops the stream if you stop or refresh when only 1 tablet is showing the stream. Having the camera going to two tablets would mean the original connection to the camera never stops and your work around fix would not work if the camera to the binding develops an issue.

I’ll run some tests and look at what logging is in the binding to see if a trace would turn up more info.

@dastrix80  
The binding does not give me high CPU so if you have that occurring it is an issue on your system which no one else has reported and I have not seen it happen here. So I suspect you would not see any difference by changing to a QuickSYNC system as currently the binding does not do any transcoding. In the future the binding may do transcoding and when that is the case QuickSYNC will help for sure.

---

_[View the full topic](https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771)._
