Zoneminder fails to save over half the frames for an Event

Forum for questions and support relating to the 1.26.x releases only.
Locked
BlankMan
Posts: 147
Joined: Tue Jan 19, 2010 2:53 am
Location: Milwaukee, WI USA

Zoneminder fails to save over half the frames for an Event

Post by BlankMan »

Zoneminder 1.26.5 openSuSE 12.1

I have a Vivotek FD8134V camera, 1280x800, among others, that is streaming at 30fps. Zoneminder tells me so in the log, says capturing and analyzing at 30fps.

So why is it that when Zoneminder saves an Event it not saving 30fps? It's saving from 4 to 30fps, what ever it feels like, not 30fps.

As an example I have an Event that is 811.75 seconds, that's what Zoneminder tells me. At 30fps that should be 24,352 frames. Zoneminder has 9,603 frames for that Event.

Why?

All during the time this Event was being captured the Zoneminder log says the camera was being captured and analyzed at 30fps. There are no indications in the log that packets were missed, frames were dropped, etc.

Zoneminder failed to save over half the frames!!

Now mind you, the server used for this is no slouch. It's a Phenom II x6 1090T with 32G DDR3 1333 RAM an Areca SAS RAID controller with Cache and battery backup ST3000VX000 SATA3 6G/s disks, the OS is on a Vertex 4 SSD as is the MySQL DB on it's own mount point.

This is what Bonnie using a 64G test (-s) shows the disk(s) Zoneminder uses all to itself capable of:

Code: Select all

                              kB/s    CPU
Writing with putc()...        90440  85.1%
Rewriting...                 136186  11.8%
Writing intelligently...     387145  27.4%
Reading with getc()...       105620  96.4%
Reading intelligently...     262197  11.0%
Estimated seek time: raw 1.640ms, eff 1.579ms
It's a 9TB (4x3TB) RAID5 mount point that I keep less then 90% used. So that;s decent performance for RAID5.

So, why is Zoneminder losing 60% of the frames for an Event and this seems to be typical. I used this camera as an example but it happens to all.
BlankMan
Posts: 147
Joined: Tue Jan 19, 2010 2:53 am
Location: Milwaukee, WI USA

Re: Zoneminder fails to save over half the frames for an Eve

Post by BlankMan »

Well I just realized one frame is 3MB, so that's 92MB/sec. Realistically I see the jpg's in the 800K range, so that's 30MB/sec. With a few camera's capturing to disk at the same time that could be a problem.

I been thinking all along Zoneminder should save the stream not jpg frames, this might support that. I know there's an effort going on to do that. Time I check on its progress I guess...
TheKorn
Posts: 142
Joined: Fri Aug 02, 2013 12:39 pm

Re: Zoneminder fails to save over half the frames for an Eve

Post by TheKorn »

BlankMan wrote:Well I just realized one frame is 3MB, so that's 92MB/sec. Realistically I see the jpg's in the 800K range, so that's 30MB/sec. With a few camera's capturing to disk at the same time that could be a problem.
....WHAT!??!??!?

I have two 1280x800 cameras, and their jpeg size tops out at 100K/image! (Typical is between 60 and 80KB/image!) Yours are thirty times that. What are your jpeg quality settings???
Locked