September 7, 2013
I have a Dahua 8 channel DVR and I'm trying to stream one of the channels to a web page using the following URL..
"http://XXX.XXX.XXX.XXX:9876/cgi-bin/mjpg/video.cgi?channel=2"
But I get a Authentication Required Dialog Box indicating that a username and password are being requested by http://XXX.XXX.XXX.XXX. The site says "Device_CGI"
IOW, I'm prompted for a username and password.
So, my question is, how do I enter a user name and password in the URL string in order to eliminate this password dialog box?
I put the URL string in quotes so that whole string would be displayed in message.
Hi,
The password fields are based on a 64 bit encode.
For example:admin/admin will be YWRtaW46YWRtaW4== .
Here is the code for you to stream from the DVR:
Use with admin/admin.
rtsp://
put DVR IP address here:554/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46YWRtaW4==
Here is the code for you to stream from Megapixel Cameras:
Use with admin/admin.
rtsp://admin:admin@
put Megapixel_ip_Address here/cam/realmonitor?channel=1&subtype=1
Now for MJPG the encoding of the camera needs to be set to MJPG instead of H.264, this will use more bandtwith.
Try
http://XXX.XXX.XXX.XXX:9876/cgi-bin/mjpg/video.cgi?channel=2&subtype=00&authbasic=YWRtaW46YWRtaW4==
Best of luck!
NOTE: THERE IS NO GUARANTEE THAT THIS CODE WILL WORK WITH HOME AUTOMATION EQUIPMENT.
Answers Post
Jose Malave - IT Director| Toll Free: 866-573-8878 | E-mail: support@securitycameraking.com
1 Guest(s)