Multiple High Resolution Camera

Forum for questions and support relating to the 1.28.x releases only.
Locked
geraldbrandt
Posts: 134
Joined: Tue Dec 09, 2014 10:20 pm

Multiple High Resolution Camera

Post by geraldbrandt »

Hi,

I have 3 cameras on my 1.28.0 system, two at 1280x960 and one at 1280x800. I had to take one of them down to grayscale in order to get the camera working. As soon as all three are RGB24, the capture fails to run.

I'm hoping to get 4 more cameras on board. Setting shared memory didn't seem to help at all.

Any ideas what I can do?

Gerald
bbunge
Posts: 2967
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Multiple High Resolution Camera

Post by bbunge »

What OS are you running? What are the server specs (RAM, speed, # of cores)?
geraldbrandt
Posts: 134
Joined: Tue Dec 09, 2014 10:20 pm

Re: Multiple High Resolution Camera

Post by geraldbrandt »

Core 2 Quad @ 2.66 GHz with 1GB RAM. I thought it had more...
Ubuntu 14.04 64bit

I'm only using about 1/2 the RAM though, the rest is cache.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Multiple High Resolution Camera

Post by knight-of-ni »

You need a lot more memory than just 1GB to do what you are trying to do. Zoneminder uses your ramdisk for shared memory.
For example, on my home system with 8 cameras, the ramdisk is currently at 647MB, and all but one of my cameras are vga/D1 resultion.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
AnotherBrian
Posts: 114
Joined: Tue Jul 27, 2010 6:36 am

Re: Multiple High Resolution Camera

Post by AnotherBrian »

My system (ubuntu 14.04 with 7 1280x720 cameras) as reported by system monitor utilizes only 1.7 gigabytes of my ram and no swap space.
ipcs -m returns the shared memory segments which total up to 74 megabytes.
Are you sure there is a ram disk? I don't see one on my system.
User avatar
c128
Posts: 88
Joined: Sat Sep 14, 2013 3:36 pm

Re: Multiple High Resolution Camera

Post by c128 »

Zoneminder does generate output to

Code: Select all

/dev/shm
- so that's in RAM.

On my system (4 active cameras, one inactive):

Code: Select all

root@cctv:/dev/shm# ls -alh
total 660M
drwxrwxrwt  2 root     root      140 Nov 30 18:46 .
drwxr-xr-x 21 root     root      780 Dec 13 11:25 ..
-rw-------  1 www-data www-data 176M Nov 30 18:46 zm.mmap.1
-rw-------  1 www-data www-data 132M Nov 30 18:46 zm.mmap.2
-rw-------  1 www-data www-data 176M Nov 30 18:46 zm.mmap.3
-rw-------  1 www-data www-data 132M Nov 30 18:46 zm.mmap.4
-rw-------  1 www-data www-data  44M Nov 30 18:46 zm.mmap.5
root@cctv:/dev/shm# df -h .
Filesystem      Size  Used Avail Use% Mounted on
none            938M  660M  279M  71% /run/shm
root@cctv:/dev/shm# 
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Multiple High Resolution Camera

Post by knight-of-ni »

AnotherBrian wrote:My system (ubuntu 14.04 with 7 1280x720 cameras) as reported by system monitor utilizes only 1.7 gigabytes of my ram and no swap space.
ipcs -m returns the shared memory segments which total up to 74 megabytes.
Are you sure there is a ram disk? I don't see one on my system.
Most every modern Linux distro has a ramdisk mapped to /dev/shm. It dynamically grows as items are placed in it. ZoneMinder uses that area to place its mmap'ed files.
Last edited by knight-of-ni on Sat Dec 13, 2014 3:35 pm, edited 1 time in total.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
geraldbrandt
Posts: 134
Joined: Tue Dec 09, 2014 10:20 pm

Re: Multiple High Resolution Camera

Post by geraldbrandt »

knnniggett wrote:You need a lot more memory than just 1GB to do what you are trying to do. Zoneminder uses your ramdisk for shared memory.
For example, on my home system with 8 cameras, the ramdisk is currently at 647MB, and all but one of my cameras are vga/D1 resultion.
Thanks! Upped RAM to 2GB, and all is well. Dunno why I didn't think of that myself.

Gerald
Locked