IpCamera: New IP Camera Binding

Tags: #<Tag:0x00007f5c93667f78> #<Tag:0x00007f5c93667eb0> #<Tag:0x00007f5c93667de8>

If it has no snapshot then it is not onvif. For RTSP only cameras they work using the http only examples in the readme.

Hi
I have a hikam A7 with onvif. The only thing I want to have is to view the livestream of my camera. Maybe turned on by an external motion detector.
When I try to install ffmpeg via apt install, i get the following:
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘ffmpeg’ has no installation candidate

Do I have to do something else?
BR
Daniel

https://www.ffmpeg.org/
Or use google to find a guide.

Hey all,

I have observed a behavior from using snapshots to create GIFs and I am wondering if this is normal behavior. So I am using 2 ONVIF cameras (Reolinks 520’s) and they require a Snapshot_url_override.

This is fine, set up first camera. Everything working as expected. Set up 2nd camera. Different SERVER_PORT. All values in thing definition are unique to each camera as needed. First camera not working to create GIFs now. I check the debug logs and 1s camera no longer generating snapshots at polling interval.

So after some verifying and experimenting, I set the ONVIF_Media_Profile=1 on the 1st camera (It is =0 on 2nd camera) Now both are generating snapshots per the debug log and everything is back to normal.

Is this the expected behavior?

Hi All,
I am using Hikvision 2CD2646G1-IZS cameras and am having trouble getting alerts. In the log I see messages indicating the channel was closed and that the alarm stream was not running, but it appears to correct itself - at least I dont see ongoing problems. The alerts are Smart Events. Access is via CGI - ONVIF is disabled.

2020-03-26 09:45:15.204 [WARN ] [ing.ipcamera.handler.IpCameraHandler] - !!!! Camera possibly closed the channel on the binding, cause reported is: {}
        at org.openhab.binding.ipcamera.handler.IpCameraHandler.sendHttpRequest(IpCameraHandler.java:566) ~[?:?]
        at org.openhab.binding.ipcamera.internal.MyNettyAuthHandler.processAuth(MyNettyAuthHandler.java:177) ~[?:?]
        at org.openhab.binding.ipcamera.internal.MyNettyAuthHandler.channelRead(MyNettyAuthHandler.java:232) ~[?:?]
2020-03-26 09:45:16.084 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-26 09:45:16.086 [WARN ] [ing.ipcamera.handler.IpCameraHandler] - The alarm stream was not running for camera 192.168.1.212, re-starting it now
2020-03-26 09:45:16.087 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Event/notification/alertStream

I have checked the alertstream via URL and the camera responds to an intrusion event with:

<EventNotificationAlert version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<ipAddress>192.168.1.212</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
<macAddress>bc:ba:c2:e3:db:fd</macAddress>
<channelID>1</channelID>
<dateTime>2020-03-26T11:06:51+00:00</dateTime>
<activePostCount>1</activePostCount>
<eventType>fielddetection</eventType>
<eventState>active</eventState>
<eventDescription>fielddetection alarm</eventDescription>
<DetectionRegionList>
<DetectionRegionEntry>
<regionID>1</regionID>
<sensitivityLevel>50</sensitivityLevel>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>156</positionX>
<positionY>926</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>710</positionX>
<positionY>157</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>981</positionX>
<positionY>253</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>964</positionX>
<positionY>966</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</DetectionRegionEntry>
</DetectionRegionList>
<channelName></channelName>
<Extensions version="1.0" xmlns="urn:psialliance-org">
<serialNumber xmlns="urn:selfextension:psiaext-ver10-xsd">DS-2CD2646G1-IZS20190911AAWRD60961157</serialNumber>
<eventPush xmlns="urn:selfextension:psiaext-ver10-xsd">DS-2CD2646G1-IZS20190911AAWRD60961157,2020-03-26T11:06:51+00:00,0,1.0</eventPush>
</Extensions>
</EventNotificationAlert>

I assumed this would create an alert on the following item:

Switch   East_Camera_FieldDetectionAlarm             "Intrusion alarm"   (gCameraEvent)  {channel="ipcamera:HIKVISION:KitchenCam:fieldDetectionAlarm"}

