Page 1 of 1

first running problem

Posted: Wed Nov 07, 2007 6:52 pm
by mch
Hi

I have ZM installed on my Gentoo and I've a problem with monitor configuration.

In zmdc.log I'm getting following errors:

11/07/07 19:40:08.225565 zmdc[5730].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
11/07/07 19:40:18.671648 zmdc[5730].INF ['zmc -d /dev/video0' starting at 07/11/07 19:40:18, pid = 8408]
11/07/07 19:40:18.718668 zmdc[5730].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
11/07/07 19:40:29.086350 zmdc[5730].INF ['zmc -d /dev/video0' starting at 07/11/07 19:40:29, pid = 8412]
11/07/07 19:40:29.123703 zmdc[5730].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]


My configuration is:
2 x IVC-200G video cards based on bt878

________________________________________
"zmu -d /dev/video0 -q -v" returns:

Video Capabilities
Name: BT878 video (IVC-200)
Type: 171
Can capture
Can tune
Overlay onto frame buffer
Can clip
Scalable
Video Channels: 1
Audio Channels: 0
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: Composite0
Channel: 0
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL
-----------------------------------------------
"xawtv -hwscan" returns:


---------This is xawtv-3.95, running on Linux/i686 (2.6.17-gentoo-r8)
looking for available devices
port 126-126
type : Xvideo, image scaler
name : NV10 Video Overlay

port 127-158
type : Xvideo, image scaler
name : NV05 Video Blitter

port 159-159 [ -xvport 159 ]
type : Xvideo, video overlay
name : NVIDIA Video Interface Port

/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture

/dev/video1: OK [ -device /dev/video1 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture

/dev/video2: OK [ -device /dev/video2 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture

/dev/video3: OK [ -device /dev/video3 ]
type : v4l2
name : BT878 video (IVC-200)
flags: overlay capture
--------------------------------------
"lspci | grep Bt878" returns:

02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:05.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:05.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:07.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:07.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
03:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
03:05.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:05.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
03:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
03:07.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:07.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)

--------------------------------------

"dmesg" returns:

Linux video capture interface: v1.00
bttv: driver version 0.9.16 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:02:04.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
bttv0: Bt878 (rev 17) at 0000:02:04.0, irq: 10, latency: 32, mmio: 0xde000000
bttv0: detected: IVC-200 [card=102], PCI subsystem ID is 0000:a155
bttv0: using: IVC-200 [card=102,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffff0f [init]
bttv0: using tuner=-1
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (1).
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:02:05.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
bttv1: Bt878 (rev 17) at 0000:02:05.0, irq: 11, latency: 32, mmio: 0xde002000
bttv1: detected: IVC-200 [card=102], PCI subsystem ID is 0001:a155
bttv1: using: IVC-200 [card=102,autodetected]
bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv1: using tuner=-1
bttv1: registered device video1
bttv1: registered device vbi1
bttv1: PLL: 28636363 => 35468950 .<6>input: AT Translated Set 2 keyboard as /class/input/input0
. ok
bttv: Bt8xx card found (2).
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
bttv2: Bt878 (rev 17) at 0000:02:06.0, irq: 11, latency: 32, mmio: 0xde004000
bttv2: detected: IVC-200 [card=102], PCI subsystem ID is 0002:a155
bttv2: using: IVC-200 [card=102,autodetected]
bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv2: using tuner=-1
bttv2: registered device video2
bttv2: registered device vbi2
bttv2: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (3).
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI Interrupt 0000:02:07.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
bttv3: Bt878 (rev 17) at 0000:02:07.0, irq: 5, latency: 32, mmio: 0xde006000
bttv3: detected: IVC-200 [card=102], PCI subsystem ID is 0003:a155
bttv3: using: IVC-200 [card=102,autodetected]
bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv3: using tuner=-1
bttv3: registered device video3
bttv3: registered device vbi3
bttv3: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (4).
ACPI: PCI Interrupt 0000:03:04.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
bttv4: Bt878 (rev 17) at 0000:03:04.0, irq: 11, latency: 32, mmio: 0xde100000
bttv4: detected: IVC-200 [card=102], PCI subsystem ID is 0000:a155
bttv4: using: IVC-200 [card=102,autodetected]
bttv4: gpio: en=00000000, out=00000000 in=00ffff0f [init]
bttv4: using tuner=-1
bttv4: registered device video4
bttv4: registered device vbi4
bttv4: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (5).
ACPI: PCI Interrupt 0000:03:05.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
bttv5: Bt878 (rev 17) at 0000:03:05.0, irq: 11, latency: 32, mmio: 0xde102000
bttv5: detected: IVC-200 [card=102], PCI subsystem ID is 0001:a155
bttv5: using: IVC-200 [card=102,autodetected]
bttv5: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv5: using tuner=-1
bttv5: registered device video5
bttv5: registered device vbi5
bttv5: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (6).
ACPI: PCI Interrupt 0000:03:06.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
bttv6: Bt878 (rev 17) at 0000:03:06.0, irq: 5, latency: 32, mmio: 0xde104000
bttv6: detected: IVC-200 [card=102], PCI subsystem ID is 0002:a155
bttv6: using: IVC-200 [card=102,autodetected]
bttv6: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv6: using tuner=-1
bttv6: registered device video6
bttv6: registered device vbi6
bttv6: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (7).
ACPI: PCI Interrupt 0000:03:07.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
bttv7: Bt878 (rev 17) at 0000:03:07.0, irq: 10, latency: 32, mmio: 0xde106000
bttv7: detected: IVC-200 [card=102], PCI subsystem ID is 0003:a155
bttv7: using: IVC-200 [card=102,autodetected]
bttv7: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv7: using tuner=-1
bttv7: registered device video7
bttv7: registered device vbi7
bttv7: PLL: 28636363 => 35468950 .. ok


In my opinion it looks OK but it isnt.

--------------------------------------
there are my settings:
Device Path: /dev/video0
Device Channel: 0
Device Format: PAL
Capture Palette: RGB24
Capture Width (pixels): 320
Capture Height (pixels): 240
Orientation: Normal

with this settings my monitor is RED.

Thanks for help
mch

Posted: Wed Nov 07, 2007 8:14 pm
by cordel
Try checking some of your other logs:
/var/log/messages
zmpkg.log

Either it don't like the settings for the image size since 320x240 is a NTSC setting or you are having a shared memory problem either of which should show up in one of the logs. You might have to raise the debug level.

You can try to set the palette to B/W and see if you get an image and if you do, would suggest there is not enough shared memory setup.

Also make sure that any inputs to one device ( ie. /dev/video0 ) are all the same size and palette as the bt878 chip can not handle switching to a different size image when it is scaning through the inputs.

You might also consider using 1.22.x version since this version 1.23.0 is only a release canidate unless you are comfortable poking in the code.

Posted: Thu Nov 08, 2007 7:24 pm
by mch
Hi

I've just resolved my problem by adding link from
/dev/video -> /dev/video0
I do not know why but it works :)
I'm wondering if i'll have the same problems with second camera - i'll check it tomorrow.

Thank for Your reply
mch

Posted: Thu Nov 08, 2007 7:29 pm
by cordel
You sould be configuring your monitors in ZM as /dev/video0, /dev/video1, etc as shown in dmesg.

Posted: Thu Nov 08, 2007 8:49 pm
by mch
I configured my first monitor as /dev/video0 but it didn't work until I linked it from /dev/video.

mch