Images from other cameras "flickering" into camera

Forum for questions and support relating to the 1.24.x releases only.
Locked
Plunk
Posts: 19
Joined: Thu Nov 08, 2007 8:56 pm

Images from other cameras "flickering" into camera

Post by Plunk »

I have a weird issue, and I think it might be a shared memory issue.

I recently had a raid array crash and took the opportunity to upgrade to the latest zoneminder. I roughly followed the instructions from the zoneminder wiki.

OS Ubuntu 9.04 server
ZM 1.24.2
FFMPEG from svn, I can get the version if someone needs.

Code: Select all

root@gweld-camserv0:~# dmesg | grep bttv
[    9.263545] bttv: driver version 0.9.17 loaded
[    9.263548] bttv: using 8 buffers with 2080k (520 pages) each for capture
[    9.263619] bttv: Bt8xx card found (0).
[    9.263639] bttv 0000:03:08.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    9.263655] bttv0: Bt878 (rev 17) at 0000:03:08.0, irq: 16, latency: 64, mmio: 0xefff8000
[    9.266954] bttv0: detected: Provideo PV150A-1 [card=98], PCI subsystem ID is aa00:1460
[    9.266958] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.267002] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.267064] bttv0: tuner absent
[    9.267110] bttv0: registered device video0
[    9.267130] bttv0: registered device vbi0
[    9.267154] bttv0: PLL: 28636363 => 35468950 .. ok
[    9.300058] bttv: Bt8xx card found (1).
[    9.300080] bttv 0000:03:09.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    9.300098] bttv1: Bt878 (rev 17) at 0000:03:09.0, irq: 17, latency: 64, mmio: 0xefffa000
[    9.300146] bttv1: detected: Provideo PV150A-2 [card=98], PCI subsystem ID is aa01:1461
[    9.300152] bttv1: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.300189] bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.300239] bttv1: tuner absent
[    9.300288] bttv1: registered device video1
[    9.300309] bttv1: registered device vbi1
[    9.300334] bttv1: PLL: 28636363 => 35468950 .. ok
[    9.340047] bttv: Bt8xx card found (2).
[    9.340070] bttv 0000:03:0a.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    9.340087] bttv2: Bt878 (rev 17) at 0000:03:0a.0, irq: 18, latency: 64, mmio: 0xefffc000
[    9.340145] bttv2: detected: Provideo PV150A-3 [card=98], PCI subsystem ID is aa02:1462
[    9.340149] bttv2: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.340187] bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.340239] bttv2: tuner absent
[    9.340287] bttv2: registered device video2
[    9.340308] bttv2: registered device vbi2
[    9.340332] bttv2: PLL: 28636363 => 35468950 .. ok
[    9.380045] bttv: Bt8xx card found (3).
[    9.380066] bttv 0000:03:0b.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[    9.380083] bttv3: Bt878 (rev 17) at 0000:03:0b.0, irq: 19, latency: 64, mmio: 0xefffe000
[    9.380129] bttv3: detected: Provideo PV150A-4 [card=98], PCI subsystem ID is aa03:1463
[    9.380133] bttv3: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.380165] bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.380214] bttv3: tuner absent
[    9.380260] bttv3: registered device video3
[    9.380282] bttv3: registered device vbi3
[    9.380305] bttv3: PLL: 28636363 => 35468950 .. ok
[    9.420046] bttv: Bt8xx card found (4).
[    9.420067] bttv 0000:02:08.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
[    9.420083] bttv4: Bt878 (rev 17) at 0000:02:08.0, irq: 20, latency: 64, mmio: 0xefef8000
[    9.420135] bttv4: detected: Provideo PV150A-1 [card=98], PCI subsystem ID is aa00:1460
[    9.420140] bttv4: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.420178] bttv4: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.420228] bttv4: tuner absent
[    9.420277] bttv4: registered device video4
[    9.420302] bttv4: registered device vbi4
[    9.420326] bttv4: PLL: 28636363 => 35468950 .. ok
[    9.460047] bttv: Bt8xx card found (5).
[    9.460074] bttv 0000:02:09.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[    9.460091] bttv5: Bt878 (rev 17) at 0000:02:09.0, irq: 21, latency: 64, mmio: 0xefefa000
[    9.460144] bttv5: detected: Provideo PV150A-2 [card=98], PCI subsystem ID is aa01:1461
[    9.460148] bttv5: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.460197] bttv5: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.460246] bttv5: tuner absent
[    9.460297] bttv5: registered device video5
[    9.460319] bttv5: registered device vbi5
[    9.460343] bttv5: PLL: 28636363 => 35468950 .. ok
[    9.500042] bttv: Bt8xx card found (6).
[    9.500058] bttv 0000:02:0a.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[    9.500072] bttv6: Bt878 (rev 17) at 0000:02:0a.0, irq: 22, latency: 64, mmio: 0xefefc000
[    9.500099] bttv6: detected: Provideo PV150A-3 [card=98], PCI subsystem ID is aa02:1462
[    9.500103] bttv6: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.500142] bttv6: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.500191] bttv6: tuner absent
[    9.500221] bttv6: registered device video6
[    9.500242] bttv6: registered device vbi6
[    9.500265] bttv6: PLL: 28636363 => 35468950 .. ok
[    9.540048] bttv: Bt8xx card found (7).
[    9.540071] bttv 0000:02:0b.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[    9.540088] bttv7: Bt878 (rev 17) at 0000:02:0b.0, irq: 23, latency: 64, mmio: 0xefefe000
[    9.540140] bttv7: detected: Provideo PV150A-4 [card=98], PCI subsystem ID is aa03:1463
[    9.540144] bttv7: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    9.540183] bttv7: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    9.540236] bttv7: tuner absent
[    9.540287] bttv7: registered device video7
[    9.540308] bttv7: registered device vbi7
[    9.540333] bttv7: PLL: 28636363 => 35468950 .. ok
[   27.467492] bttv0: PLL can sleep, using XTAL (28636363).
[   27.963889] bttv1: PLL can sleep, using XTAL (28636363).
[   28.494759] bttv2: PLL can sleep, using XTAL (28636363).
[   29.037002] bttv3: PLL can sleep, using XTAL (28636363).
[   29.611008] bttv4: PLL can sleep, using XTAL (28636363).
[   30.141224] bttv5: PLL can sleep, using XTAL (28636363).
[   30.749147] bttv6: PLL can sleep, using XTAL (28636363).
[   31.340847] bttv7: PLL can sleep, using XTAL (28636363).
The image on the left is the problem, the image on the right is correct. I get periods where it works, and periods where it doesn't even show part of the correct image, as seen on the left.