But I see nothing in the events log or openhab log to even suggest that the binding actually received the alert.
Any ideas on what I can do next to troubleshoot?

Kind Regards
Martin

The readme tells you what to do next, hint TRACE logs.

edit:
@hoggm2
I checked the code for bugs or typos and found none, it should work fine with the output you posted. My best guess at this stage is you need to reboot as Openhab has not created the items or the links correctly. It can take 3+ reboots if you have never used the binding before or if you clear the cache and tmp.

Hi Matt,
thanks for what you are doing. Really Openhab newbye over here,
trying to connect to my 3 dahua cameras. I can’t get the snapshot or stream in PaperUI control.
The cameras has ONVIF support:


This link works in vlc: rtsp://admin:password@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
and this is the snapshot http link (with authentication)
/onvifsnapshot/media_service/snapshot?channel=1&subtype=0
My log:
2020-03-27 16:58:36.400 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 48, cap: 48/48, unwrapped: PooledUnsafeDirectByteBuf(ridx: 138, widx: 138, cap: 1024)), decoderResult: success)
2020-03-27 16:58:36.401 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.108http://192.168.1.108/onvifsnapshot/media_service/snapshot?channel=1&subtype=0
2020-03-27 16:58:36.410 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.108http://192.168.1.108/onvifsnapshot/media_service/snapshot?channel=1&subtype=0
2020-03-27 16:58:36.410 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 404 Not Found
It seems like ip appears twice. Thing configuration seems ok, any idea?
Thanks.
Andrea

Thanks Matt for taking a look. Before originally posting I had also had a quick look at the code to ensure the XML string was correct. I will reboot a few more times, but it has been done a fair bit already. I thought I already had trace set. And because I wasn’t seeing any trace entries for ipcamera I set trace for the whole system via org.ops4j.pax.logging. Sadly I had not appreciated that settings via the Karaf console are persistent between reboots on my Docker based system, and it was set to debug for ipcamera.

I noticed in the logs that there is frequenly a TRACE response to a GET query, but nothing for the alert stream. I guess that is because it is a stream, but is that normal?

2020-03-27 16:23:08.818 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is        :<!DOCTYPE html>
2020-03-27 16:23:08.838 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/System/IO/inputs/1/status
2020-03-27 16:23:08.840 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
2020-03-27 16:23:08.841 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 178, cap: 178/178, unwrapped: PooledUnsafeDirectByteBuf(ridx: 612, widx: 612, cap: 1024)), decoderResult: success)
2020-03-27 16:23:08.841 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is        :<!DOCTYPE html>
2020-03-27 16:23:08.845 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-27 16:23:08.847 [WARN ] [ing.ipcamera.handler.IpCameraHandler] - The alarm stream was not running for camera 192.168.1.212, re-starting it now
2020-03-27 16:23:08.847 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Event/notification/alertStream
2020-03-27 16:23:08.847 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/System/IO/inputs/1/status
2020-03-27 16:23:08.850 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
2020-03-27 16:23:08.850 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 178, cap: 178/178, unwrapped: PooledUnsafeDirectByteBuf(ridx: 612, widx: 612, cap: 1024)), decoderResult: success)
2020-03-27 16:23:08.851 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is        :<!DOCTYPE html>
2020-03-27 16:23:08.853 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/System/IO/inputs/1/status
2020-03-27 16:23:08.857 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Event/notification/alertStream
2020-03-27 16:23:08.860 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-27 16:23:09.845 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture

Kind Regards

Martin

I have had a look at the code for the HikvisionHandler and so far as I can tell (I am far from a practised Java coder) for each EventNotification stanza received, there should be a TRACE message of “HTTP Result back from camera is…”.

But I am seeing nothing. Wireshark seems to confirm no continuous traffic to openhab. On closing openhab, I see that the status is 0 for the alertStream. The documentation indicates that 0 is a stream closing, but my suspicion is that it is already closed.

There is an entry in the logs which indicate that the alertstream is re-starting, but no recorded confirmation of successfull re-start in the logs
.
This is a log from close down to restart. A large number of /picture/ logs have been removed.

//openhab closing down

2020-03-28 15:20:03.722 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is 1 for URL:/ISAPI/Streaming/channels/101/picture
2020-03-28 15:20:03.796 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is 1 for URL:/ISAPI/Streaming/channels/101/picture
2020-03-28 15:20:03.796 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is 1 for URL:/ISAPI/Streaming/channels/101/picture
2020-03-28 15:20:03.797 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is 0 for URL:/ISAPI/Event/notification/alertStream
2020-03-28 15:20:03.797 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Channel status is 0 for URL:/ISAPI/System/IO/inputs/1/status

//openhab restart

2020-03-28 15:20:51.600 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'camera.items'
2020-03-28 15:20:52.861 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'camera.things'
2020-03-28 15:21:02.706 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'camera.rules'
2020-03-28 15:21:18.890 [WARN ] [ing.ipcamera.handler.IpCameraHandler] - The SERVER_PORT = -1 which disables a lot of features. See readme for more info.
2020-03-28 15:21:19.891 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - About to connect to the IP Camera using the ONVIF PORT at IP:192.168.1.212:80
2020-03-28 15:21:19.989 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:20.068 [WARN ] [ing.ipcamera.handler.IpCameraHandler] - We got an ONVIF error404:<!DOCTYPE html>
2020-03-28 15:21:20.209 [INFO ] [ing.ipcamera.handler.IpCameraHandler] - IP Camera at 192.168.1.212 is now online.
2020-03-28 15:21:20.255 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:20.290 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
2020-03-28 15:21:20.294 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:20.301 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 178, cap: 178/178, unwrapped: PooledUnsafeDirectByteBuf(ridx: 612, widx: 612, cap: 1024)), decoderResult: success)
2020-03-28 15:21:20.303 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is 	:<!DOCTYPE html>
2020-03-28 15:21:20.310 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
2020-03-28 15:21:20.311 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 178, cap: 178/178, unwrapped: PooledUnsafeDirectByteBuf(ridx: 612, widx: 612, cap: 1024)), decoderResult: success)

***********LARGE NUMBER of 101/picture requests

2020-03-28 15:21:24.176 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:24.179 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
2020-03-28 15:21:24.180 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 178, cap: 178/178, unwrapped: PooledUnsafeDirectByteBuf(ridx: 612, widx: 612, cap: 1024)), decoderResult: success)
2020-03-28 15:21:24.181 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is 	:<!DOCTYPE html>
2020-03-28 15:21:24.207 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:24.209 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:24.210 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
2020-03-28 15:21:24.211 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - DefaultLastHttpContent(data: PooledSlicedByteBuf(ridx: 0, widx: 178, cap: 178/178, unwrapped: PooledUnsafeDirectByteBuf(ridx: 612, widx: 612, cap: 1024)), decoderResult: success)
2020-03-28 15:21:24.211 [TRACE] [ing.ipcamera.handler.IpCameraHandler] - HTTP Result back from camera is 	:<!DOCTYPE html>
2020-03-28 15:21:24.214 [WARN ] [ing.ipcamera.handler.IpCameraHandler] - The alarm stream was not running for camera 192.168.1.212, re-starting it now
2020-03-28 15:21:24.215 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Event/notification/alertStream
2020-03-28 15:21:24.217 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture
2020-03-28 15:21:24.219 [DEBUG] [ing.ipcamera.handler.IpCameraHandler] - Sending camera: GET: http://192.168.1.212/ISAPI/Streaming/channels/101/picture

I have probably done as much as I can in diagnostics and testing with available logfile information.

Check if the camera has locked you out or if the camera is setup to have a whitelist and openhab is not on the list.

Hi Matt,

The camera seems to have no whitlist/blacklist capability. I also looked for blocked and locked. Looked at google, the manual, and the config interface.

Access seems OK. The GCI API config screen has a section for authorised users and so I tried changing a password. When I re-started OH I got a lot of log messages of “!!! Camera possibly closed the channel …” so I think it suggests access control is working as expected

The cameras I have are all new, professionally installed, and have the latest firmware.

Kind Regards

Martin

Hi everyone, I’m trying to connect my HIKVISION DS-2CD2142FWD-I cameras to openhab.
I saw that I can connect them via Paper UI, but I read that through text configuration it is better.
Could you help me?
I insert my things and items files.

Things file:

Thing ipcamera:HIKVISION:005 "GiardinoPost"
[
    IPADDRESS="Camera IP",
    USERNAME="USER",
    PASSWORD="PASSWORD",
    POLL_CAMERA_MS=1000,
    SERVER_PORT=8000,
    UPDATE_IMAGE=false,
    FFMPEG_OUTPUT="/tmpfs/GiardinoPostCam/",
    FFMPEG_INPUT="rtsp://192.168.178.64:554/Streaming/Channels/101"
]

items file:

Switch GiardinoPostGif "Create animated GIF" { channel="ipcamera:HIKVISION:005:updateGif" }
Dimmer GiardinoPostPan "Pan [%d] left/right" { channel="ipcamera:HIKVISION:005:pan" }
Dimmer GiardinoPostTilt "Tilt [%d] up/down" { channel="ipcamera:HIKVISION:005:tilt" }
Dimmer GiardinoPostLED "IR LED [%d]" { channel="ipcamera:HIKVISION:005:enableLED" }
Switch GiardinoPostAutoLED "Auto IR LED" { channel="ipcamera:HIKVISION:005:autoLED" }
String GiardinoPostTextOverlay "Text to overlay" { channel="ipcamera:HIKVISION:005:textOverlay" }
String GiardinoPostAPIAccess "Access the API" { channel="ipcamera:HIKVISION:005:apiAccess" }
String GiardinoPostStreamUrl "Mjpeg Stream" { channel="ipcamera:HIKVISION:GiardinoPost:streamUrl" }
String GiardinoPostHlsStreamUrl "HLS Stream" { channel="ipcamera:HIKVISION:GiardinoPost:hlsUrl" }
String GiardinoPostRTSPStreamUrl "RTSP Stream" { channel="ipcamera:HIKVISION:GiardinoPost:rtspUrl" }
DateTime GiardinoPostLastMotionTime "Time motion was last detected [%1$ta %1$tR]"
String GiardinoPostLastMotionType "Last Motion Type" { channel="ipcamera:HIKVISION:GiardinoPost:lastMotionType" }
Switch GiardinoPostStartHLS { channel="ipcamera:HIKVISION:GiardinoPost:startStream" }
Switch GiardinoPostEnableMotionAlarm "MotionAlarm on/off" { channel="ipcamera:HIKVISION:005:enableMotionAlarm" }
Switch GiardinoPostMotionAlarm "Motion detected" { channel="ipcamera:HIKVISION:005:motionAlarm" }
Switch GiardinoPostEnableLineAlarm "LineAlarm on/off" { channel="ipcamera:HIKVISION:005:enableLineCrossingAlarm" }
Switch GiardinoPostLineAlarm "Line Alarm detected" { channel="ipcamera:HIKVISION:005:lineCrossingAlarm" }

At the moment I have 5 cameras and obviously I try to make the first one work and then repeat the same steps with the others.
I would like to see the thumbnails in Paper UI if possible and then in the sitemap, I’d like to configure all possible features.
I saw that there is a huge work behind it and therefore I would like to thank the author @ matt1
Thanks

Jad

Hi Francesco, I’m not so expert but Matt help me a lot every time I needed
Anyway, your configurations seems to be ok, despite the info I guess you expressely hide (user pass and IP). Better if you pubblish the sitemap also
For the tumbhnail see follow this

TnX Elenio,
My sitemap:

