Avatar
Please consider registering
Guest
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Register Lost password?
sp_Feed sp_TopicIcon
URL streaming question
sp_NewTopic Add Topic
Avatar
BobS0327
Member
Members
Forum Posts: 29
Member Since:
September 7, 2013
sp_UserOfflineSmall Offline
1
April 25, 2016 - 12:46 am
sp_Permalink sp_Print sp_QuotePost
sp_ReportPost

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. 

Avatar
Jose Malave
Boca Raton, Florida
Admin
Forum Posts: 820
Member Since:
January 3, 2014
sp_UserOfflineSmall Offline
2
April 25, 2016 - 11:51 am
sp_Permalink sp_Print sp_EditHistory sp_QuotePost
sp_ReportPost

Hi,

 

The password fields are based on a 64 bit encode.

For example:admin/admin will be YWRtaW46YWRtaW4== .

 

Encode Generator

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.

sp_AnswersTopicAnswer
Answers Post

 Jose Malave - IT Director| Toll Free: 866-573-8878 | E-mail: support@securitycameraking.com

Forum Timezone: America/New_York
Most Users Ever Online: 727
Currently Online:
Guest(s) 20
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Techpro Security: 404
shockwave199: 179
tubac: 167
Jer7of9: 155
Gilberto: 150
MrDeepFreeze: 136
Night Hawk: 100
Mark: 89
West Coast Jones: 66
ShawnInFL: 64
Newest Members:
msniki87
Billybum
Arisha2ot
thenuka
MercDoD
Brayanibn
slotgacor4d
jcockerham@americancoffeeservices.com
matumba
Arisha1ot
Forum Stats:
Groups: 5
Forums: 28
Topics: 1501
Posts: 6000

 

Member Stats:
Guest Posters: 143
Members: 22988
Moderators: 7
Admins: 5
Administrators: Damon Delcoro, Brad Besner, Jose Malave, Damon Delcoro, Tony Petruzzi
Moderators: Zeke Richey, Eric Wilson, Yarden Pinhasi, Joe Shopsin, jwilhelmi, Jorge Nava, Tyler Rittel