DCS-5300

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
jetheller
Posts: 31
Joined: Sat Oct 30, 2004 9:35 pm
Location: Secret Cloud Base 13, Neptune

DCS-5300

Post by jetheller »

Anyone had any luck using one of these cameras from D-Link? I'm digging the auto pan and tilt and am thinking of buying one. But I'd hate to get it home only to realize I needed ActiveX to access it.
thocquaux
Posts: 1
Joined: Sat Feb 26, 2005 11:10 pm
Location: Paris, France

Post by thocquaux »

you can reach .jpg small frame (ex. from a PocketPC)
a.b.c.d/cgi-bin/video.jpg

but I think that only ActiveX is able to run the complete Video Mpeg4+audio+control, that the camera stream.

Also I find this on Dlink Support FAQ:
********************************************
How do I put the streaming video from my DCS-2000/5300 series cameras on to my own webpage?

Use the below example code for a webpage. If the camera is behind a NAT device such as a router,
the IP must be edited to reflect the public address of the router (IE 24.45.76.223).
In this example the camera´s IP is 192.168.1.135.

For the DCS-5300/5300W

<script language="JavaScript">
<!--
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
{
document.write("<OBJECT ID=\"VaCtrl\" WIDTH=362 HEIGHT=306");
document.write(" CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C");
document.write(" CODEBASE=\"http://24.45.76.223:5004/plugin/h263ctr ... on=1,7,0,5\">");
document.write("<PARAM NAME=\"Url\" VALUE=\"http://24.45.76.223:5004/cgi-bin/video.vam\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"RemoteIP\" VALUE=\"24.45.76.223:5004\">");
document.write("<PARAM NAME=\"RemotePort\" VALUE=\"5001\">");
document.write("</OBJECT>");
}
//-->
</script>
***********************************************

Also there's a SDK for 3000 serie IP camera on www.vivotek.com, which is same as Dlink 5300W product
(Vivotek is the manufacturer of most Dlink et Hawking cameras)

I've got one 5300w, if you want to do some test let me know I will give you a user/passwd to do it.
Thierry
amilcar
Posts: 2
Joined: Fri Sep 09, 2005 2:41 pm

help on dlink 5300W

Post by amilcar »

Hello,
I have also problems on dlink 5300W,
I had the dlink 5300W IP camera to zoneminder and it does not work.
I have a black image in still image view and in stream mode it loads continously and i can not see any image.
The path for the image in the camera is :
http://192.168.0.1/cgi-bin/video.jpg work fine on mozilla
size is 352 x 288 with color 24 bit
Monitor is orange
All seems to be good ! but i have no image.
Does anyone has a suggestion ?
Best Regards,
Sorry for my bad english,
amilcar
AndrewP
Posts: 1
Joined: Thu Mar 13, 2008 9:40 pm

Post by AndrewP »

Bump.

I'm trying to get a DCS-5300G working and am getting the same thing as the last poster - blackness. I can pull /cgi-bin/video.jpg without issue in a browser but ZM doesn't like it.

This is being dumped to zmdc.log when trying to monitor:

03/13/2008 16:42:04.012198 zmdc[25766].INF [Starting pending process, zmc -m 2]

03/13/2008 16:42:04.017551 zmdc[25766].INF ['zmc -m 2' starting at 08/03/13 16:42:04, pid = 26456]

03/13/2008 16:42:04.343473 zmdc[25766].ERR ['zmc -m 2' exited abnormally, exit status 255]

Any ideas?


edit>

Excelsior! You have to set the size to the same as the source image size which on the 5300 is like 179x110 or something.
asaputra
Posts: 1
Joined: Thu Mar 20, 2008 2:54 am

Post by asaputra »

I have this camera works using path /cgi-bin/video.jpg?size=2, 24 bit colour, 352x240, image buffer size 15, warmup frame 5, pre event image count 10, post event image count 10, max fps 10, alarm max fps 12.
AndrewP wrote:Bump.

I'm trying to get a DCS-5300G working and am getting the same thing as the last poster - blackness. I can pull /cgi-bin/video.jpg without issue in a browser but ZM doesn't like it.

This is being dumped to zmdc.log when trying to monitor:

03/13/2008 16:42:04.012198 zmdc[25766].INF [Starting pending process, zmc -m 2]

03/13/2008 16:42:04.017551 zmdc[25766].INF ['zmc -m 2' starting at 08/03/13 16:42:04, pid = 26456]

03/13/2008 16:42:04.343473 zmdc[25766].ERR ['zmc -m 2' exited abnormally, exit status 255]

Any ideas?


edit>

Excelsior! You have to set the size to the same as the source image size which on the 5300 is like 179x110 or something.
thenextdon13
Posts: 14
Joined: Tue Jan 10, 2006 7:48 pm
Location: The Dalles, Oregon

Post by thenextdon13 »

Hello,

I have this camera and am having issues with it--
dlink DCS-5300 firmware 106

Zoneminder v1.23.3



