Just one came is in B&W

Forum for questions and support relating to the 1.24.x releases only.
Locked
Marcio
Posts: 9
Joined: Tue Dec 08, 2009 11:57 am

Just one came is in B&W

Post by Marcio »

I have a BT878 generic card with 4 inputs and 4 analog cameras, all cameras are the same and are configured the same in zoneminder. But any camera connected to channel 2 will be B&W. It should not be a card problem because on PICO2000 all cameras had colour. Any ideas?

Source tab:
Device Path: /dev/video0
Capture Method: VFL v2
Device Channel: 2
Device Format: NTSC
Capture Palette: BGR24
Capture Width (pixels): 320
Capture Height (pixels): 240
Preserve Aspect Ratio: Not checked
Orientation: Normal
fedelolli
Posts: 3
Joined: Mon Dec 07, 2009 11:20 am

Post by fedelolli »

Hi Marcio,

Just my 2 cent:
Have you tried to set capture palette for channel 2 in a different format like yuv422p?
Are you sure that the device format is NTSC?
What happens if you disable and disconnect the other 3 channels?

Bye
Marcio
Posts: 9
Joined: Tue Dec 08, 2009 11:57 am

Post by Marcio »

All my cameras are exactly the same, they are all NTSC and the other cameras are working with color. But any camera connected to channel 2 will be black and white. I've tried changing the palette and disabling the other cameras with no success.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Sounds like the wrong card is configured or the kernel did not properly detect the card. What does dmesg say?
Marcio
Posts: 9
Joined: Tue Dec 08, 2009 11:57 am

Post by Marcio »

Code: Select all

marcio@manny:~$ dmesg | grep tv
[   15.163111] bttv: driver version 0.9.17 loaded
[   15.163115] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   15.163153] bttv: Bt8xx card found (0).
[   15.163180] bttv0: Bt878 (rev 17) at 0000:00:0c.0, irq: 17, latency: 64, mmio: 0xdfe00000
[   15.163192] bttv0: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
[   15.163218] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
[   21.564013] tveeprom 0-0050: Huh, no eeprom present (err=-121)?
[   21.564017] bttv0: tuner type unset
[   21.564021] bttv0: i2c: checking for MSP34xx @ 0x80... not found
[   27.964014] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[   34.364016] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[   40.764055] bttv0: registered device video0
[   40.764074] bttv0: registered device vbi0
marcio@manny:~$
I don't think the kernel detected it wrong because just one camera appear as black and white, the other 3 connected to the same card are in color.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Marcio wrote:
marcio@manny:~$ dmesg | grep tv
[ 15.163111] bttv: driver version 0.9.17 loaded
[ 15.163115] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 15.163153] bttv: Bt8xx card found (0).
[ 15.163180] bttv0: Bt878 (rev 17) at 0000:00:0c.0, irq: 17, latency: 64, mmio: 0xdfe00000
[ 15.163192] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 15.163218] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
[ 21.564013] tveeprom 0-0050: Huh, no eeprom present (err=-121)?
[ 21.564017] bttv0: tuner type unset
[ 21.564021] bttv0: i2c: checking for MSP34xx @ 0x80... not found
[ 27.964014] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[ 34.364016] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[ 40.764055] bttv0: registered device video0
[ 40.764074] bttv0: registered device vbi0
marcio@manny:~$
I don't think the kernel detected it wrong because just one camera appear as black and white, the other 3 connected to the same card are in color.
Suggests is was not detected at all. Try rmmod bttv and insmod bttv card=77
Marcio
Posts: 9
Joined: Tue Dec 08, 2009 11:57 am

Post by Marcio »

Code: Select all

marcio@manny:~$ sudo insmod bttv card=77
insmod: can't read 'bttv': No such file or directory
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

To insmod from the command line use modprobe ie.

Code: Select all

modprobe bttv card=77
Though you would do better to insmod it through a configuration file.
Marcio
Posts: 9
Joined: Tue Dec 08, 2009 11:57 am

Post by Marcio »

OH its in color now, thanks very much!
Now do I have to change some configuration file to this to become permanent?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yes,
Create a file in /etc/modprobe.d/bttv.conf
and paste:

Code: Select all

options bttv card=77
Locked