snapshot.cgi, video.cgi

Sep 20, 2021
3
0
South Africa
Firstly let me start with the version....

1632153315959.png

Then the process,

1) Open a stream using 2) Attempt to call
2 fails with a http 500...

HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 500 Internal Server Error
CONNECTION: close
Set-Cookie:secure; HttpOnly
CONTENT-LENGTH: 0

---response end---
500 Internal Server Error
Syntax error in Set-Cookie: secure; HttpOnly at position 7.
Closed fd 4
2021-09-20 17:51:11 ERROR 500: Internal Server Error.



Now for the strange part, reset to factory defaults... No stream opened

Then all of a sudden i can reach /snapshot.cgi however I need the stream opened as this is part of the functionality i am trying to write.


Any help or suggestions would be greatly appreciated.
 
OK so it appears as soon as I access the video.cgi snapshot cannot be accessed.

Updating everything to work off the rtsp stream instead of the video.cgi worked...

In summary if you want both video and still images from the camera.

This is what worked for me....

Video: Use rtsp for your video feed, do not use video.cgi
Image: Access via snapshot.cgi
 
Afaik, you have to set encode mode on the stream you request (main/sub) to MJPG and not H.265/H.265 for use with video.cgi.
This worked for me on all of my dahua cam's.