Page 1 of 1

Black and White Capture from Camera

Posted: Thu May 26, 2005 1:54 am
by acrisp
Hi Guys,

I can't seem to work out why my colour camera is capturing in black and white. My webcam captures in colour without any problems. Also, if I plug the camera straight into my tv the picture is colour.

Here is my dmesg:

Linux video capture interface: v1.00
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI interrupt 0000:00:0e.0[A] -> GSI 10 (level, low) -> IRQ 10
bttv0: Bt878 (rev 17) at 0000:00:0e.0, irq: 10, latency: 32, mmio: 0xef000000
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00f36000 [init]
tveeprom(bttv internal): Huh, no eeprom present (err=-121)?
bttv0: using tuner=2
bttv0: i2c: checking for MSP34xx @ 0x80... not found
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
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).
ACPI: PCI interrupt 0000:00:0e.1[A] -> GSI 10 (level, low) -> IRQ 10
bt878(0): Bt878 (rev 17) at 00:0e.1, irq: 10, latency: 32, memory: 0xee800000

Here is my modules.conf:

alias char-major-81 bttv
options bttv tuner=2

The capture card I got off ebay. It's a 4 Channel Digital Video Recorder (DVR Card).

I'm using RGB24 in my camera settings in ZoneMinder.

It must be a setting somewhere, just can't work out where.

Anyone have any ideas?

Posted: Thu May 26, 2005 2:05 am
by cordel
Try this thread and see if it helps.
http://www.zoneminder.com/forums/viewto ... tions+bttv +77
Regards,
Cordel

Posted: Thu May 26, 2005 7:27 am
by acrisp
Hi,

I updated my modules.conf to have:

alias char-major-81 bttv
options bttv radio=0 tuner=4 pll=0 card=77

My dmesg is:

dmesg | grep bt
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:00:0e.0, irq: 10, latency: 32, mmio: 0xef000000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00f36000 [init]
bttv0: using tuner=4
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
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).
bt878(0): Bt878 (rev 17) at 00:0e.1, irq: 10, latency: 32, memory: 0xee800000

I rebooted to reload the module and completely restart ZoneMinder.

ZoneMinder isn't giving me any errors in the logs.

Camera is NTSC mode, PAL doesn't work. Pretty sure the cam and card are both NTSC because I got them from overseas.

Unfortunately, it's still black and white.

Is there anything else I can check over?

Posted: Thu May 26, 2005 11:50 am
by zoneminder
What have you set your 'Device Format' in the monitor settings to? Although the dialog on lists 0, 1 etc it's worth trying 2, 3 and 4 to see if there's any improvement.

Phil

Posted: Sun May 29, 2005 10:45 pm
by acrisp
Hi,

I tried 1,2,3->11 and didn't get any improvement. I got colour in one but it was "triple vision" and I couldn't make the picture out.

Posted: Mon May 30, 2005 1:35 am
by cordel
The card number has to be spacific to your card.
Enter this in the console
scanpci -v
then post what it says for the card and cardvendor. Both values will be HEX.
Regards,
Cordel

Posted: Mon May 30, 2005 6:16 am
by acrisp
Hi Again,

Thanks for your help with this, here is the output:

pci bus 0x0000 cardnum 0x0e function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xef000008 addr 0xef000000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x0a

pci bus 0x0000 cardnum 0x0e function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xee800008 addr 0xee800000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x0a

Let me know if you need any other details

Posted: Mon May 30, 2005 9:22 am
by cordel
Okay since you have it out put twice I'm assuming :roll: that you have two cards.
each with four inputs and one of those is S-video and the other three are RCA. On the card it self will say Hauppauge.
If this is so here is your configuration.

Code: Select all

alias char-major-81 bttv
options bttv card=82,82 tuner=4,4
After you edit modprobe.conf don't forget to reboot. I have a kernel patch some where that I made a couple years back to correct it (makes it so it is auto detected correctly) but it was a pain any time a new kernel came out to have to patch it every time and was easier just insmod it.
I'm really curious as to why scanpci -v didn't output CardVendor 0x0070 card 0x13eb and going through your dmesg seeing Huh, no eeprom present (err=-121)? doesn't give me warm fuzzies.
Most of the other ebay cards run on card=77
Regards,
Cordel

Posted: Mon May 30, 2005 7:39 pm
by lazyleopard
cordel wrote:Okay since you have it out put twice I'm assuming :roll: that you have two cardsl
It looks like one is the Video and the other is the Audio part of the digitiser. The lack of a CardVendor line isn't encouraging... :/

Posted: Mon May 30, 2005 9:25 pm
by cordel
Ahhhh you are right Lazy. I was up too late to pay that much detail.
so in that case the config is ( if you have a Hauppauge )

Code: Select all

alias char-major-81 bttv
options bttv card=82 tuner=4
If you have four BNC ports on the card, there should be a IC socket that hopefully has a chip in it. You may want to make sure that chip is seated in the socket as that would be the eeprom. You have to be very carefull not to break any of the pins.

Posted: Wed Jun 01, 2005 12:16 am
by acrisp
Hi,

I don't think it's card 82, as I get the eprom error when I try using 82. Like when I used card 2. The card is one of those ebay cards, 4 RCA jacks, no tv tuner. I got the card from www.ebay.com.au. They still sell the cards, do a search for item: 5978509715 and it will show you the exact card I have.

When I use card 77, my dmesg looks okay:

alias char-major-81 bttv
options bttv radio=0 tuner=4 pll=0 card=77

My dmesg is:

dmesg | grep bt
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:00:0e.0, irq: 10, latency: 32, mmio: 0xef000000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00f36000 [init]
bttv0: using tuner=4
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
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).
bt878(0): Bt878 (rev 17) at 00:0e.1, irq: 10, latency: 32, memory: 0xee800000

This is what happens when I use card 82:

alias char-major-81 bttv
options bttv card=82,82 tuner=4,4

dmesg | grep bt
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:00:0e.0, irq: 10, latency: 32, mmio: 0xef000000
bttv0: using: Osprey 100/150 (878) [card=82,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00f36000 [init]
tveeprom(bttv internal): Huh, no eeprom present (err=-121)?
bttv0: using tuner=4
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).
bt878(0): Bt878 (rev 17) at 00:0e.1, irq: 10, latency: 32, memory: 0xee800000

So I'd say it's card 77.

Is there anything that might cause the image to be black and white? It's a reasonable quality black and white image when I set it to NTSC, (device code 1).

The camera I'm using I got off www.ebay.com.au too. Again, they are still selling them and you can see them by searching for item 5978735655

That's again for your assistance, I appreciate it.

Posted: Wed Jun 01, 2005 8:53 am
by zoneminder
Have you tried your cam with xawtv to see if you can get a good image by fiddling with it's settings, which might be a bit more interactive than experimenting with ZM.

Phil

Posted: Thu Jun 02, 2005 7:59 am
by acrisp
It's working!!!

Okay, a made a few changes at the same time so I can't be sure which one did it, but here is the changes I made:

I installed xawtv and all it's dependencies that weren't installed.

Changes my modprobe.conf to:

options bttv radio=0 card=77 tuner=-1

Restarted ZoneMinder. Fell off seat in shock. :D

p.s - I stayed with NTSC for the Device Type

Thanks again guys, appreciate your help in solving the problem. ZoneMinder is awesome!

Posted: Thu Jun 02, 2005 7:48 pm
by cordel
Glad you got it :D :D
Have fun!
Regards,
Cordel