Problem with bt 878 based card

Post here to indicate any hardware you have used and which is known to work with ZoneMinder. Not for questions.
Post Reply
coffeepot76
Posts: 2
Joined: Mon May 31, 2010 8:30 pm

Problem with bt 878 based card

Post by coffeepot76 »

hi,
I have some problems in ZoneMinder with two cards pico2000 rev 2.0 (conextant fusion 878A based ). In the past I used
successfully these cards with an older PC on which I installed the zm live distro, today I migrated to a newer PC (i686
Pentium (R) Dual-Core CPU E5400@2.70GHz) on which I've installed Sabayon 2.6.34 and ZoneMinder v1.24.2.

In modprobe.d I've posted a bttv.conf with:

options i2c-algo-bit bit_test=1
options bttv card=77,77 tuner=4,4 radio=0,0 triton1=0 vsfx=0 autoload=0


The cards are identified by zm, which marks them sources in orange.
In Window monitor instead I get a broken image link, if I change image
option into mpeg I get a white image. I've tried to switch from v4l1 to v4l2 but nothing change.

From zmu -d /dev/video0 -q -v i've obtained:

Video Device: /dev/video0
General Capabilities
Driver: bttv
Card: BT878 video (GrandTec Multi Cap
Bus: PCI:0000:03:00.0
Version: 0.9.18
Type: 0x5000015
Supports video capture (X)
Does not support video output
Supports frame buffer overlay
Supports VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Supports read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
NTSC
NTSC-M
NTSC-M-JP
NTSC-M-KR
PAL
PAL-BG
PAL-H
PAL-I
PAL-DK
PAL-M
PAL-N
PAL-Nc
PAL-60
SECAM
SECAM-B
SECAM-G
SECAM-H
SECAM-DK
SECAM-L
SECAM-Lc
Formats:
8 bpp, gray (GREY)
8 bpp, dithered color (HI24)
15 bpp RGB, le (RGBO)
15 bpp RGB, be (RGBQ)
16 bpp RGB, le (RGBP)
16 bpp RGB, be (RGBR)
24 bpp RGB, le (BGR3)
32 bpp RGB, le (BGR4)
32 bpp RGB, be (RGB4)
4:2:2, packed, YUYV (YUYV)
4:2:2, packed, YUYV (YUYV)
4:2:2, packed, UYVY (UYVY)
4:2:2, planar, Y-Cb-Cr (422P)
4:2:0, planar, Y-Cb-Cr (YU12)
4:2:0, planar, Y-Cr-Cb (YV12)
4:1:1, planar, Y-Cb-Cr (411P)
4:1:0, planar, Y-Cb-Cr (YUV9)
4:1:0, planar, Y-Cr-Cb (YVU9)
Crop Capabilities
Bounds: 1063 x 608
Default: 924 x 576
Current: 924 x 576
Inputs: 4
Input 0
Name: Composite0
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 1
Name: Composite1
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 2
Name: Composite2
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 3
Name: Composite3
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected


and for video1 is the same.


lspci says:
03:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
03:01.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
03:01.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)



my dmesg|grep bt says:


[ 13.301492] bttv: driver version 0.9.18 loaded
[ 13.301494] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 13.301853] bttv: Bt8xx card found (0).
[ 13.301868] bttv 0000:03:00.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, low) -> IRQ 10
[ 13.301877] bttv0: Bt878 (rev 17) at 0000:03:00.0, irq: 10, latency: 64, mmio: 0xfdffe000
[ 13.301892] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 13.301894] IRQ 10/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 13.301917] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
[ 13.301933] bt878 #0 [sw]: bus seems to be busy
[ 13.502004] bttv0: tuner absent
[ 13.502006] bttv0: the autoload option is obsolete.
[ 13.502007] bttv0: use option msp3400, tda7432 or tvaudio to
[ 13.502009] bttv0: override which audio module should be used.
[ 13.502277] bttv0: registered device video0
[ 13.502467] bttv0: registered device vbi0
[ 13.502487] bttv0: PLL: 28636363 => 35468950 .
[ 13.503141] bttv0: PLL: 28636363 => 35468950 .
[ 13.503339] bttv0: PLL: 28636363 => 35468950 .. ok
[ 13.524028] bttv: Bt8xx card found (1).
[ 13.524052] bttv 0000:03:01.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 13.524064] bttv1: Bt878 (rev 17) at 0000:03:01.0, irq: 11, latency: 64, mmio: 0xfdffc000
[ 13.524106] bttv1: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 13.524109] IRQ 11/bttv1: IRQF_DISABLED is not guaranteed on shared IRQs
[ 13.524139] bttv1: gpio: en=00000000, out=00000000 in=00f360ff [init]
[ 13.524158] bt878 #1 [sw]: bus seems to be busy
[ 13.725003] bttv1: tuner absent
[ 13.725004] bttv1: the autoload option is obsolete.
[ 13.725005] bttv1: use option msp3400, tda7432 or tvaudio to
[ 13.725007] bttv1: override which audio module should be used.
[ 13.725094] bttv1: registered device video1
[ 13.725134] bttv1: registered device vbi1
[ 13.725153] bttv1: PLL: 28636363 => 35468950 .. ok

so i think that the problem could be in the messages:

bt878 #0 [sw]: bus seems to be busy
bt878 #1 [sw]: bus seems to be busy


Someone have any suggestion?

thanks in advance.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

Try changing Captures_per_Frame value from 1 to 2 or more. From the value description: If you are using cameras attached to a video capture card which forces multiple inputs to share one capture chip, it can sometimes produce images with interlaced frames reversed resulting in poor image quality and a distinctive comb edge appearance. Increasing this setting allows you to force additional image captures before one is selected as the captured frame. This allows the capture hardware to 'settle down' and produce better quality images at the price of lesser capture rates. This option has no effect on (a) network cameras, or (b) where multiple inputs do not share a capture chip. This option addresses a similar problem to the ZM_V4L_MULTI_BUFFER option and you should normally change the value of only one of the options at a time.
coffeepot76
Posts: 2
Joined: Mon May 31, 2010 8:30 pm

Post by coffeepot76 »

bb99 wrote:Try changing Captures_per_Frame value from 1 to 2 or more. From the value description: If you are using cameras attached to a video capture card which forces multiple inputs to share one capture chip, it can sometimes produce images with interlaced frames reversed resulting in poor image quality and a distinctive comb edge appearance. Increasing this setting allows you to force additional image captures before one is selected as the captured frame. This allows the capture hardware to 'settle down' and produce better quality images at the price of lesser capture rates. This option has no effect on (a) network cameras, or (b) where multiple inputs do not share a capture chip. This option addresses a similar problem to the ZM_V4L_MULTI_BUFFER option and you should normally change the value of only one of the options at a time.
Hi bb99,
now ZM_V4L_MULTI_BUFFER is off and CAPTURE_PER_FRAME is 8 but nothing change.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

Try leaving multi buffers off and lower the captures per frame to 2 or maybe 3 at most. Connect only one camera per card for troubleshooting and disable any other defined monitors so you only have to change one per card. Double check the settings on the monitor source tabs to insure they're the same as with the live CD set up except for the capture palette and width / height. Change width / height to 320 / 240; as for the palette: you're going to have to experiment with this to find the correct one. An example: using a PV-149 with 1.23.3, I used RGB, with 1.24.2 I have to use BGR24. Mostly what you've posted looks good so I think it will be this simple.
mariont
Posts: 2
Joined: Mon Jul 23, 2012 9:41 pm

Re: Problem with bt 878 based card

Post by mariont »

Verify blacklists in modprobe directory, can be blocked.
jimm01
Posts: 11
Joined: Sat Aug 31, 2013 2:00 pm

Re: Problem with bt 878 based card

Post by jimm01 »

Looks like an irq problem on the bus. From the messages as per below and the others.

Try moving the card to the first slot available then boot up and see how it goes.
check for options on bios for the slots the capture card is fitted too.

I have seen a pci capture card stop a motherborad dead not even post in the past.
Both motherboard and pci card work fine in other boards but not together.

I had a lot of trouble setting up the card that you have in the past. Would only
work on certain motherbords. and in certain slots

IRQ 11/bttv1: IRQF_DISABLED is not guaranteed on shared IRQs
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Re: Problem with bt 878 based card

Post by jameswilson »

WHat chipset is on the main board. As above id try running with only 1 card to start with. I have had loads of issue with non intel mobos
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply