Help with picture output required

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Help with picture output required

Post by stoneybroke »

Hi all,

I am using zm v1.22.3 I can get a great picture from the web cam but after installing a Brooktree Corporation Bt878 Video Capture (rev 11) card and 2 Digital Display cameras I can't get a decent picture no matter what I try. The picture is there but it is jumping and there are a lot of lines on it,

Do I need to install anything else or configure something? I am at a complete loss I have looked at all the documents, wiki's and other sites but still have the problem can anyone help please.

The above run on the following,

Ubuntu 8.04 (hardy)
Kernel 2.6.24-19-generic
AMD Athlon 64 X2 Dual Core Processor 6000+ 3000.000 MHz
4gb Memory

Thanks.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

First, BT878 is a chip, not a card. Many people make cards with this chip. Some are good, some are bad, and most use different drivers. You either have a bad card/cable/camera or it is miss-detected. For the later, we need pictures, links, and stuff like that.
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Post by stoneybroke »

Hi Lee,

Thanks for the reply here is the link to the capture card

http://cgi.ebay.co.uk/ws/eBayISAPI.dll? ... %26otn%3D4

and these are the cameras

http://cgi.ebay.co.uk/2-4G-CCTV-Pair-30 ... m153.l1262

I know the cameras are working ok as I get a full colour picture with sound on the tv and ir vision and I am getting a picture on zm but it is grey and it jumps about a lot so something must not be set up right here but I can't find out what.

Thanks Malcolm.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

First check you dmesg and make sure the driver is being loaded correctly, my guess it's only loading the generic driver.

If you do have it loading the unknown/generic driver [card=0] then you will need to add a config file in /etc/modprobe.d and name it capturecards.conf and add the following text in that file:

Code: Select all

options bttv card=77 tuner=4 radio=0
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Please trim those links! We don't need you cookie and session info.
http://cgi.ebay.co.uk/ws/eBayISAPI.dll? ... 0259596462
http://cgi.ebay.co.uk/ws/eBayISAPI.dll? ... 0085660454
This also works and doesn't mess up the formatting.

That said, I have never seen that card, and have no clue what it should be. But others might have.
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Post by stoneybroke »

Thanks for that info Cordel I tried your suggestions but I still get the following output on a re-boot and still have the same problem. So I hope that it can help as I am a complete novice here,

[ 25.558705] bttv: driver version 0.9.17 loaded
[ 25.558710] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 25.558762] bttv: Bt8xx card found (0).
[ 25.559033] ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
[ 25.559042] ACPI: PCI Interrupt 0000:01:06.0[A] -> Link [APC2] -> GSI 17 (level, low) -> IRQ 17
[ 25.559050] bttv0: Bt878 (rev 17) at 0000:01:06.0, irq: 17, latency: 16, mmio: 0xfd8ff000
[ 25.559081] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,insmod option]
[ 25.559109] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
[ 25.604658] input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input5
[ 25.631216] saa7130/34: v4l2 driver version 0.2.14 loaded
[ 26.025024] zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.10
[ 26.025067] usb 2-4: ZC0301[P] Image Processor and Control Chip detected (vid/pid 0x0AC8:0x303B)
[ 26.145892] usb 2-4: No supported image sensor detected
[ 26.145920] usbcore: registered new interface driver zc0301
[ 26.190167] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: USB GSPCA camera found.(ZC3XX)
[ 27.281393] usbcore: registered new interface driver gspca
[ 27.281398] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: gspca driver 01.00.20 registered
[ 70.255756] tveeprom 2-0050: Huh, no eeprom present (err=-121)?
[ 70.255758] bttv0: tuner absent
[ 70.255760] bttv0: i2c: checking for MSP34xx @ 0x80... not found
[ 76.641067] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[ 83.026376] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[ 89.411714] bttv0: registered device video1
[ 89.411730] bttv0: registered device vbi0

[ 89.557431] bt878: AUDIO driver version 0.0.0 loaded
[ 89.583175] bt878: Bt878 AUDIO function found (0).
[ 89.583197] bt878_probe: card id=[0x0], Unknown card.
[ 89.583206] bt878: probe of 0000:01:06.1 failed with error -22

If you are wondering about the saa7130/34: v4l2 driver version 0.2.14 loaded I also have the Phillips saa7130 tv card installed on the same computer.

Thanks
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

stoneybroke wrote: [ 25.559081] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,insmod option]
This shows that the driver is still loading the generic driver. Did you create a file with the above options as I explained above?
User avatar
Normando
Posts: 219
Joined: Sun Aug 17, 2008 5:34 am
Location: Rosario - Argentina

Post by Normando »

or for testing purposes:

1- Stop ZoneMinder
2- Unload bttv driver with: modprobe -r bttv
3- Load driver: modprobe bttv card=77 tuner=4
4- Start ZoneMinder

Now test if you see the colors with your camera. If succesfully, copy the same parameter as Cordel say you.
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Post by stoneybroke »

Hi all,

The camera finally works although I had to put Cordel's code (options bttv card=77 tuner=4 radio=0) into a file called modprobe.conf and save it under /etc when I tried saving it under /etc/modprobe.d and named it capturecards.conf it didn't work for some strange reason.

The output from dmesg now shows this,

[ 25.497337] bttv0: Bt878 (rev 17) at 0000:01:06.0, irq: 17, latency: 16, mmio: 0xfd8ff000
[ 25.497498] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 25.497525] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]

Although the pictures are shown in b/w they are perfect any ideas? I have tried the Source/Capture Palette options and they don't work.

Thanks again everyone.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
User avatar
kp4djt
Posts: 221
Joined: Mon Jun 18, 2007 1:53 am
Location: Tampa, FL

Post by kp4djt »

I am having a problem with a BTTV card, I got this card from Blue Cherry, I have been using
only port 0 on it, as I have 2 network cams that I use for more distant locations and talk over
my network. I need to add a second camera to the video card, so I installed the thing and set up the whole thing. Got a nice image out of it, and then noticed that my image on port 1 was also now seen on port 0, the camera that was working just fine on that port is now
showng the image on port 1, and if you select port 1 you will see that image there. If I move
the cam to port 2 the same thing happens.

I had tested the ports out with two cams once before and it worked but I have not used it until now and that is because I have put a much better camera ( 640X480 rather than 320x
240) on the second port in order to replace one of the web cams and move it down on the
other end of the property (about 110m).

Here is a dmesg it appears that the card is being found:
bttv0: Bt878 (rev 17) at 0000:01:02.0, irq: 9, latency: 132, mmio: 0xf4000000
bttv0: detected: Provideo PV143A [card=105], PCI subsystem ID is aa00:1430
bttv0: using: ProVideo PV143 [card=105,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=-1
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).
ACPI: PCI Interrupt 0000:01:02.1[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9
bt878_probe: card id=[0x1430aa00], Unknown card.
Exiting..

Beyond that, the system has worked quite well now, indeed it has helped get rid of some
drug dealing out on the street corner... I have had it running now for about a year and a
half and I am really impressed at how well it runs without more than a look at the images every now and then...
Chuck Hast -- KP4DJT --
Web site www.wchast.com
ZM demo www.wchast.com/zm
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I would suspect that maybe you both don't have enough shared memory configured.
Check your logs to confirm and see if you have the error described here.
If you see the "not enough shared memory error then you will need to calculate what you need and make the adjustments as described in the example.

@stoneybroke
If you don't see the above error then is possible that your card needs a different driver, It looks like a GrandTech clone so is why I suggested card=77, unfortunately that don't mean it really is. check your logs and let us know what you find.
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Post by stoneybroke »

Thanks for that info Cordel, I have increased the memory and it has made a big difference. Now I know how to configure the card I am trying out all the possibilities, it will take me a while though big list and I'm only up to card number 33 but as soon as I have it working and cameras are showing color I will put results up here.

Thanks again for your help.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

To make things go a bit faster you can use the following commands so that you don't have to reboot the machine for each change.
Of coarse you have to stop ZM or any other programs using the card before it will allow you to remove the driver.

rmmod bttv
modprobe bttv card=xxx

This will allow you to go a bit faster through the list ;)
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Post by stoneybroke »

Well as promised I went through the entire card list and although I could get b/w pictures from almost all cards none gave any color, however I have since discovered that the card is a UCC4 type card or more commonly known as a PICO2000 so in capturecards.conf I have this line,

options bttv gbuffers=32 card=77 tuner=4 radio=0 coring=1 full_luma_range=1 chroma_agc=1 combfilter=1 autoload=0 triton1=0 vsfx=0

And the dmesg output looks like this,

bttv: driver version 0.9.17 loaded
bttv: using 32 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:01:06.0, irq: 17, latency: 16, mmio: 0xfd8ff000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
bttv0: tuner absent
bttv0: registered device video1
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).
bt878_probe: card id=[0x0], Unknown card.
bt878: probe of 0000:01:06.1 failed with error -22

So now the cameras are working in full color I have just got to figure out how to get both cameras working separately using this control http://cgi.ebay.co.uk/ws/eBayISAPI.dll? ... 0085660454

Although I can switch cameras manually I can't get the s/ware to show both cameras at the same time, anyone any ideas?

Thanks to Cordel for all his help as well.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
Post Reply