Lines in video? why

Support and queries relating to all previous versions of ZoneMinder
Locked
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Lines in video? why

Post by apcyberax »

Hi i have jsut reinstalled zoneminder and i have come across a problem i had before. i have no idea why it started this again or what i can do to stop it.

the video is slowing random lines. they seem to be lines from other cams.

This is messing up the mocord any ideas???


Image


thanks
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

look for shared memory issues.
v1.25.0 + Ubuntu Linux 12.04 Server
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Post by apcyberax »

i don;t know much of the technical side to zoneminder. i have no idea what teh shared memory should be set to
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Post by haus »

Are your cams running higher than 320x240 (or whatever the PAL equivalent is, if you're using PAL)? Those look like interlacing lines for a cam running greater than 320x240 resolution. If so, try lowering the resolution to 320x240 and see if they go away.

Your frame rate is pretty low (that should help)...maybe try increasing captures-per-frame to 2 in the options? That'll decimate your frame rate, but it might help.
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Post by apcyberax »

the lines are lines from other cams. its like its now switching between them right.

I am only running at 320x240
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

We would need to know what you monitor settings are, all of them.
Height: 240
Width: 320
Palette: 24bit
Ring-buffer:

So taking a guess at you setup:
So far, with this info we can determine that each image is around 165k for each cam.
If you have a default ring buffer of 100 (Depends if you use source and may vary between packages) that's 165k x 100 = ~16.5 M for each cam. For five cams that comes to ~83M that you need in shared memory but not including any other processes that need to use that space as well.
BTW, this is all documented in the FAQ.

You could also try turning on and raising the debug level in ZM, It would have some usefull information that would likely say where and what the issue is.

Run the following and post the results here:

Code: Select all

ipcs -lm && ipcs -um && ipcs -m && cat /proc/sys/kernel/shmmax
The other issue it could be is you might need to add some options for the bttv module, but one thing at a time ;)
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Post by apcyberax »

But it means nothing to me :)

[anthony@zm ~]$ ipcs -lm && ipcs -um && ipcs -m && cat /proc/sys/kernel/shmmax

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (pages) = 134217728
min seg size (bytes) = 1


------ Shared Memory Status --------
segments allocated 8
pages allocated 13857
pages resident 13725
pages swapped 0
Swap performance: 0 attempts 0 successes


------ Shared Memory Segments --------
key shmid owner perms bytes nattch status

134217728





-------------------
The cams are all set the same.
Local
Max FPS:3
Alarm Max FPS: 3

320x240
PAL
RGB24

Image buffer size:40
warmup frames: 25
pre event image buffer: 10
post event image buffer: 10
Alarm count: 1
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

So now the question, when did you put in the example shmmax and shmall from the FAQ?
Have you restarted ZM since you used the examples?
Why do I not see ZM using any shared memroy from the code I had you run, zm should have been running?
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Post by apcyberax »

cordel wrote:So now the question, when did you put in the example shmmax and shmall from the FAQ?
Have you restarted ZM since you used the examples?
Why do I not see ZM using any shared memroy from the code I had you run, zm should have been running?

Yes zoneminder is running. I have just restarted the system to see if it helped but no joy.

[root@zm anthony]# cat /proc/sys/kernel/shmmax
134217728
[root@zm anthony]# cat /proc/sys/kernel/shmall
134217728

still the same thing with this setting
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay as it should if you followed the FAQ, But that still does not answer any of my questions for me to help you.
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Post by apcyberax »

i have followed the faq and tried setting all buffers to 10 frames on all 5 cams. i'm srill getting the same things.

I have checked the debug log and i get this...


Code: Select all

02/10/08 14:52:41.503823 zma_m4[23019].WAR-zm_monitor.cpp/874 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
02/10/08 14:52:42.334510 zma_m4[23019].DB4-zm_monitor.cpp/865 [RI:9, WI: 0, PF = 1, RM = 9, Step = 2]
02/10/08 14:52:42.334596 zma_m4[23019].WAR-zm_monitor.cpp/874 [Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size]
I have 5 cams capturing at 320x240 24bit RGB.
max FPS:1
image Buffer size: 10
walmup fames:5
pre event image buffer: 5
post event image buffer: 5
alarm frame count: 2
frameskip: 10


I don't understand why this used to work before i reinstalled.
nothings change hardware and software are the same. even from the same disk.

system is..
1.6ghz AMD
512mb ram
500gb hdd



please help :(
apcyberax
Posts: 30
Joined: Tue Jun 12, 2007 6:56 pm

Post by apcyberax »

any ideas guys or should i give up :P
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Try setting your image Buffer size to 20.
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

Or try to set your shared memory to 402653184 (here is described how to do it)
This is 3x as much as before - it should still fit in your RAM.
Do you run other services on the machine? Don't use X.
v1.25.0 + Ubuntu Linux 12.04 Server
Locked