Text label=“Giardino Post” icon="camera"{Image url="http://192.168.178.64:8000/ipcamera.jpg" refresh=1000} 
        
        Text label="Advanced Controls" icon="settings"{
            Slider item=GiardinoPostLED
            Default item=GiardinoPostAutoLED
            Text label="Cameras Mjpeg Stream" icon="camera"{Video url="http://192.168.178.64:8000/ipcamera.mjpeg" encoding="mjpeg"}
            Text label="Snapshot 1FPS Stream" icon="camera"{Video url="http://192.168.178.64:8000/snapshots.mjpeg" encoding="mjpeg"}
            Text label="autofps Stream" icon="camera"{Video url="http://192.168.178.64:8000/autofps.mjpeg" encoding="mjpeg"}
            Text label="HLS Video Stream" icon="camera"{Video url="http://192.168.178.64:8000/ipcamera.m3u8" encoding="hls"}
            Text label="HLS Webview Stream" icon="camera"{Webview url="http://192.168.178.64:8000/ipcamera.m3u8" height=15}
            Text label="Image using jpg method" icon="camera"{Image url="http://192.168.178.64:8000/ipcamera.jpg" refresh=2000}        
    }

Jad

Please don’t assume they have the latest firmware when they are new, it is very common for cameras to ship before firmware is fully written so it is extremely important to update firmware on new cameras that may have been sitting in warehouses for months with firmware not was not fully finished before shipping.

I don’t understand in your case why you can get the stream output manually in a browser, but you can not get it via the binding and shown in the trace logs. This does not add up, hence why I feel this could be the camera not wanting to talk to X ip address. Try power cycling the camera as that resets the lockout which may have been tripped and keep looking for white lists as my Hikvision cameras have that feature.

Confirm that the binding is using the exact same URL that you are using for the alarm stream.

Hi Matt, Appologies for my lack of clarity. I had manually verified latest firmware against the UK Hikvision download pages.
The URL for the alarm stream I used is the one listed in the logs so I would have expected them to be the same. Your insight has given me a another thing to try, short of setting up Eclipse, which is to elimiate docker. First I will try the other things you mention.

Matt, thank you for your assistance so far, it is much appreciated. It will take me a while to do all of these things and will report back in due course.

KInd regards
Martin

Don’t see any error
Only I don’t see port in your thing file following this specs
PORT This port will be used for HTTP calls for fetching the snapshot and alarm states.’
In my case I setup this: 80

You don’t see any image or stream opening the sitemap tile on your system?

Anyway these are my sitemap entries:

// (Potrebbe avere Peggiore risoluzione) Text label="Cameras Mjpeg Stream" icon="camera"{Video url="http://192.168.1.180:54324/ipcamera.mjpeg" encoding="mjpeg"}
Text label="Snapshot 1FPS Stream" icon="camera"{Video url="http://192.168.1.180:54324/snapshots.mjpeg" encoding="mjpeg"}
// (Minimizza il traffico dati) Text label="autofps Stream" icon="camera"{Video url="http://192.168.1.180:54324/autofps.mjpeg" encoding="mjpeg"}
Text label="HLS Video Stream" icon="camera"{Video url="http://192.168.1.180:54324/ipcamera.m3u8" encoding="hls"}
Text label="HLS Webview Stream" icon="camera"{Webview url="http://192.168.1.180:54324/ipcamera.m3u8" height=15}
Text label="Image using jpg method" icon="camera"{Image url="http://192.168.1.180:54324/ipcamera.jpg" refresh=1000}

Hi Matt,

I am currently facing some “load” issues with my camera as i am accessing it in parallel with my NVR and directly with openhab ipcamera binding.

I’d like to reduce the load openhab is generating (by the ipcamera binding) to only use the xml alarm stream. So to speak: only grab the alarms but NO image data (hence reduce encoding/decoding load of the camera).

Is it possible to run the binding without any binary input stream - so only for the XML alarms and like “deactivate” RTSP/the FFMPEG input?
My NVR is not passing through smart alarms from HIKVISION, that’s why i want to still use those (without the image data).

I would then setup a second ipcamera thing as generic HTTP camera pointing to the NVR for an rtsp passthrough image channel.

Cheers,
Stefan

I inserted port 80 in things configuration, but still no video in PaperUI and openhab app (IOS).
Following conf. camera port.

Schermata 2020-03-30 alle 16.50.50

Do I have to put something in rules?

Jad

No rules as far as I know Francesco for simple video streaming
Anyway we have now to address to Matt suggestion
Sorry I reached my limit but here two more personal suggestion
a) don’t even see this entry:

    IP_WHITELIST="DISABLE"

b) enable trace log as Matth always suggest us