[SOLVED] Can't have more than 2 cameras.

Support and queries relating to all previous versions of ZoneMinder
Locked
LuisC-SM
Posts: 6
Joined: Sun Jun 01, 2008 4:16 pm
Location: Mexico

[SOLVED] Can't have more than 2 cameras.

Post by LuisC-SM »

Greetings from Mexico.

First off let me thank You so much for such nice piece of software.

I have installed ZoneMinder without a hitch in Mandriva 2008.0 and 2008.1 (Using Terry's binaries (Thanks BTW Terry!)) I can use 1 or 2 webcams with no single problem or 1 webcam and an IP camera.

Before buying any camera I've come and see whcih were supported and bought these ones:

D-Link 900 Rev B (Works with ZM)
D-Link 3220 (works with ZM)
NC1200 ("works" but I decided tu turn it back to the store due to overheating)
Axis 207 W (works like a champ)
2 Genius webcams which work with the "gspcav" driver with no hitches.

What I did since the beginning was to install one of the webcams and later added one of the above IP cams... no problems if I only add just one camera... when I try to add the 3rd cam with its normal configuration, I recieve a "red" IP.
I was thinking all the time that I should change the 3rd camera to any other port instead of using the default one "80", something like 8082... here I'm not sure.
In case I must chnge the next cameras to aother port (8082, 8084 and so on).. I suppose I must also change apache to open the new opened ports (which I don't know where and how todo it)

I'm not asking for apache support (in case my guess applies), but any kind of help/hints would be very appreciated.

My linux skills are from basic to medium even when I have been using linux for quite a while (4+ years) but my profession is the construction. But normally I'm a good understander.

My hardware specs for my house project are as follows.

CPU Intel Duo Core 2.2 GHz
RAM 4 GB
HD Serial ATA 500 GB
GPU nVidia GF 7200.

My project is to protect my house from burglars as far as there are a lot of robberies in the near and I've suffered already 3 of them and I have only girls in my family (3 daughters and my wife.).

I've seen ZoneMinder is not a "easy" to use softwre, but I've also seen that with some patience I can get the best out of it.

Any kind of help will be very appreciated. Thanks for the time you are taking to read these lines and

Kind Regards

Luis

EDIT:
I forgot to clarify some things I've made after attaching the 3rd and 4rt camera:

1. As attaching the 3rd or 4rth camera did not work, I've deleted my 1st IP cam and and a new one to see if it works (restarting ZM off course and some times even restarting apache and mysql)
2. In a post I saw that probabily this was a memory problem and to fix it they recommend to issue the following commands:
# echo kernel.shmmax = 134217728 >> /etc/sysctl.conf
# sysctl -p
which I did (I don't know if this was correct though).
3. I've read the wikki and the README and this forum to see if I find a similar thread and have'nt found anything related..
4. I've read some logs but to be honest I just don't know what I'm missing (no clue on the info)
Last edited by LuisC-SM on Tue Jun 03, 2008 1:18 am, edited 1 time in total.
La humildad no es un "Status".... ¡ "es un Don" !
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might try turning on debug and setting the level to 3.
Your problem certainly sounds like you don't have enough shared memory but the echo statement you used requires a system reboot to take effect.

I also recall an issue with having two web cams on the same controler that could be corrected buy either pluging the cam into a seperate controler on your mainboard should you have one or, using a hub. I don't use web cams, nor do I have any so I can not confirm this. As I recall it had to do with properly allocating bandwidth for the use of but cams on the same usb controler and for some reason introducing a USB hub corrects this.
LuisC-SM
Posts: 6
Joined: Sun Jun 01, 2008 4:16 pm
Location: Mexico

Post by LuisC-SM »

Thanks a lot Cordel for your prompt response:

The debug level is "now" set to 3. I did reboot my system after this command: "# echo kernel.shmmax = 134217728 >> /etc/sysctl.conf ", sorry I did not mention it.

The webcams work just fine, I have a 4 port hub and they work fine... In my testings, I've also done the following:
I've attached the webcams to the hub and both directly to my box and/or one to the hub and the other straight to usb connector.
To test the IP cams,I decided to use only one webcam and I've tried with the IPcam connected directly to my router and the rest to a 8 port switch

However, your guess about the memory has already been done but what I'm thinking is that the number used was; in most cases, for people who had issues using 512 MB of RAM.. I really have no idea but a thought that comes to my mind .... If I issue the same command posted above but with the double of the number ???.... This is only an idea and I don't really know what could possible happen nor if I'm right... I'm not that smart.

Kind Regards

Luis

PS. I noticed yesterday that my ZM version is 1.23.1 and there is a new RPM with 1.23.3.... I will install this RPM and will bring further info. This "could" also be of much help. In case something happens I'll bring any update.
La humildad no es un "Status".... ¡ "es un Don" !
LuisC-SM
Posts: 6
Joined: Sun Jun 01, 2008 4:16 pm
Location: Mexico

Post by LuisC-SM »

@Cordel

It's working now! (Still using v1.23.1)

Here are the steps I did just in case someone happens to have the same issues.
1. Changed (as you suggested) Options>Debug>ZM_EXTRA_DEBUG_LEVEL to 3 (My first impression is that maybe this did not help as far as I rebooted and restarted ZM about 5 times and nothing happened, but who knwos..)
2. I have 4GM of RAM so I increased the shtmml like this:
# echo kernel.shmmax = 256000000 >> /etc/sysctl.conf
# sysctl -p
This also seemed not to be of very much help as I rebooted after this 2 times with no joy.
What I really think that helped a lot was ...
3. In my axis conf, I disabled ithe password view and decreased the capture width and height to 352 x 240... and..... Voilaaa! it just worked!!!

Refreshed a couple of times my main GUI and it's working just perfect.
I strongly believe that moving int ZM v1.23.3 will do some improvements but that's another story.

My conclusion is that there is some kind of problem trying to use the 640 x 480 size, besides, I'm not a linux geek to be able to handle so many changes in the ZM configuration. I must learn and reRead the wikki and the README files until I get the idea on how to deploy ZM.

By the meantime, I can say that this issue is already SOLVED.

Thanks for your help and

Kind Regards

Luis

PS. After installing v1.23.3, I'll bring back some input (feedback) in case I get the bigger frames.
La humildad no es un "Status".... ¡ "es un Don" !
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

I am running 6 Axis 210 & 211's on ZM 1.23.3 @ 640x480, 30fps, it has been posted that auth most be turned off for the live viewer, as zm has no method to pass authentication to the camera's

It also has been known for shared memory resource problems with multiple camera's that you must setup the camera's then restart zm to properly setup the shared memory resources correctly.
LuisC-SM
Posts: 6
Joined: Sun Jun 01, 2008 4:16 pm
Location: Mexico

Post by LuisC-SM »

Thanks for your input @wkstill
wkstill wrote:I am running 6 Axis 210 & 211's on ZM 1.23.3 @ 640x480, 30fps, it has been posted that auth most be turned off for the live viewer, as zm has no method to pass authentication to the camera's
This is correct!, in fact, auth was not ticked (off). I meant to say Axis configuration console
It also has been known for shared memory resource problems with multiple camera's that you must setup the camera's then restart zm to properly setup the shared memory resources correctly.
Yeah, and I did this since the beginning, take a look to my first post.

Kind Regards

Luis
La humildad no es un "Status".... ¡ "es un Don" !
LuisC-SM
Posts: 6
Joined: Sun Jun 01, 2008 4:16 pm
Location: Mexico

Post by LuisC-SM »

UPDATE

I went through a whole new install (from zero) starting with mandriva 2008.0 FREE DVD and using GNOME.
I used Tracy's RPMs and installed ZM v1.23.3... everything went just fine.
The first thing I did before starting ZM for the first time was to increase the shared memory as mentioned above, increased some FF values to have a multiple view (this is mentioned in another post).
Deactivated AUTH to grant full permissions (as mentioned by wkstill) turn off REGEXP, increased Network TIMEOUT to 4500, increased Debug LEVEL to 3 /as suggested by Cordel) and things are working just fine.

I still cannot go to 640 x 480 size and 30 FPS as wkstill has but in the meantime I'll just stick to this configuration until I find the correct configuration of ZM.

One thing I noticed in my own distribution is that I'm using kernel-server instead of kernel-desktop/laptop (this is due to some comment I read about changing to the server kernel, gets better performance when using LAMP), and the difference is not noticeable but at least I did not suffered this time with black/white screens. Off course, this was probably due to my initial configuration before setting up the cams.

And the last but not the less, a note to @wkstill: Can you Please post your configuration ?... this seems very interesting for me as far as I'm going to change in a near future all my cams to AXIS as the difference with them is quite noticeable.

Kind Regards

Luis
La humildad no es un "Status".... ¡ "es un Don" !
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

I am running 9 axis camera's now, and have reduced the frame rates to 5fps, and 10fps on alarms...

I found trying to push 30fps it wasn't really doing 30fps.
Locked