using a pretty high debug verbosity, i get the following which appears to be a full grab from the camera, then some jpeg library not liking the actual jpeg header / decoding.

The highlight of this is the last couple of lines of the below dump

Code: Select all

01/28/10 23:08:54.361208 zmc_m1[570].ERR-zm_jpeg.c/38 [Not a JPEG file: starts with 0x35 0x39]
01/28/10 23:08:54.361251 zmc_m1[570].ERR-zm_remote_camera.cpp/1129 [Unable to decode jpeg]
I am using the following settings:
Path: /cgi-bin/video.jpg?size=2
24 bit color
Capture width 352
Capture Height 240

I can send an image from the camera to anyone that would like one

Full Dump

Code: Select all

01/28/10 23:08:54.112168 zmc_m1[570].DB1-zm_monitor.cpp/2109 [Loaded monitor 1(New), 1 zones]
01/28/10 23:08:54.112178 zmc_m1[570].INF-zmc.cpp/183 [Starting Capture]
01/28/10 23:08:54.112837 zmc_m1[570].DB3-zm_remote_camera.cpp/159 [Connected to host, socket = 3]
01/28/10 23:08:54.112898 zmc_m1[570].DB3-zm_remote_camera.cpp/180 [Request sent]
01/28/10 23:08:54.198675 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 247 bytes]
01/28/10 23:08:54.198704 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 247 bytes]
01/28/10 23:08:54.198795 zmc_m1[570].DB4-zm_remote_camera.cpp/303 [Captured header (247 bytes):
'HTTP/1.1 200 OK
Content-Type: image/jpeg
Date: Wed, 18 Nov 2009 22:33:50 GMT
Last-Modified: Wed, 18 Nov 2009 22:33:50 GMT
Expires: Wed, 18 Nov 2009 22:33:50 GMT
Transfer-Encoding: chunked
Server: D-Link Internet Camera
Connection: close

']
01/28/10 23:08:54.198817 zmc_m1[570].DB3-zm_remote_camera.cpp/321 [Got status '200' (OK), http version 1.1]
01/28/10 23:08:54.198832 zmc_m1[570].DB3-zm_remote_camera.cpp/328 [Got connection 'close']
01/28/10 23:08:54.198855 zmc_m1[570].DB3-zm_remote_camera.cpp/344 [Got content type 'image/jpeg'
]
01/28/10 23:08:54.219850 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 1445 bytes]
01/28/10 23:08:54.219866 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 1445 bytes]
01/28/10 23:08:54.240028 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 1445 bytes]
01/28/10 23:08:54.240040 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 1445 bytes]
01/28/10 23:08:54.259909 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 1445 bytes]
01/28/10 23:08:54.259920 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 1445 bytes]
01/28/10 23:08:54.279893 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 1445 bytes]
01/28/10 23:08:54.279904 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 1445 bytes]
01/28/10 23:08:54.299748 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 1445 bytes]
01/28/10 23:08:54.299812 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 1445 bytes]
01/28/10 23:08:54.319898 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 1445 bytes]
01/28/10 23:08:54.319909 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 1445 bytes]
01/28/10 23:08:54.339843 zmc_m1[570].DB3-zm_remote_camera.cpp/225 [Expecting 796 bytes]
01/28/10 23:08:54.339854 zmc_m1[570].DB3-zm_remote_camera.cpp/250 [Read 796 bytes]
01/28/10 23:08:54.359743 zmc_m1[570].DB3-zm_remote_camera.cpp/220 [Socket closed]
01/28/10 23:08:54.359776 zmc_m1[570].DB3-zm_remote_camera.cpp/526 [Got end of image by closure, content-length = 9466]
01/28/10 23:08:54.361041 zmc_m1[570].DB3-zm_remote_camera.cpp/536 [Trimmed end of image, new content-length = 9462]
01/28/10 23:08:54.361051 zmc_m1[570].DB3-zm_remote_camera.cpp/551 [Returning 9462 (9466) bytes of captured content]
01/28/10 23:08:54.361208 zmc_m1[570].ERR-zm_jpeg.c/38 [Not a JPEG file: starts with 0x35 0x39]
01/28/10 23:08:54.361251 zmc_m1[570].ERR-zm_remote_camera.cpp/1129 [Unable to decode jpeg]
01/28/10 23:08:54.361267 zmc_m1[570].ERR-zmc.cpp/252 [Failed to post-capture monitor 0]
Thoughts/suggestions?

Thanks
Petey
Posts: 4
Joined: Sun Feb 13, 2011 7:01 am

Post by Petey »

I ran into a very similar issue tonight.

I'm fairly certain that the issue is with ZoneMinder not properly dealing with the chunked transfer encoding method.

In chunked transfer mode, the content length immediately precedes the content, instead of being in the Content-length: header. ZM is ignoring the "Transfer-Encoding: chunked" directive, and trying to begin parsing the image data right away when it should be getting the image length first.

Edit: I should mention the work-around, too!
Go to Options -> Network and change HTTP_VERSION to 1.0.
This works because chunked transfer is a 1.1 standard.
Post Reply