Page 1 of 2

DCS-5300G and interesting fact

Posted: Sun Jul 03, 2005 7:58 am
by zmpenguin
Hey friends!

I have spent 5 month to figure out how to make this camera work with zoneminder.

It only gives black image for "still" and broken jpg icon for "streaming".

But interestingly there is a software called SecuritySpy. This is made for MacOS X and uses jpg over http method.

It just works perfectly! Even tilt and pan works with it. I was surprised.

But I can not use my powerbook always for this purpose.

Therefore I must press on to make zoneminder work with this xXX camerea (damn I should have read forum before I buy this camera!)

I believe there must be a solution to make zoneminder work with DCS-5300G.

Any suggestions?
:(

Posted: Sun Jul 03, 2005 8:13 am
by Blazer
It sounds like you just need to find the exact url to request to get the image. Perhaps a network sniffer?

I did

Posted: Mon Jul 04, 2005 9:30 pm
by zmpenguin
I set the correct path
host 192.168.x.X
path /cgi-bin/video.jpg

Do you think this si library problem?

Any other possible reason?

Posted: Wed Jul 06, 2005 2:58 pm
by zoneminder
Is this definately the correct path? Can you do a wget using it to get images sent down?

Phil

it works well through web browser

Posted: Mon Jul 18, 2005 4:30 am
by zmpenguin
When I type that path on firefox there was no problem to get snapshot.

Posted: Mon Jul 18, 2005 4:40 am
by cordel
Have you tried both ZM_HTTP_VERSION 1.1 and 1.0 in the options under the network tab?
If that don't get it then do as Phil suggests and do a wget just real short as only need the headers portion and post that here.
Regards,
Cordel

wget result

Posted: Sat Jul 30, 2005 5:06 pm
by zmpenguin
wget http://admin:*password*@192.168.0.51:80 ... /video.jpg
--10:01:22-- http://admin:*password*@192.168.0.51:80 ... /video.jpg
=> `video.jpg`
connecting to 192.168.0.51:8001... connnected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [image/jpeg]

[ <=> ] 14,912 67.66K/s

10:01:23 (67.52 KB/s) - `video.jpg' saved [14,912]



Okay, video.jpg downloaded and seems like someting wrong to display on zoneminder.

I am using zoneminder 1.21.0 liveCD.

Thanks

zmdc.log file

Posted: Sat Jul 30, 2005 8:32 pm
by zmpenguin
I don't know if this is going to be useful to analyze problem

this is part of zmdc.log file
======================================

Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:02:00
'zmc -m 2' starting at 05/07/30 13:02:00, pid = 4588
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
'zmc -m 2' died at 05/07/30 13:02:00, signal 6
Command 'zmc -m 2' removed from pending list at 05/07/30 13:07:50
'zmc -m 2' started at 05/07/30 13:07:50
'zmc -m 2' starting at 05/07/30 13:07:50, pid = 4866
Can't find process with command of 'zma -m 2'
'zmc -m 2' stopping at 05/07/30 13:08:10
'zmc -m 2' died at 05/07/30 13:08:10, signal 10
'zmc -m 2' started at 05/07/30 13:08:10
'zmc -m 2' starting at 05/07/30 13:08:10, pid = 4927
'zmc -m 2' crashed at 05/07/30 13:08:10, exit status 255
'zmc -m 2' starting at 05/07/30 13:08:10, pid = 4929
'zmc -m 2' started at 05/07/30 13:08:10
Can't find process with command of 'zma -m 2'
'zmc -m 2' crashed at 05/07/30 13:08:10, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:08:15
'zmc -m 2' starting at 05/07/30 13:08:15, pid = 4948
'zmc -m 2' crashed at 05/07/30 13:08:15, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:08:25
'zmc -m 2' starting at 05/07/30 13:08:25, pid = 4974
'zmc -m 2' crashed at 05/07/30 13:08:25, exit status 255
Command 'zmc -m 2' removed from pending list at 05/07/30 13:08:42
'zmc -m 2' started at 05/07/30 13:08:42
'zmc -m 2' starting at 05/07/30 13:08:42, pid = 5015
'zmc -m 2' crashed at 05/07/30 13:08:42, exit status 255
'zmc -m 2' started at 05/07/30 13:08:42
'zmc -m 2' starting at 05/07/30 13:08:42, pid = 5017
'zmc -m 2' crashed at 05/07/30 13:08:42, exit status 255
Can't find process with command of 'zma -m 2'
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:08:47
'zmc -m 2' starting at 05/07/30 13:08:47, pid = 5040
'zmc -m 2' crashed at 05/07/30 13:08:47, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:08:57
'zmc -m 2' starting at 05/07/30 13:08:57, pid = 5060
'zmc -m 2' crashed at 05/07/30 13:08:57, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:09:17
'zmc -m 2' starting at 05/07/30 13:09:17, pid = 5095
'zmc -m 2' crashed at 05/07/30 13:09:17, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:09:57
'zmc -m 2' starting at 05/07/30 13:09:57, pid = 5173
'zmc -m 2' crashed at 05/07/30 13:09:57, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:11:17
'zmc -m 2' starting at 05/07/30 13:11:17, pid = 5257
'zmc -m 2' crashed at 05/07/30 13:11:17, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:13:57
'zmc -m 2' starting at 05/07/30 13:13:57, pid = 5284
'zmc -m 2' crashed at 05/07/30 13:13:57, exit status 255
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/07/30 13:19:17
'zmc -m 2' starting at 05/07/30 13:19:17, pid = 5368
'zmc -m 2' crashed at 05/07/30 13:19:17, exit status 255

==========================================
I think I have a similiar problem with "status idle" by "pjj" and on the forum

I think I am near the solution but I am not sure.

Thanks for all your help anyways

Problem Solved But

Posted: Sun Jul 31, 2005 11:02 pm
by zmpenguin
I was using shuttle xpc as video server with on board VGA

I checked /var/log/messages

and I saw errors about shared mermory.

So I purchased Nvidia 6600 VGA and there was no problem any more.

Damn it! stay away from on board VGA guys.

And DCS-5300G is working with 352x240 jpg.

Add this hardware on compatibility list but I do not recommend this

One more thing is cycle and montage view I don't know why the picture was distorted should I upgrade to 1.21.3?

When it goes to bottom the image moves to the right so right side of image comes back to the left.

I want to show you the picture but I don't know how to upload.

Please help this part.

Thanks for all your help

Posted: Sun Jul 31, 2005 11:15 pm
by jameswilson
check that your montage size is the same or w non decimal devision by in your option. Easy as your only capturing that res 352x240. i think the default is 360. Just an idea

Regards James

Thank you

Posted: Mon Aug 01, 2005 2:31 am
by zmpenguin
Yeah the size of montage was different.

I fixed it.

I really appreciate your help.

Now I am happy.

Guys D-Link provide their own recording program for windows don't use it.

Why?

Cause it sucks.

It makes camera die frequently and they don't know how to fix it.

Dumb-Link.

Zoneminder rocks!

Posted: Thu Mar 30, 2006 5:31 am
by tenchima
I got a DCS-5300W cheap and thought I would try it. I already have got a Netcam and an Intellinet to work, so I figured how hard can it be?...

Having reset the system to default, I ran the firmware upgrades to 1.04.

Now, to get an image via a web page I have to enter:
http://192.168.254.29/cgi-bin/video.jpg?size=2
This retrieves an image 352x240

(If I just enter http://192.168.254.29/cgi-bin/video.jpg I get an image 176x120 in size)

So - I entered this in ZoneMinder:

Remote Host Name: 192.168.254.29 (no password curently set)
Remote Host Port: 80
Remote Host Path: /cgi-bin/video.jpg?size-2
Remote Image Colours: 24 bit color
Capture Width (pixels): 352
Capture Height (pixels): 240
Orientation: Normal

I get no image (even just use the default small size)
Any suggestions would be most welcome.

-Andy

Posted: Thu Mar 30, 2006 8:43 pm
by zoneminder
I would suggest checking the logs, and if there is nothing in there, setting the debug level higher and seeing if we can follow through why it might not be working.

Posted: Fri Mar 31, 2006 6:28 am
by tenchima
OK - I upped the debug level to 5 and turned off the other monitors:

03/30/06 21:57:35.559514 zmu[3594].INF-zm_debug.c/304 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.03594]
03/30/06 21:57:35.569164 zmu[3594].DB1-zm_monitor.cpp/1471 [Got 1 monitors]
03/30/06 21:57:35.571154 zmu[3594].DB1-zm_monitor.cpp/149 [monitor purpose=0]
03/30/06 21:57:35.571231 zmu[3594].DB1-zm_monitor.cpp/156 [shm.size=2534868]
03/30/06 21:57:35.571410 zmu[3594].DB1-zm_zone.cpp/49 [Initialised zone 0/All - 1 - 352x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
03/30/06 21:57:35.576510 zmu[3594].DB1-zm_monitor.cpp/224 [Monitor DCS-5300W has function 2]
03/30/06 21:57:35.576607 zmu[3594].DB1-zm_monitor.cpp/225 [Monitor DCS-5300W LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
03/30/06 21:57:35.576634 zmu[3594].DB1-zm_monitor.cpp/226 [Monitor DCS-5300W IBC = 10, WUC = 5, pEC = 5, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
03/30/06 21:57:35.576694 zmu[3594].DB1-zm_monitor.cpp/1570 [Loaded monitor 2(DCS-5300W), 0 zones]


I then upped the debug to 8

03/30/06 22:08:49.325819 zmu[2928].INF-zm_debug.c/304 [New Debug Level = 8, New Debug Log = /tmp/zm_debug.log.02928]
03/30/06 22:08:49.328186 zmu[2928].DB1-zm_monitor.cpp/1471 [Got 1 monitors]
03/30/06 22:08:49.330177 zmu[2928].DB1-zm_monitor.cpp/149 [monitor purpose=0]
03/30/06 22:08:49.330270 zmu[2928].DB1-zm_monitor.cpp/156 [shm.size=2534868]
03/30/06 22:08:49.330455 zmu[2928].DB1-zm_zone.cpp/49 [Initialised zone 0/All - 1 - 352x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
03/30/06 22:08:49.335883 zmu[2928].DB1-zm_monitor.cpp/224 [Monitor DCS-5300W has function 2]
03/30/06 22:08:49.335993 zmu[2928].DB1-zm_monitor.cpp/225 [Monitor DCS-5300W LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
03/30/06 22:08:49.336022 zmu[2928].DB1-zm_monitor.cpp/226 [Monitor DCS-5300W IBC = 10, WUC = 5, pEC = 5, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
03/30/06 22:08:49.336081 zmu[2928].DB1-zm_monitor.cpp/1570 [Loaded monitor 2(DCS-5300W), 0 zones]

The /var/log/messages shows:
Mar 30 22:22:03 ryoko zmwatch[2491]: INF [Restarting capture daemon for DCS-5300W, shared memory not valid]
Mar 30 22:22:03 ryoko zmu[3068]: INF [New Debug Level = 8, New Debug Log = /tmp/zm_debug.log.03068]
Mar 30 22:22:03 ryoko zmu[3068]: ERR [Shared memory not initialised by capture daemon]
Mar 30 22:22:04 ryoko zmdc[3071]: INF ['zmc -m 2' started at 06/03/30 22:22:03]
Mar 30 22:22:04 ryoko zmdc[2442]: INF ['zmc -m 2' starting at 06/03/30 22:22:04, pid = 3071]
Mar 30 22:22:04 ryoko zmc_m2[3071]: INF [Debug Level = 0, Debug Log = <none>]
Mar 30 22:22:04 ryoko zmc_m2[3071]: INF [New Debug Level = 8, New Debug Log = /tmp/zm_debug.log.03071]
Mar 30 22:22:04 ryoko zmdc[2442]: INF ['zmc -m 2' died, signal 6]
Mar 30 22:22:04 ryoko zmwatch[2491]: INF ['zmc -m 2' started at 06/03/30 22:22:03]

Is this a shared memory issue? I have the following added to
/etc/sysctl.conf:
kernel.shmall = 262144
kernel.shmmax = 134217728

Buffers (DCS)
Images Buffer Size 10
Warmup frames 5
Pre Event Image Buffer 5
Post Event Image Buffer 10
Alarm Frame Count 1

Also - my other camera (Netcam) works fine.

-A.

Posted: Fri Mar 31, 2006 1:08 pm
by zoneminder
I think your Image Buffer Size is probably rather too small and should probably 25 at least but I don't think that is the problem here, though it won't help.

I am a little suspicious of the zones for this monitor as it says it doesn't have any. When created it should have had a default one installed, but this seems to have disappeared. It should still use a default setting even if this is the case but as it pretty much never happens it's possible something there is broken.

I would go to the Zones setup and make sure you have at least one zone and see if that makes any difference.