Page 1 of 2
config for PV149
Posted: Sat Dec 01, 2007 12:41 am
by Quentin
Hello
I have Ubuntu 7.10 and Zoneminder, installed using a partial set of instructions at:
http://docs.google.com/View?docid=dcdq2w5w_0v3s94h
The web pages are working OK and I have added a monitor configured as local /dev/video0
but it won't display any images from my shiny new PV149 that I got from Bluecherry.
=====================
xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-14-generic)
looking for available devices
port 65-65 [ -xvport 65 ]
type : Xvideo, video overlay
name : video4linux
port 66-66 [ -xvport 66 ]
type : Xvideo, video overlay
name : video4linux
port 67-67 [ -xvport 67 ]
type : Xvideo, video overlay
name : video4linux
port 68-68 [ -xvport 68 ]
type : Xvideo, video overlay
name : video4linux
port 69-69
type : Xvideo, image scaler
name : ATI Radeon Video Overlay
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : BT878 video (ProVideo PV150)
flags: overlay capture
/dev/video1: OK [ -device /dev/video1 ]
type : v4l2
name : BT878 video (ProVideo PV150)
flags: overlay capture
/dev/video2: OK [ -device /dev/video2 ]
type : v4l2
name : BT878 video (ProVideo PV150)
flags: overlay capture
/dev/video3: OK [ -device /dev/video3 ]
type : v4l2
name : BT878 video (ProVideo PV150)
flags: overlay capture
========================
This is meant to be an 8 port PV149 so it is odd that the hwscan seems to think it's a 4 port PV150
==========================
I can get good video displayed on the screen using:
xawtv (camera on first BNC)
xawtv -xvport 65 (camera on first BNC)
xawtv -xvport 66 (camera on second BNC)
When I try
xawtv -device /dev/video0
I get an error
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-14-generic)
xinerama 0: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 136 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 67
Current serial number in output stream: 67
So I assume I have not got video4linux configured correctly. I am unable to find much guidance on configuring video4linux
I read a post from Curtis Hall of Bluecherry where he said a modprobe file is not needed for this card as a new kernel will automagically detect it.
Can anybody help ?
Posted: Sat Dec 01, 2007 3:27 am
by aot2002
I too have been having this issue with this card and have tried getting help from bluecherry with no result in a call back?
Either the card doesn't work or theres a config issue which doesnt support the pv149.
im currently downloading bluecherrys live cd for the pv149 to see if it works
http://sourceforge.net/projects/zoneminder-cd/
try and see if that displays any images
Posted: Sat Dec 01, 2007 10:20 pm
by Lee Sharp
First, the card has 4 chips, so it will have /dev/video0-3. If you have the 8 port version, it is split chip, so channel 0 and 1. Now you might need to change the modprobe settings if it is not autodetecting. 77, and 98 are good ones to try. The ProVideo cards do work, but you might need to fiddle with that one a bit. Good luck.
Posted: Sat Dec 01, 2007 11:31 pm
by aot2002
yea i got a bad card it reboots any computer i install it into and the bootable blue cherry card makes it lock up solid on 6 different computers i try.
i'll have to return it to curtis for a swap out
Posted: Sun Dec 02, 2007 8:58 pm
by Lee Sharp
aot2002 wrote:yea i got a bad card it reboots any computer i install it into and the bootable blue cherry card makes it lock up solid on 6 different computers i try.
i'll have to return it to curtis for a swap out
What chipsets were in those systems?
Posted: Sun Dec 02, 2007 9:15 pm
by aot2002
if you mean motherboard chipsets or do you mean card chipsets?
please explain
Posted: Mon Dec 03, 2007 10:06 pm
by Lee Sharp
Motherboard. I have had a similar problem with ATI chipsets failing post with some cards installed.
Posted: Fri Dec 07, 2007 11:25 am
by Quentin
Thanks Lee and aot2002 for your interest and replies.
When I try to display the picture in zoneminder under ubuntu, I get a white square, in it an icon indicating a broken link to the picture.
I tried sudo modprobe bttv card=98,98,98,98 which did not error, but did not seem to help much.
I tried the bluecherry live CD which uses xubuntu OS (version specially build for the pv149 video input card which I have) just booting from the CD drive. The upside of this is it actually shows pictures from the two cameras I have connected. The downside of this is the memory leak which stops zm running after 30 hours.
I hoped to get modprobe settings from the xubuntu, but I am a linux beginner and have not quite figured this out yet. What I did find was that if you change the 320x240 in xubuntu (where you get a picture) to 640x480 I get the same white square & icon indicating a broken link to the picture source.
Also on the main console of zm, under the title of source there is a link which allows you to configure each camera, this was yellow indicating OK, I changed the Max FPS /Alarm Max FPS, the link went red presumably indicating not OK. I can't seem to get this back to yellow even though I deleted it and Added a new one. This would be really useful stuff to add to the documentation.
Any ideas? I am happy to write it up when I think I understand it.
Posted: Fri Dec 07, 2007 5:27 pm
by Lee Sharp
On the liveCD install, open a CLI. Go to /etc/modprobe.d/ type 'more options' to see what they did. Also, you can type 'dmesg' to see how Linux sees the card.
Posted: Sat Dec 08, 2007 3:24 pm
by curtishall
Lee Sharp wrote:On the liveCD install, open a CLI. Go to /etc/modprobe.d/ type 'more options' to see what they did. Also, you can type 'dmesg' to see how Linux sees the card.
We aren't using any special modprobe settings. The kernel automagically recognizes the card and 'does the right thing'.
A quick search from the Live CD of dmesg |grep -4 bttv should show you what modprobe card= it used. It should be 98,98,98,98
Posted: Wed Dec 12, 2007 12:22 am
by Quentin
Hi, I tried the dmesg command, it does look like the PV149 card has detected the card OK and set each chip to 98.
If mod probe is not the area I should be looking at, any Ideas where I should be looking?
I am worried that it might be videoforlinux configuration, but I looked for documentation on this, and did not find any.
(Recap of problem, I tried bluecherry live CD (xubuntu), It works fine, but has a memory leak and fails after about 30 hours. I have loaded ubuntu. just typing xawtv gets a picture (albeit very jumpy). I can't get a picture up in zm, it just displays a white square with an icon that you would expect on a web page that should have a picture but the link is broken).
Copy of dmesg:
qwebb@acer:~$ dmesg|grep -4 bttv
[ 27.968061] input: PC Speaker as /class/input/input7
[ 28.222908] usbcore: registered new interface driver xpad
[ 28.222915] /build/buildd/linux-source-2.6.22-2.6.22/drivers/input/joystick/xpad.c: driver for Xbox controllers v0.1.6
[ 28.265727] Linux video capture interface: v2.00
[ 28.318454] bttv: driver version 0.9.17 loaded
[ 28.318461] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 28.318528] bttv: Bt8xx card found (0).
[ 28.318571] ACPI: PCI Interrupt 0000:04:08.0[A] -> GSI 21 (level, low) -> IRQ 21
[ 28.318593] bttv0: Bt878 (rev 17) at 0000:04:08.0, irq: 21, latency: 64, mmio: 0xdfeff000
[ 28.318609] bttv0: detected: Provideo PV150A-1 [card=98], PCI subsystem ID is aa00:1460
[ 28.318614] bttv0: using: ProVideo PV150 [card=98,autodetected]
[ 28.318656] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 28.319112] bttv0: using tuner=-1
[ 28.319116] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[ 28.422324] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[ 28.423977] bttv0: i2c: checking for TDA9887 @ 0x86... not found
[ 28.424908] bttv0: registered device video0
[ 28.424960] bttv0: registered device vbi0
[ 28.425000] bttv0: PLL: 28636363 => 35468950 .. ok
[ 28.455312] bttv: Bt8xx card found (1).
[ 28.455356] ACPI: PCI Interrupt 0000:04:09.0[A] -> GSI 22 (level, low) -> IRQ 19
[ 28.455378] bttv1: Bt878 (rev 17) at 0000:04:09.0, irq: 19, latency: 64, mmio: 0xdfefd000
[ 28.455401] bttv1: detected: Provideo PV150A-2 [card=98], PCI subsystem ID is aa01:1461
[ 28.455406] bttv1: using: ProVideo PV150 [card=98,autodetected]
[ 28.455448] bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 28.455956] bttv1: using tuner=-1
[ 28.455961] bttv1: i2c: checking for TDA9875 @ 0xb0... not found
[ 28.457384] bttv1: i2c: checking for TDA7432 @ 0x8a... not found
[ 28.458156] bttv1: i2c: checking for TDA9887 @ 0x86... not found
[ 28.458994] bttv1: registered device video1
[ 28.459047] bttv1: registered device vbi1
[ 28.459083] bttv1: PLL: 28636363 => 35468950 .. ok
[ 28.505951] bttv: Bt8xx card found (2).
[ 28.505994] ACPI: PCI Interrupt 0000:04:0a.0[A] -> GSI 23 (level, low) -> IRQ 22
[ 28.506015] bttv2: Bt878 (rev 17) at 0000:04:0a.0, irq: 22, latency: 64, mmio: 0xdfefb000
[ 28.506041] bttv2: detected: Provideo PV150A-3 [card=98], PCI subsystem ID is aa02:1462
[ 28.506047] bttv2: using: ProVideo PV150 [card=98,autodetected]
[ 28.506086] bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 28.506575] bttv2: using tuner=-1
[ 28.506579] bttv2: i2c: checking for TDA9875 @ 0xb0... not found
[ 28.507545] bttv2: i2c: checking for TDA7432 @ 0x8a... not found
[ 28.508314] bttv2: i2c: checking for TDA9887 @ 0x86... not found
[ 28.509138] bttv2: registered device video2
[ 28.509186] bttv2: registered device vbi2
[ 28.509222] bttv2: PLL: 28636363 => 35468950 .. ok
[ 28.539268] bttv: Bt8xx card found (3).
[ 28.539312] ACPI: PCI Interrupt 0000:04:0b.0[A] -> GSI 20 (level, low) -> IRQ 23
[ 28.539332] bttv3: Bt878 (rev 17) at 0000:04:0b.0, irq: 23, latency: 64, mmio: 0xdfef9000
[ 28.539358] bttv3: detected: Provideo PV150A-4 [card=98], PCI subsystem ID is aa03:1463
[ 28.539363] bttv3: using: ProVideo PV150 [card=98,autodetected]
[ 28.539406] bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 28.539875] bttv3: using tuner=-1
[ 28.539879] bttv3: i2c: checking for TDA9875 @ 0xb0... not found
[ 28.540866] bttv3: i2c: checking for TDA7432 @ 0x8a... not found
[ 28.541636] bttv3: i2c: checking for TDA9887 @ 0x86... not found
[ 28.542445] bttv3: registered device video3
[ 28.542477] bttv3: registered device vbi3
[ 28.542513] bttv3: PLL: 28636363 => 35468950 .. ok
[ 28.658935] bt878: AUDIO driver version 0.0.0 loaded
[ 28.659160] bt878: Bt878 AUDIO function found (0).
[ 28.659211] ACPI: PCI Interrupt 0000:04:08.1[A] -> GSI 21 (level, low) -> IRQ 21
[ 28.659223] bt878_probe: card id=[0x1460aa00], Unknown card.
qwebb@acer:~$
Posted: Wed Dec 12, 2007 2:01 pm
by Lee Sharp
This might sound odd, but swap PCI slots. Also, go into the bios and disable everything you don't need, like printer ports. I am wondering if it is an IRQ problem.
Posted: Tue Dec 18, 2007 9:17 am
by quentusrex
I am having the same problem. I used the debian unstable zoneminder package(not the newest one that was just released, but isn't yet in apt). I can see the video fine when I use xawtv, and when I use the mandriva livecd, but I get the broken link symbol when I try to view any of the monitors.
Posted: Tue Dec 18, 2007 9:50 am
by quentusrex
The problem was fixed by me simply typing "zmc -d /dev/video0"
So it seems that zmc isn't being started properly.
Posted: Thu Dec 20, 2007 11:00 pm
by Quentin
Thanks, for the suggestions.
I've tried moving the PCI video capture card.
I've disabled the Parallel and serial ports.
I've tried zmc -d /dev/video0
I've tried PV149 card, PV143 card, a sky card.
Two different PCs.
The results are the same:
ZM looks like it is working except no picture
The video input works with xawtv with ubuntu
The xubuntu Live CD works with pictures in ZM, but only runs for a few hours before the memory leak kills it.
I don't think this can be a hardware problem. It looks like I have not loaded or configured something when I installed s/w. Something that gets loaded or configured with the xubuntu live cd.