Image
Plunk
Posts: 19
Joined: Thu Nov 08, 2007 8:56 pm

Post by Plunk »

Interesting point, the images are only crossing over on cameras that are on the same card, i.e. /dev/video0 is only crossing cameras on /dev/video0.
timcraig
Posts: 195
Joined: Mon Dec 10, 2007 5:53 pm
Location: San Jose, CA

Post by timcraig »

I get that whenever I add another camera to a port on a chip shared with other cameras without restarting Zoneminder.

Have you tried restarting Zoneminder?
CoYoTe
Posts: 33
Joined: Sat Jul 18, 2009 12:56 pm
Location: Buenos Aires, Argentina

Post by CoYoTe »

Try disabling V4L_MULTI_BUFFER in OPTIONS menu - CONFIG tab.

Also you can try to set CAPTURES_PER_FRAME in 2 or more.
Alejandro
Plunk
Posts: 19
Joined: Thu Nov 08, 2007 8:56 pm

Post by Plunk »

timcraig -- I did indeed try restarting zoneminder, quite a few times :-)

CoYoTe -- I'm trying that now.
Plunk
Posts: 19
Joined: Thu Nov 08, 2007 8:56 pm

Post by Plunk »

CoYoTe, you're my hero for the day. Thanks man. Unchecking V4L option was what did it.
DervMan
Posts: 23
Joined: Wed Feb 25, 2009 2:04 pm
Location: Bristol, UK

Post by DervMan »

I was having this issue on a new install, the v4l buffer fixed it for me too.

Many thanks CoYoTe
Locked