No data streams from ANC-606V camera

Forum for questions and support relating to the 1.24.x releases only.
Locked
lordandmaker
Posts: 2
Joined: Tue Aug 04, 2009 3:08 pm

No data streams from ANC-606V camera

Post by lordandmaker »

I'm trying to use ZoneMinder to monitor an ANC-606V camera (a pdf of its product brochure is here, and I can't find out anything else about it).

In short, my feeling is that ZM is not getting any data from the camera, but I've no real knowledge to base that upon. This is my first foray into anything to do with video.

I've installed Zoneminder from the Debian repositories under Debian Sid. When I visit the camera via http, I can view the video feed, once I've installed an ActiveX object (I can only view it in IE). I can view a snapshot of the camera without any additional installs.
The Debian box is a workstation of sorts, it resides at 10.40.1.43. ZM is installed to /usr/share/zoneminder, which is Aliased to /cctv in my apache2 config. /usr/share/zoneminder/cgi-bin is ScriptAliased to /cctv/cgi-bin.
I have a Windows machine at 10.40.1.42 which I'm using to test it. The person who is to use it most will be using IE6 under WinXP.

I've tried accessing the ZM monitor for the camera with Firefox and IE under Windows, and Iceweasel (Firefox) and Epiphany under Debian, with no luck so far.

If I've set STREAM_METHOD to jpeg, all browsers act as if the image doesn't exist. IE displays its box with a red cross on it. The source of the image is:
http://10.40.1.43/cctv/cgi-bin/nph-zms? ... 1249399694
I've tried installing the cambozola applet by downloading the .jar to /cctv, but even with the permissions set to 777 all I get in IE is information on copyright and the version number. I can click on the applet, and it presents a window with the url (http://10.40.1.43/cctv/cgi-bin/nph-zms? ... 1249400205) and an FPS count of zero.

If I set the video to be output as mpg, all browsers recognise that there *should* be something to stream there (as implied by the html), but none can find it. They're looking for it at:
http://10.40.1.43/cctv/cgi-bin/nph-zms? ... 1249397267


And I've now run out of ideas of what to try. I'm assuming that I've either done something wrong, or this camera just doesn't work with ZM. Any ideas?
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

go open up /var/log/zm/

see whats in there in the mean time did you set the shared memory
lordandmaker
Posts: 2
Joined: Tue Aug 04, 2009 3:08 pm

Post by lordandmaker »

Aha! I'd re(mis)configured the logs path to a directory it couldn't write to, which explains yesterday's absence of logs. Pertinent error messages now:

Code: Select all

jup-linux2:/var/log/zm# tail zmwatch.log 
08/05/09 09:54:59.480734 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/05/09 09:55:09.481320 zmwatch[26909].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/05/09 09:55:09.481996 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/05/09 09:55:09.482441 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/05/09 09:55:19.483039 zmwatch[26909].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/05/09 09:55:19.483444 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/05/09 09:55:19.483642 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/05/09 09:55:29.484266 zmwatch[26909].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/05/09 09:55:29.484725 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
08/05/09 09:55:29.484857 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
Which to me looks like it's less an issue of a lack of shared memory, and more that the id's not correct, though I don't know how to work out what to change it to.

I looked at Kushnirenko's post on setting shared memory, and from what I gather, with one 640x480 colour camera I'd need 921600 bytes plus some room for error. My shmall and shmmax are

Code: Select all

jup-linux2:/var/log/zm# cat /proc/sys/kernel/shmall
2097152
jup-linux2:/var/log/zm# cat /proc/sys/kernel/shmmax
33554432
and they look quite above the minimum. This is the first time I've looked at shared memory at all, so I'm going to go read up on it, but any handy pointers as to what needs changing (and perhaps more importantly, how to work out what to change it to) would be really appreciated.

Cheers!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I can view the video feed, once I've installed an ActiveX object (I can only view it in IE). I can view a snapshot of the camera without any additional installs.
Make sure you use snapshot mode in ZM then, Linux does not support ActiveX.

You might try to sniff the packets to see if you can get the source of the stream though that the applet is pulling from. This might work and depends on they designed the cam.
08/05/09 09:54:59.480734 zmwatch[26909].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
This is not a shared memory error per say as your thinking of, It is expected if for any reason that zmc can not grab an image for nothing to be in shared memory.
Locked