Logic Machine Forum
Get image from hikvision cctv - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get image from hikvision cctv (/showthread.php?tid=2202)



Get image from hikvision cctv - hollywoodperth - 17.08.2019

I have a hikvision cctv set up on the same network.

In the visualisation using an external link (http://user:password@ipaddress/ISAPI/Streaming/channels/102/picture) to a image with a 1 second refresh just shows as a broken link. I've pasted the same url into my browser, and works totally fine.

I've set the camera config up as digest/basic and tried the test code in https://forum.logicmachine.net/showthread.php?tid=1630&highlight=hikvision and it returns the following in the log, so I think the communications to the camera is OK, but just can't seem to get the visualisation to work

All help will be appreciated

* arg: 1
  * string: HTTP/1.1 200 OK
* arg: 2
  * nil


(17.08.2019, 10:59)hollywoodperth Wrote: I have a hikvision cctv set up on the same network.

In the visualisation using an external link (http://user:password@ipaddress/ISAPI/Streaming/channels/102/picture) to a image with a 1 second refresh just shows as a broken link. I've pasted the same url into my browser, and works totally fine.

I've set the camera config up as digest/basic and tried the test code in https://forum.logicmachine.net/showthread.php?tid=1630&highlight=hikvision and it returns the following in the log, so I think the communications to the camera is OK, but just can't seem to get the visualisation to work.

All help will be appreciated

* arg: 1
  * string: HTTP/1.1 200 OK
* arg: 2
  * nil


Could the issue be trying to use http://user:password@ipaddress/ISAPI/Streaming/channels/102/picture as an external link?

When I shorten the image url to http://ipaddress/ISAPI/Streaming/channels/102/picture it works fine in my browser's visualisation preview (I am logged into the camera in another tab so it doesn't need the authorisation. Obviously on the touchscreen the image shows as a broken link with this method.

Could the issue be the way I'm trying to link the external image?



RE: Get image from hikvision cctv - AlexLV - 18.08.2019

Hi,

try this:
http://user:password@ip/Streaming/channels/102/Preview

For me works only in Mozilla (I have old enough camera). Don't forget to put 2nd camera's stream to mpeg4. H264/H265 and+ not supported..

Search at forum, you can put any data to video stream as text - I remotely see temperature near my house, boiler temp and consumed electricity..

BR,

Alex


RE: Get image from hikvision cctv - admin - 19.08.2019

It's the same issue as with iframe, browsers do not allow credentials in the URL anymore for security reasons.


RE: Get image from hikvision cctv - hollywoodperth - 05.09.2019

(19.08.2019, 09:46)admin Wrote: It's the same issue as with iframe, browsers do not allow credentials in the URL anymore for security reasons.

Is there any way to get around this?


RE: Get image from hikvision cctv - admin - 05.09.2019

No, unless your camera allows passing username/password as query string parameters.