Page 1 of 1
Just one came is in B&W
Posted: Wed Dec 09, 2009 12:52 pm
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
Posted: Fri Dec 11, 2009 1:08 pm
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
Posted: Fri Dec 11, 2009 7:09 pm
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.
Posted: Sun Dec 13, 2009 10:24 am
by cordel
Sounds like the wrong card is configured or the kernel did not properly detect the card. What does dmesg say?
Posted: Sun Dec 13, 2009 3:15 pm
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.
Posted: Mon Dec 14, 2009 7:35 am
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
Posted: Mon Dec 14, 2009 1:20 pm
by Marcio
Code: Select all
marcio@manny:~$ sudo insmod bttv card=77
insmod: can't read 'bttv': No such file or directory
Posted: Mon Dec 14, 2009 6:33 pm
by cordel
To insmod from the command line use modprobe ie.
Though you would do better to insmod it through a configuration file.
Posted: Tue Dec 15, 2009 2:39 pm
by Marcio
OH its in color now, thanks very much!
Now do I have to change some configuration file to this to become permanent?
Posted: Tue Dec 15, 2009 4:51 pm
by cordel
Yes,
Create a file in /etc/modprobe.d/bttv.conf
and paste: