Black and White Capture from Camera
Black and White Capture from Camera
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?
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?
Try this thread and see if it helps.
http://www.zoneminder.com/forums/viewto ... tions+bttv +77
Regards,
Cordel
http://www.zoneminder.com/forums/viewto ... tions+bttv +77
Regards,
Cordel
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?
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?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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
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
Okay since you have it out put twice I'm assuming 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.
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
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
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
3939663646337
It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
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 )
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.
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
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.
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.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
p.s - I stayed with NTSC for the Device Type
Thanks again guys, appreciate your help in solving the problem. ZoneMinder is awesome!
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.
p.s - I stayed with NTSC for the Device Type
Thanks again guys, appreciate your help in solving the problem. ZoneMinder is awesome!