Page 1 of 1

[Solved] No camera image is displayed, only a blank screen

Posted: Sat Sep 01, 2007 8:34 pm
by Antimon
Hello,

i am using zoneminder for several months, but now i want to set up a own dedicated server with a 16 port capture card (Kodicom 4400R), running Gentoo Linux 2007.0 with kernel 2.6.19-gentoo-r5

I added

Code: Select all

alias char-major-81 bttv
options bttv gbuffers=16 card=133,132,133,133
as mentioned in the forum, and with xawtv i can display videos - but only when I use the "grabdisplay" mode. Zoneminder displays only the blue screen, but no video.

Am I missing some options in the kernel? Can Zoneminder use the grabdisplay mode?

This is the output of lspci -v

Code: Select all

00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
        Subsystem: ASUSTeK Computer Inc. A7V333 Mainboard
        Flags: bus master, 66MHz, medium devsel, latency 0
        Memory at e0000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [a0] AGP version 2.0
        Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP] (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: d2800000-d36fffff
        Prefetchable memory behind bridge: d7f00000-dfffffff
        Capabilities: [80] Power Management version 2

00:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
        Subsystem: ASUSTeK Computer Inc. CMI8738 6ch-MX
        Flags: bus master, stepping, medium devsel, latency 32, IRQ 10
        I/O ports at d800 [size=256]
        Capabilities: [c0] Power Management version 2

00:09.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. A7V333 motherboard
        Flags: bus master, medium devsel, latency 32, IRQ 16
        I/O ports at d400 [size=32]
        Capabilities: [80] Power Management version 2

00:09.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. A7V333 motherboard
        Flags: bus master, medium devsel, latency 32, IRQ 18
        I/O ports at d000 [size=32]
        Capabilities: [80] Power Management version 2

00:09.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. Unknown device 8080
        Flags: bus master, medium devsel, latency 32, IRQ 17
        Memory at d2000000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

00:0e.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, medium devsel, latency 32
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
        Prefetchable memory behind bridge: d3800000-d7efffff
        Capabilities: [80] Power Management version 2
        Capabilities: [90] #06 [0000]

00:10.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
        Subsystem: 3Com Corporation 3C905C-TX Fast Etherlink for PC Management NIC
        Flags: bus master, medium devsel, latency 32, IRQ 16
        I/O ports at b800 [size=128]
        Memory at d1800000 (32-bit, non-prefetchable) [size=128]
        [virtual] Expansion ROM at 30000000 [disabled] [size=128K]
        Capabilities: [dc] Power Management version 2

00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
        Subsystem: ASUSTeK Computer Inc. A7V333 motherboard
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2

00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
        Subsystem: ASUSTeK Computer Inc. A7V8X / A7V333 motherboard
        Flags: bus master, medium devsel, latency 32
        I/O ports at b400 [size=16]
        Capabilities: [c0] Power Management version 2

00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 23) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. VT6202 USB2.0 4 port controller
        Flags: bus master, medium devsel, latency 32, IRQ 19
        I/O ports at b000 [size=32]
        Capabilities: [80] Power Management version 2

00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 23) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. VT6202 USB2.0 4 port controller
        Flags: bus master, medium devsel, latency 32, IRQ 19
        I/O ports at a800 [size=32]
        Capabilities: [80] Power Management version 2

01:00.0 VGA compatible controller: S3 Inc. Savage 4 (rev 02) (prog-if 00 [VGA])
        Subsystem: Elsa AG Unknown device 0974
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
        Memory at d2800000 (32-bit, non-prefetchable) [size=512K]
        Memory at d8000000 (32-bit, prefetchable) [size=128M]
        Expansion ROM at d7ff0000 [disabled] [size=64K]
        Capabilities: [dc] Power Management version 1
        Capabilities: [80] AGP version 2.0

02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 17
        Memory at d7000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 17
        Memory at d6800000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 20
        Memory at d6000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 20
        Memory at d5800000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at d5000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at d4800000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 18
        Memory at d4000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 18
        Memory at d3800000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

"dmesg | grep bttv" says

Code: Select all

bttv: driver version 0.9.16 loaded
bttv: using 16 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 17, latency: 32, mmio: 0xd7000000
bttv0: using: Kodicom 4400R (slave) [card=133,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=-1
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 17) at 0000:02:0d.0, irq: 20, latency: 32, mmio: 0xd6000000
bttv1: using: Kodicom 4400R (master) [card=132,insmod option]
bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv1: using tuner=-1
bttv1: i2c: checking for TDA9887 @ 0x86... not found
bttv1: registered device video1
bttv1: registered device vbi1
bttv1: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (2).
bttv2: Bt878 (rev 17) at 0000:02:0e.0, irq: 16, latency: 32, mmio: 0xd5000000
bttv2: using: Kodicom 4400R (slave) [card=133,insmod option]
bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv2: using tuner=-1
bttv2: i2c: checking for TDA9887 @ 0x86... not found
bttv2: registered device video2
bttv2: registered device vbi2
bttv2: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (3).
bttv3: Bt878 (rev 17) at 0000:02:0f.0, irq: 18, latency: 32, mmio: 0xd4000000
bttv3: using: Kodicom 4400R (slave) [card=133,insmod option]
bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv3: using tuner=-1
bttv3: i2c: checking for TDA9887 @ 0x86... not found
bttv3: registered device video3
bttv3: registered device vbi3
bttv3: PLL: 28636363 => 35468950 .. ok
modinfo bttv

Code: Select all

filename:       /lib/modules/2.6.19-gentoo-r5/kernel/drivers/media/video/bt8xx/bttv.ko
description:    bttv - v4l/v4l2 driver module for bt848/878 based cards
author:         Ralph Metzler & Marcus Metzler & Gerd Knorr
license:        GPL
vermagic:       2.6.19-gentoo-r5 SMP mod_unload K7 REGPARM
depends:        video-buf,ir-common,tveeprom,btcx-risc
alias:          pci:v0000109Ed00000350sv*sd*bc*sc*i*
alias:          pci:v0000109Ed00000351sv*sd*bc*sc*i*
alias:          pci:v0000109Ed0000036Esv*sd*bc*sc*i*
alias:          pci:v0000109Ed0000036Fsv*sd*bc*sc*i*
parm:           rc5_key_timeout:int
parm:           rc5_remote_gap:int
parm:           repeat_period:int
parm:           repeat_delay:int
parm:           debug:int
parm:           i2c_udelay:soft i2c delay at insmod time, in usecs (should be 5 or higher). Lower value means higher bus speed. (int)
parm:           i2c_scan:scan i2c bus at insmod time (int)
parm:           i2c_hw:force use of hardware i2c support, instead of software bitbang (int)
parm:           i2c_debug:int
parm:           vbi_debug:vbi code debug messages, default is 0 (no) (int)
parm:           vbibufs:number of vbi buffers, range 2-32, default 4 (int)
parm:           audiomux:array of int
parm:           remote:array of int
parm:           svhs:array of int
parm:           tuner:specify installed tuner type (array of int)
parm:           pll:specify installed crystal (0=none, 28=28 MHz, 35=35 MHz) (array of int)
parm:           card:specify TV/grabber card model, see CARDLIST file for a list (array of int)
parm:           autoload:automatically load i2c modules like tuner.o, default is 1 (yes) (int)
parm:           audioall:int
parm:           gpiomask:int
parm:           latency:pci latency timer (int)
parm:           no_overlay:allow override overlay default (0 disables, 1 enables) [some VIA/SIS chipsets are known to have problem with overlay] (int)
parm:           vsfx:set VSFX pci config bit [yet another chipset flaw workaround] (int)
parm:           triton1:set ETBF pci config bit [enable bug compatibility for triton1 + others] (int)
parm:           radio:The TV card supports radio, default is 0 (no) (array of int)
parm:           coring:set the luma coring level, default is 0 (no) (int)
parm:           full_luma_range:use the full luma range, default is 0 (no) (int)
parm:           uv_ratio:ratio between u and v gains, default is 50 (int)
parm:           vcr_hack:enables the VCR hack (improves synch on poor VCR tapes), default is 0 (no) (int)
parm:           whitecrush_lower:sets the white crush lower value, default is 127 (int)
parm:           whitecrush_upper:sets the white crush upper value, default is 207 (int)
parm:           adc_crush:enables the luminance ADC crush, default is 1 (yes) (int)
parm:           chroma_agc:enables the AGC of chroma signal, default is 0 (no) (int)
parm:           automute:mute audio on bad/missing video signal, default is 1 (yes) (int)
parm:           lumafilter:int
parm:           combfilter:int
parm:           irq_iswitch:switch inputs in irq handler (int)
parm:           bigendian:byte order of the framebuffer, default is native endian (int)
parm:           v4l2:int
parm:           gbufsize:size of the capture buffers, default is 0x208000 (int)
parm:           gbuffers:number of capture buffers. range 2-32, default 8 (int)
parm:           vbi_nr:int
parm:           radio_nr:int
parm:           video_nr:int
parm:           fdsr:int
parm:           debug_latency:int
parm:           irq_debug:irq handler debug messages, default is 0 (no) (int)
parm:           bttv_debug:debug messages, default is 0 (no) (int)
parm:           bttv_gpio:log gpio changes, default is 0 (no) (int)
parm:           bttv_verbose:verbose startup messages, default is 1 (yes) (int)

ipcs -m

Code: Select all


------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x7a6d2001 294912     apache    700        12166308   1
0x00000000 98305      apache    700        12166308   1          dest
0x7a6d2002 327682     apache    700        3073188    1
0x7a6d2005 360451     apache    700        3073188    1
0x7a6d2003 393220     apache    700        3073188    1
0x7a6d2006 425989     apache    700        3073188    1
0x7a6d2004 458758     apache    700        3073188    1


Logfile zmaudit.log

Code: Select all

09/02/07 00:23:25.387135 zmaudit[9346].DBG [Found database monitor '1']
09/02/07 00:23:25.388545 zmaudit[9346].DBG [Got 0 events]
...
09/02/07 00:23:25.395482 zmaudit[9346].DBG [Found filesystem monitor '1']
09/02/07 00:23:25.395926 zmaudit[9346].DBG [Got 0 events]
09/02/07 00:23:25.396100 zmaudit[9346].DBG [Found filesystem monitor '2']
09/02/07 00:23:25.396360 zmaudit[9346].DBG [Got 0 events]
...
zmdc.log

Code: Select all


09/02/07 00:23:18.064770 zmdc[9298].INF [Server starting at 07/09/02 00:23:18]
09/02/07 00:23:21.467373 zmdc[9298].INF ['zmc -d /dev/v4l/video0' starting at 07/09/02 00:23:21, pid = 9321]
09/02/07 00:23:21.923528 zmdc[9298].INF ['zmc -d /dev/video1' starting at 07/09/02 00:23:21, pid = 9325]
09/02/07 00:23:22.387036 zmdc[9298].INF ['zmc -d /dev/video2' starting at 07/09/02 00:23:22, pid = 9329]
09/02/07 00:23:22.847172 zmdc[9298].INF ['zmc -d /dev/video3' starting at 07/09/02 00:23:22, pid = 9333]
09/02/07 00:23:23.299126 zmdc[9298].INF ['zmc -d /dev/video1' already running at 07/09/02 00:23:21, pid = 9325]
09/02/07 00:23:23.692361 zmdc[9298].INF ['zmc -d /dev/video2' already running at 07/09/02 00:23:22, pid = 9329]
09/02/07 00:23:24.086830 zmdc[9298].INF ['zmfilter.pl' starting at 07/09/02 00:23:24, pid = 9341]
09/02/07 00:23:25.006968 zmdc[9298].INF ['zmaudit.pl -c' starting at 07/09/02 00:23:25, pid = 9346]
09/02/07 00:23:25.771105 zmdc[9298].INF ['zmtrigger.pl' starting at 07/09/02 00:23:25, pid = 9351]
09/02/07 00:23:26.206358 zmdc[9298].ERR ['zmtrigger.pl ' exited abnormally, exit status 9]
09/02/07 00:23:26.207430 zmdc[9298].INF [Starting pending process, zmtrigger.pl]
09/02/07 00:23:26.218607 zmdc[9298].INF ['zmtrigger.pl' starting at 07/09/02 00:23:26, pid = 9354]
09/02/07 00:23:26.636860 zmdc[9298].ERR ['zmtrigger.pl ' exited abnormally, exit status 9]
09/02/07 00:23:27.006757 zmdc[9298].INF ['zmwatch.pl' starting at 07/09/02 00:23:27, pid = 9359]
09/02/07 00:23:27.718530 zmdc[9298].INF ['zmupdate.pl -c' starting at 07/09/02 00:23:27, pid = 9363]
09/02/07 00:23:31.069918 zmdc[9298].INF [Starting pending process, zmtrigger.pl]
09/02/07 00:23:31.074352 zmdc[9298].INF ['zmtrigger.pl' starting at 07/09/02 00:23:31, pid = 9380]
09/02/07 00:23:31.512725 zmdc[9298].ERR ['zmtrigger.pl ' exited abnormally, exit status 9]
09/02/07 00:23:41.020978 zmdc[9298].INF [Starting pending process, zmtrigger.pl]
09/02/07 00:23:41.025428 zmdc[9298].INF ['zmtrigger.pl' starting at 07/09/02 00:23:41, pid = 9384]
09/02/07 00:23:41.460322 zmdc[9298].ERR ['zmtrigger.pl ' exited abnormally, exit status 9]
09/02/07 00:24:01.074629 zmdc[9298].INF [Starting pending process, zmtrigger.pl]
09/02/07 00:24:01.087325 zmdc[9298].INF ['zmtrigger.pl' starting at 07/09/02 00:24:01, pid = 9388]
09/02/07 00:24:01.512944 zmdc[9298].ERR ['zmtrigger.pl ' exited abnormally, exit status 9]
zmtrigger.log

Code: Select all

09/02/07 00:23:26.188891 zmtrigger[9351].INF [Trigger daemon starting]
09/02/07 00:23:26.192112 zmtrigger[9351].INF [Opening connection 'Chan1']
09/02/07 00:23:26.193835 zmtrigger[9351].INF [Opening connection 'Chan2']
09/02/07 00:23:26.195209 zmtrigger[9351].INF [Opening connection 'Chan4']
09/02/07 00:23:26.620563 zmtrigger[9354].INF [Trigger daemon starting]
...

I hope that I don't have forgotten anything...

Posted: Sun Sep 02, 2007 8:04 pm
by Lee Sharp
There are a few live CDs available, so try some other distributions first. RedHat has a packeged ZM live CD. Blue Cherry has one, but for the cards they sell. You can use a Ubuntu Live CD, and install Peter's .deb and it will work, if you have the ram. There is also the new puppy flavor. Make sure it is not your distribution, or your kernel. However, I suspect the via chipset, as it has bit me many times.

Posted: Mon Sep 03, 2007 8:08 pm
by Antimon
Thank you very much for your hints. Unfortunately the live cd I tested didn't boot, so I wasn't able to test that.

After recompiling the kernel with a newer sourcecode the system works now!

I found the following topic, which solved the problem:
http://www.zoneminder.com/forums/viewtopic.php?t=10108

At first I thought it has to be the card which doesn't work, since I used a newer kernel version as mentioned in the thread above, but it seems as if the bug existed in newer kernel versions, too.

And very important: Restart zoneminder completely after changing the monitor settings. Sometimes the new settings worked at once, but most of the time they didn't...

Posted: Tue Sep 04, 2007 9:30 pm
by recidivo
I became crazy this 3 days to understand where is the problem,
the monitor go well once and after for example going to montage screen blank! and I check the CPU utilization when I start ZM it go at 90% and plus with only 2 cameras 320X480 in monitor mode...
I hope upgrading kernel give the solution.
Tomorrow I try... :x :x :x :x :x :x :x :x

Posted: Wed Sep 05, 2007 7:29 am
by recidivo
after upgrading the kernel the problems persist

now I reinstall all in ubuntu if now luck turn to fedora core 7

Posted: Sat Sep 08, 2007 5:33 pm
by recidivo
now istalled everything in fedora, web zm Ok, monitor in orange but, Windows monitor still BLANK!

xawtv work!...

where is the problem please help me!!