Page 1 of 1
Event timeout
Posted: Sun Jul 17, 2011 7:51 pm
by asdil12
Hi,
I'm running ZM in Modect mode. The problem is, that ZM splits my events up into peaces of just a vew seconds each.
How can I increase the time/number of frames, ZM will wait for a new alarm, until it closes the event?
Re: Event timeout
Posted: Mon Jul 18, 2011 12:51 am
by bb99
If I understand your question correctly you need to increase your post buffer by quite a bit. Single click on camera source, then on buffer tab, increase "Post Event Image Count" to a value such as 130. At ten frames per second that will give you a continuation of the current event of 13 seconds before recording ZM stops and starts over. Any motion within that 13 seconds will continue the recording along with an additional 13 second continuation until the cycle is broken (no motion). Make any sense?
Re: Event timeout
Posted: Mon Jul 18, 2011 8:02 am
by asdil12
Yes - a just didn't know that the post-buffer can be increased above the buffer value. (buffer values above 40 break my system).
Changed the settings - let's see if it works correctly.
Re: Event timeout
Posted: Mon Jul 18, 2011 10:52 am
by bb99
If the buffer settings above 40 break your system you need to increase the shared memory value "shmmax".
Re: Event timeout
Posted: Mon Jul 18, 2011 11:18 am
by asdil12
Where can I change this option?
Re: Event timeout
Posted: Mon Jul 18, 2011 8:47 pm
by PacoLM
Re: Event timeout
Posted: Tue Jul 19, 2011 12:02 am
by bb99
From the documentation:
In recent kernels the shmmax is set to 3354432 bytes for only 32 MB of maximum shared memory allocatable at a time, hardly enough for ZoneMinder to go above 320 x 240 x 24-bit resolution at 40 frames in the buffer if it is using the /dev/shm shared memory device, so this value needs to be increased. If you are using ZoneMinder with the memory mapped (mmap) compile time option then this doesn't affect you
edit /etc/sysctl.conf if your going to do it manually. I recommend 150 TO 200% to begin with but I believe the script PacoLM gave you is more exact for your current resource needs.