Page 1 of 2

Zone Minder is repeating frames

Posted: Tue Oct 18, 2005 7:13 am
by mahendrar
Hello friends ,

I have got a very strange problem as ZM is not storing frames in correct order.

The Time Delta of these frames shows the order is not correct(i.e. the frames which occured earlier is stored after some frames.)The time of occurence of these frames is also not in proper order.

I am pasting the Frame listing of such an event.

Frame Id Alarm Frame Time Stamp Time Delta Score
1 No 16:44:05 -1.00 0
2 No 16:44:05 -0.94 0
3 No 16:44:05 -0.91 0
4 No 16:44:05 -0.84 0
5 No 16:44:05 -0.81 0
6 No 16:44:05 -0.74 0
7 No 16:44:05 -0.71 0
8 No 16:44:05 -0.64 0
9 No 16:44:05 -0.61 0
10 No 16:44:06 -0.52 0
11 No 16:44:06 -0.50 0
12 No 16:44:06 -0.43 0
13 No 16:44:06 -0.40 0
14 No 16:44:06 -0.33 0
15 No 16:44:06 -0.30 0
16 No 16:44:06 -0.23 0
17 No 16:44:06 -0.20 0
18 No 16:44:06 -0.13 0
19 No 16:44:06 -0.10 0
20 No 16:44:06 -0.03 0
21 Yes 16:44:06 0.00 1
22 No 16:44:06 0.10 0
23 No 16:44:06 0.26 0
24 No 16:44:06 0.36 0
25 No 16:44:06 0.40 0
26 Yes 16:44:07 0.51 1
27 Yes 16:44:07 0.57 1
28 No 16:44:06 -0.36 0
29 No 16:44:07 0.71 0
30 No 16:44:07 0.77 0
31 No 16:44:07 0.81 0
32 No 16:44:07 0.87 0
33 No 16:44:06 0.23 0
34 No 16:44:07 1.00 0
35 No 16:44:07 0.54 0
36 No 16:44:07 1.20 0
37 No 16:44:06 -0.03 0
38 No 16:44:06 0.16 0
39 No 16:44:06 0.30 0
40 No 16:44:07 0.51 0
41 No 16:44:07 0.61 0
42 No 16:44:07 0.71 0
43 No 16:44:07 0.87 0
44 No 16:44:07 0.97 0
45 No 16:44:07 1.06 0
46 No 16:44:07 1.23 0
47 No 16:44:07 1.36 0

Look at frame no 28 and 33 .These frames are not at proper place.

Please help me find the solution of this problem.

Thanks,
Mahendra
________
medical marijuana card

Posted: Wed Oct 19, 2005 11:42 am
by zoneminder
Can you give us some more details about distro and ZM version, your configuraiton etc?

Phil

Some Log Messages

Posted: Fri Oct 21, 2005 8:17 am
by mahendrar
Phil,

My configuration is as following:

Distribution--->Fedora core 3.
ZM version---->zm-1.21.3.

I am using BTTV card.

I have not made any changes in zm.

I am pasting some lines from /var/log/messsages.

Oct 21 03:15:16 ns1 zmc_d0[3050]: WAR [Buffer overrun at index 36 ]
Oct 21 03:15:16 ns1 zma_m1[3058]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Oct 21 03:15:16 ns1 zmc_d0[3050]: WAR [Buffer overrun at index 5 ]
Oct 21 03:15:16 ns1 zma_m1[3058]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Oct 21 03:15:16 ns1 zmc_d0[3050]: WAR [Buffer overrun at index 7 ]
Oct 21 03:15:16 ns1 zma_m1[3058]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Oct 21 03:15:16 ns1 zmc_d0[3050]: WAR [Buffer overrun at index 9 ]
Oct 21 03:15:17 ns1 zma_m1[3058]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Oct 21 03:15:17 ns1 zmc_d0[3050]: WAR [Buffer overrun at index 11 ]
########################################################
I am using Image buffer count as 40
Pre Event buffer count as 20 and post event count as 20.

Please telll me when ZM generate these warnings.
When i went through ZM code i found that when the value of index is same as the value of last frame index then this warning is genrated.

Thanks in advance.
Mahendra.
________
Honda Dualnote

Posted: Fri Oct 21, 2005 9:41 am
by jameswilson
WAR [Approaching buffer overrun, consider increasing ring buffer size]

have you tried increasing the ring buffer size above 40 to say 60

Posted: Fri Oct 21, 2005 2:40 pm
by zoneminder
You may need to restart ZM to ensure that the new buffer sizes get propagated correctly.

Phil

Posted: Mon Oct 24, 2005 7:50 am
by mahendrar
Thanks phil for ur reply,

But i want to know the exact reason why this problem is occuring.Is there any memory leak in one of the Components of ZM.
________
roll blunts

Posted: Mon Oct 24, 2005 8:25 am
by jameswilson
A buffer overrun usually means that your system cannot handle the framerate you are asking of it. you can either drop the frame reate or increase the buffers. Because its overuning its having to restart so this would cause your frames to be out of sync. Fix the overrun issue and your frames should be correct

Posted: Tue Nov 08, 2005 7:11 am
by mahendrar
Thanks for your reply,

I am capturing at 10 fps and zma is processing at the speed of 55.

Can you please tell me where can i configure the fps for zma(processing)

Thanks in advance,
________
vaporgenie vaporizer

Posted: Tue Nov 08, 2005 9:49 am
by zoneminder
Zma should not be processing any faster than zmc, if anything it is usually slower. Did you get this figure from the logs?

Phil

Posted: Tue Nov 08, 2005 10:50 am
by mahendrar
Hello phil,

These are some lines from /var/log/messages:

Nov 8 03:04:09 nfs zmc_m1[26606]: INF [New: 111000 - Capturing at 12.82 fps]
Nov 8 03:04:09 nfs zma_m1[26727]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Nov 8 03:04:09 nfs zmc_d0[26719]: WAR [Buffer overrun at index 30 ]
Nov 8 03:04:09 nfs zma_m1[26727]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Nov 8 03:04:10 nfs zmc_d0[26719]: WAR [Buffer overrun at index 0 ]
Nov 8 03:04:11 nfs zma_m1[26727]: INF [New: 19600 - Processing at 57.14 fps]

I have set the maximum fps as 10.00 in my monitor's configuration.

Thanks in advance.
________
Plymouth Deluxe

Posted: Tue Nov 08, 2005 1:02 pm
by zoneminder
What did you increase the ring buffer size to?

Phil

Posted: Wed Nov 09, 2005 5:21 am
by mahendrar
Hi Phil,

I did not change the ring buffer size(Image Buffer Count).

Thanks
________
vaporizer reviews

Posted: Wed Nov 09, 2005 8:14 am
by zoneminder
Well, as James suggested earlier in this thread, that I think is what you need to do to resolve your problem.

Phil

Posted: Wed Nov 09, 2005 11:50 am
by mahendrar
Thanks Phil,

But i have restarted my server and i have entered the maximum fps as 10.00 in my monitor.

Please tell me how can i ask my machine to process at the slower fps.

Thnaks and regards,
Mahendra
________
Ferrari F2008 history

Posted: Wed Nov 09, 2005 12:05 pm
by jameswilson
put something lower than 10 in the fps in your monitor for example 2