This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Get image from hikvision cctv
#1
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/showthrea...=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/showthrea...=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?
Reply
#2
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
Reply
#3
It's the same issue as with iframe, browsers do not allow credentials in the URL anymore for security reasons.
Reply
#4
(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?
Reply
#5
No, unless your camera allows passing username/password as query string parameters.
Reply


Forum Jump: