lines across images

Forum for questions and support relating to the 1.24.x releases only.
jeremym
Posts: 12
Joined: Thu May 14, 2009 9:49 pm

lines across images

Post by jeremym »

Does anyone have recommendations for things to try to remove the black lines (around 1px height, 400px width) across images?

We are using Ubuntu 8 64-bit with two PV-183 16 cards.

zoneminder 1.24.1
Ubuntu 8.04.2 2.6.24-19-server

640x480 ~16fps

Thanks.
Last edited by jeremym on Tue May 26, 2009 10:35 pm, edited 2 times in total.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

do you mean the interlaceing
jeremym
Posts: 12
Joined: Thu May 14, 2009 9:49 pm

Post by jeremym »

yeah. When there is movement (car, person, tree) the image shows horizontal black lines in the shape of the object.
jeremym
Posts: 12
Joined: Thu May 14, 2009 9:49 pm

Post by jeremym »

I can send a video if you would like to see.
jeremym
Posts: 12
Joined: Thu May 14, 2009 9:49 pm

Post by jeremym »

Changed the source to video4linux 2 NSTC M and it helped.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

yeah your not really gonna get rid of it on thous cams
jeremym
Posts: 12
Joined: Thu May 14, 2009 9:49 pm

Post by jeremym »

okay I will test out some other cameras from bluecherry and post the results.
User avatar
Normando
Posts: 219
Joined: Sun Aug 17, 2008 5:34 am
Location: Rosario - Argentina

Post by Normando »

jeremyn, this is not an interlacing problem.

This is a shared memory configuration problem.
Try reducing the size, to 320 x 240, and also reduce the FPS to 10.
Post the results.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The combing effect is likely interlacing:
http://en.wikipedia.org/wiki/Interlace

So if you see something like the examples in the article above, it is common to all formats standards. You can reduce the image to 320x240 for NTSC and this will negate the need for interlacing. I don't recall off the top what the proper setting are for PAL to stop interlacing but they are slightly higher if you are using PAL cameras.
jeremym
Posts: 12
Joined: Thu May 14, 2009 9:49 pm

Post by jeremym »

Changed to Ubuntu 8.04 32-bit and increased shared memory even more and there are only a few lines when there is motion.

Thanks!

http://www.zoneminder.com/wiki/index.ph ... esolutions.

Code: Select all

# cat /proc/sys/kernel/shmall
334217728
# cat /proc/sys/kernel/shmmax
334217728
# cat /proc/meminfo | grep ^Mem
MemTotal:      3621880 kB
MemFree:       2562992 kB
User avatar
BrownBottle
Posts: 18
Joined: Mon Apr 16, 2007 8:02 pm
Location: Florida, USA

Post by BrownBottle »

Try changing the device format to 'RGB565'. This will reduce the color load on the system.
Larry



Work is a great thing to see -- in your rearview mirror ;-)
User avatar
marv2097
Posts: 17
Joined: Wed May 17, 2006 10:25 am
Location: Manchester, UK

Post by marv2097 »

I am getting a similar issue on my install with lines only on Motion.

My machine is a 3.0ghz P4 with 1 gig ram. It has a 8 port 240fps bttv based card. At the moment I only have 3 cams linked up and they are all PAL cameras. Running Ubuntu 0904-desktop (2.6.28-11-generic) with ZM compilled from source a week ago.

The camera in question is running in V4L2-PAL-Grey at a resolution of 480x384 and 5fps with record or mocord. Here is the image I get, as can be seen only the moving car has the lines and the parked ones dont:

Image

I have increased the size of the shared memory. Old values:

Code: Select all

marv@zoneminder:/tmp$ cat /proc/sys/kernel/shmall
2097152
marv@zoneminder:/tmp$ cat /proc/sys/kernel/shmmax
33554432
marv@zoneminder:/tmp$ cat /proc/meminfo | grep ^Mem
MemTotal:         961968 kB
MemFree:           26036 kB
marv@zoneminder:/tmp$

marv@zoneminder:/tmp$ ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
To the new ones:

Code: Select all

marv@zoneminder:~$ cat /proc/sys/kernel/shmall
4194304
marv@zoneminder:~$ cat /proc/sys/kernel/shmmax
4194304000
marv@zoneminder:~$ cat /proc/meminfo | grep ^Mem
MemTotal:         961968 kB
MemFree:           12984 kB
marv@zoneminder:~$ ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 4096000
max total shared memory (kbytes) = 16777216
min seg size (bytes) = 1
So now the max segment size should be around 4 gig and the max overall 16 gig.

After reducing the resolution to 320x240 the problem seems to be removed. As the white Van on the left doesnt have the same lines:


Image


I would like to keep a higher resolution. I am also planning to add some IP cameras at megapixel resolution and dont want the same issue with them.

It may also be worth noting that all of this hardware has been moved over from a windows based system with the exact same setup and all 8 cameras running using the Kodicom SITE software. This ran at 720x576 with no issues. So I know the hardware should be good and I want to tweek the system to get it working better with ZM.

Has anyone any ideas what could be causing the lines in the slightly higher res?

Many thanks.

// Marv
Reesmarine - Free photo classifieds for boats for sale. www.reesmarine.com
User avatar
Normando
Posts: 219
Joined: Sun Aug 17, 2008 5:34 am
Location: Rosario - Argentina

Post by Normando »

Marv, your case is interlaceing. See the Cordel's reply and read the wikipedia page.

This is not the same case of Jeremym. He say "Does anyone have recommendations for things to try to remove the black lines (around 1px height, 400px width) across images?"

To avoid this visual effect, that only occur on the objects moving, you must use a non.interleaced camera.

I think this effect occur only when viewing the live, but if you create a video from these images, you will see without interleacing (I think).

Also try to use an LCD monitor to view live cameras.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

or used one of the guis with the deinterlaceing filters

or if a sugested make a video of it and play with a media player most have one
User avatar
marv2097
Posts: 17
Joined: Wed May 17, 2006 10:25 am
Location: Manchester, UK

Post by marv2097 »

Thanks Guys,

I did have the same black line issue at first but the memory limit increase seemed to sort that which is when the interlacing issue becomes more noticeable.

I get this in live and playback views and even when i export the video. I also have the same issue when viewed in ZM4MS. The only way to see the image without it is to export and playback in VLC with the de-interlace filter on.

Is there an option somewhere with ffmepg or ZM to de-interlace? As I mentioned I never had this issue with the kodicom software (same cameras) so maybe it was de-interlacing in the background somehow.

Many thanks
Marv
Reesmarine - Free photo classifieds for boats for sale. www.reesmarine.com
Locked