Page 1 of 2
Lines in recorded events
Posted: Tue May 01, 2007 7:15 pm
by wilso027
Posted: Tue May 01, 2007 7:30 pm
by cordel
How do you have your cards configured?
How many cams, at what resolution/palette, and what are your pre buffers set to (see the Wiki FAQ or the README for calculating shared memory size as this is really what I'm after is the total needed for your system)?
What do you have your shmmax set to?
Posted: Wed May 02, 2007 10:47 pm
by wilso027
I have the 16 port, 120 fps card from bluecherry. I have it setting the bttv option card type to 77,77,77,77. This allows me to use all 16 channels, not all channels would work until I did this.
I am running the cameras at 320x240 with a RGB24 palette. I am using the defaults on my buffers as
Image Buffer Size=40
Pre Event Image Buffer=10
Post Event Image Buffer=10
My shmmax is set to 134217728 and I have it set in /etc/sysctl.conf so it sets that when it boots. Any ideas and thanks for the help.
Allan
Posted: Wed May 02, 2007 11:11 pm
by jameswilson
via chipset?
Posted: Wed May 02, 2007 11:20 pm
by cordel
So you need 9.216 MB per cam plus upto 10% overhead.
Camera total 147.456 MB
10% is 14.75 MB
Total Shared memory needed is 162.202MB
You have set 134217728
You about 28 Meg's short.
Posted: Thu May 03, 2007 12:20 pm
by wilso027
Is shared memory pulled from the ram, swap, or hard drive? Thanks for the help that makes sense. I just estimated and thought I had enough.
Allan
Posted: Thu May 03, 2007 4:41 pm
by robi
cordel wrote:So you need 9.216 MB per cam plus upto 10% overhead.
Camera total 147.456 MB
10% is 14.75 MB
Total Shared memory needed is 162.202MB
How did you calculate this?
Posted: Thu May 03, 2007 5:32 pm
by cordel
It's described in the README and the Wiki FAQ.
Posted: Thu May 03, 2007 5:33 pm
by W.
robi wrote:How did you calculate this?
frames are kept uncompressed in memory
320 pixels by
240 pixels
= 76800 pixels
76800 pixels by
3 clolors by
8 bits per color (so called 24bit colors)
= 1843200 bits per frame
1843200 bits per frame by
40 frames (the ring buffer size)
= 73728000 bits per camera
= 9216000 bytes per camera
= 9.216 MB per camera
+ 10% that is used by trigger data etc.
Shared memory calculation
Posted: Fri May 04, 2007 6:14 am
by robi
Oops, a little error in your calculation, as 1kB = 1024 bytes, not 1000! Same as MB vs kB.
In my case:
384x288 resolution, that makes: 110 592 pixels
in 24 bit color that's 2 654 208 bits per frame
by 80 frames ring buffer = 212 336 640 bits per camera
by 4 cameras = 849 346 560 bits.
Plus 10% overhead = 934 281 216 bits
That's 116 785 152 bytes, and
= 114 048 kB, respectively 111.38 MB.
If my shared memory is set to 134 217 728, which is exactly 128MB,
that means that I shouldn't have any problem, right?
How big can I set the shared memory on the system? I have 1 Gig of RAM.
Posted: Fri May 04, 2007 6:23 am
by cordel
robi that should be fine unless your having a problem with your system.
Posted: Fri May 04, 2007 7:14 am
by robi
cordel wrote:robi that should be fine unless your having a problem with your system.
Thanks. I changed it to 256Megs, for "just in case".
Posted: Fri May 04, 2007 7:21 pm
by wilso027
I upped the shared memory to 256000000 and I have 1.5 gigs of RAM in the system. I am still getting the lines pretty bad in three cameras. The rest look great. Here is a picture from a few minutes ago during a recorded event.
Link just in case
http://www.flickr.com/photos/81546799@N00/484172437/
I am not sure about the chipset on the card. It is a
PV-155 - 16 port video capture card (120FPS)
from BlueCherry
http://store.bluecherry.net/16_port_vid ... pv-155.htm
Any other ideas?
Posted: Sat May 05, 2007 4:09 am
by W.
have you tried to run memtest? just a wild guess.
Posted: Sat May 05, 2007 4:33 am
by cordel
Are all these cameras on the same device (ie. all on /dev/video1)?
I assume you restarted the zm service after making the shared memory changes?