Page 1 of 1

Buffer overrun, how to shut down alarm

Posted: Fri Nov 14, 2003 8:56 am
by loop
QUESTION 1:

var/log/messages displays:
zma-m1: WAR approaching buffer overrun, consider increasing ring buffer
zmc-do: WAR Buffer overrun at index 4
....

Which buffers should I increase? I'm using Mozilla on Win and after a few seconds of streaming the stream stops and only now and then some image is refreshed.

QUESTION2:
How can I turn of alarm? It bothers me that some pictures in archive have red outlines on it. I want only motion detection to be recorded.

Re: Buffer overrun, how to shut down alarm

Posted: Fri Nov 14, 2003 10:20 am
by zoneminder
Hi Darko,

A1 - What buffers you need depends on how fast your image is being captured and how many pre-alarm frames you want. If you are capturing at 25fps I would have a ring buffer of 75 at least, more if your pre-alarm buffer is above 10. The other thing you can try is to turn off adaptive frame skipping in the options as this works best when it's got room in the buffer to fall behind a bit before catching up. Turning it off means that the analysis daemon will just read the latest image whenever it was generated. Also, try switching off event_stats and switching on opt_frame_server to see if that helps. A caveat however is that sometimes you get the buffer overrun error if there was a problem with zma and it has now been switched off (ie you are in Monitor mode). In this circumstance it can be ignored but you should probably restart zmc just to clear it out.

A2 - At the moment you can't. There are two images recorded during an alarm, the capture frame which is the basic image and an analysis one which is highlighted with the areas detected. You can safely delete the analysis image and the capture one will be used instead in the web pages etc. However I think you make a valid point and it is pretty easy to make the recording of analysis images optional which I will do for the next release shortly.

Phil,