help configuring BT878A card

Forum for questions and support relating to the 1.26.x releases only.
Locked
vlad2005
Posts: 31
Joined: Fri Jun 27, 2014 6:45 pm

help configuring BT878A card

Post by vlad2005 »

Hi!
I have an Bt878A card with 16 channels.
I have installed zoneminder 1.26.5 with apt-get from repository in Ubuntu 14.04.
After resolved few errors, now everything work well on ZM. But when click to monitor camera i have black screen.
I think that is something related to card configuration.
What i do until now:
1. added to /etc/modprobe.d/bttv.conf these lines:

Code: Select all

alias char-major-81-0 bttv
options bttv card=77,77 pll=1
Anyway this is very unclear for me about what need to put here.
2. Start capture with ffmpeg from /dev/video0 and /dev/video1. Both give me video from two different cameras.
3. After change kernel.shmall and shmaxi got two cameras working with these settings: PAL, BGR24(GREY), 24bit(8bit) color, 384x288, /dev/video0 (0) and /dev/video1(0), video4linux2. Same cameras from where got previous capture with ffmpeg.
4. If i try to add another camera, on channel 1 for example, a got blue screen from both cameras on same device.
4. Only warning in log is: Can't find process with command of 'zma -m 6'. Number 6 can change
5. ZM detect only 4 cameras per device (video0 and video1).

Hardware info:

Code: Select all

lspci -vv|grep Bt
12:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
12:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
12:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
12:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)

v4l2-ctl --list-devices
BT878 video (GrandTec Multi Cap (PCI:0000:12:0c.0):
	/dev/video0
	/dev/vbi0

BT878 video (GrandTec Multi Cap (PCI:0000:12:0d.0):
	/dev/video1
	/dev/vbi1

v4l2-ctl --all
Driver Info (not using libv4l2):
	Driver name   : bttv
	Card type     : BT878 video (GrandTec Multi Cap
	Bus info      : PCI:0000:12:0c.0
	Driver version: 3.13.9
	Capabilities  : 0x85000015
		Video Capture
		Video Overlay
		VBI Capture
		Read/Write
		Streaming
		Device Capabilities
	Device Caps   : 0x05000005
		Video Capture
		Video Overlay
		Read/Write
		Streaming
Priority: 2
Video input : 3 (Composite3: no signal, no hsync lock.)
Video Standard = 0x000000ff
	PAL-B/B1/G/H/I/D/D1/K
Format Video Capture:
	Width/Height  : 384/288
	Pixel Format  : 'GREY'
	Field         : Interlaced
	Bytes per Line: 384
	Size Image    : 110592
	Colorspace    : Broadcast NTSC/PAL (SMPTE170M/ITU601)
Format Video Overlay:
	Left/Top    : 0/0
	Width/Height: 320/240
	Field       : Interlaced
	Chroma Key  : 0x00000000
	Global Alpha: 0x00
	Clip Count  : 0
	Clip Bitmap : No
Framebuffer Format:
	Capability    : Clipping List
	Flags         : Primary Graphics Surface
	Width         : 1024
	Height        : 768
	Pixel Format  : 'BGR4'
	Bytes per Line: 4096
	Size image    : 0
	Colorspace    : Unknown (00000000)
Crop Capability Invalid:
	Bounds      : Left 68, Top 16, Width 1063, Height 608
	Default     : Left 186, Top 46, Width 924, Height 576
	Pixel Aspect: 1135/944
Crop: Left 186, Top 46, Width 924, Height 576
Streaming Parameters Video Capture:
	Frames per second: 25.000 (25/1)
	Read buffers     : 8

User Controls

                     brightness (int)    : min=0 max=65280 step=256 default=32768 value=32768 flags=slider
                       contrast (int)    : min=0 max=65408 step=128 default=27648 value=27648 flags=slider
                     saturation (int)    : min=0 max=65408 step=128 default=32768 value=32768 flags=slider
                            hue (int)    : min=0 max=65280 step=256 default=32768 value=32768 flags=slider
                           mute (bool)   : default=0 value=1
                     chroma_agc (bool)   : default=0 value=0
                   color_killer (bool)   : default=0 value=0
                    comb_filter (bool)   : default=0 value=0
                      auto_mute (bool)   : default=1 value=1
         luma_decimation_filter (bool)   : default=0 value=0
                      agc_crush (bool)   : default=1 value=1
                       vcr_hack (bool)   : default=0 value=0
               whitecrush_lower (int)    : min=0 max=255 step=1 default=127 value=127
               whitecrush_upper (int)    : min=0 max=255 step=1 default=207 value=207
                       uv_ratio (int)    : min=0 max=100 step=1 default=50 value=50
                full_luma_range (bool)   : default=0 value=0
                         coring (int)    : min=0 max=3 step=1 default=0 value=0

dmesg|grep bttv
[17433.342731] bttv: driver version 0.9.19 loaded
[17433.342735] bttv: using 16 buffers with 2080k (520 pages) each for capture
[17433.342776] bttv: Bt8xx card found (0)
[17433.342791] bttv: 0: Bt878 (rev 17) at 0000:12:0c.0, irq: 22, latency: 132, mmio: 0xd0000000
[17433.342804] bttv: 0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[17433.342913] bttv: 0: tuner absent
[17433.342950] bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[17433.356017] bttv: PLL set ok
[17433.356086] bttv: 0: registered device video0
[17433.356129] bttv: 0: registered device vbi0
[17433.361767] bttv: Bt8xx card found (1)
[17433.361784] bttv: 1: Bt878 (rev 17) at 0000:12:0d.0, irq: 23, latency: 132, mmio: 0xd0002000
[17433.361798] bttv: 1: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[17433.361913] bttv: 1: tuner absent
[17433.361951] bttv: 1: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[17433.376043] bttv: PLL set ok
[17433.376105] bttv: 1: registered device video1
[17433.376148] bttv: 1: registered device vbi1

I think very important is bttv.conf but no ideea what to put there to be ok.
Thanks for any help!!!
vlad2005
Posts: 31
Joined: Fri Jun 27, 2014 6:45 pm

Re: help configuring BT878A card

Post by vlad2005 »

After some research i found id of my card with:

Code: Select all

cat /proc/bus/pci/devices
According with CARDLIST.bttv, my card correspond with this line:

Code: Select all

137 -> Conceptronic CTVFMi v2                              [036e:109e]
I change in bttv.conf like this:

Code: Select all

alias char-major-81-0 bttv
options bttv gbuffers=16 card=137,137
After reload module bttv, dmesg show like this:

Code: Select all

[18313.945403] bttv: driver version 0.9.19 loaded
[18313.945407] bttv: using 16 buffers with 2080k (520 pages) each for capture
[18313.945448] bttv: Bt8xx card found (0)
[18313.945463] bttv: 0: Bt878 (rev 17) at 0000:12:0c.0, irq: 22, latency: 132, mmio: 0xd0000000
[18313.945475] bttv: 0: using: Conceptronic CTVFMi v2 [card=137,insmod option]
[18313.945590] bttv: 0: tuner type=61
[18313.988643] bttv: 0: audio absent, no audio device found!
[18314.011989] bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[18314.024024] bttv: PLL set ok
[18314.024090] bttv: 0: registered device video0
[18314.024694] bttv: 0: registered device vbi0
[18314.024741] bttv: 0: registered device radio0
[18314.080101] input: bttv IR (card=137) as /devices/pci0000:00/0000:00:1e.0/0000:11:0a.0/0000:12:0c.0/rc/rc0/input11
[18314.080537] rc0: bttv IR (card=137) as /devices/pci0000:00/0000:00:1e.0/0000:11:0a.0/0000:12:0c.0/rc/rc0
[18314.080558] bttv: Bt8xx card found (1)
[18314.080574] bttv: 1: Bt878 (rev 17) at 0000:12:0d.0, irq: 23, latency: 132, mmio: 0xd0002000
[18314.080588] bttv: 1: using: Conceptronic CTVFMi v2 [card=137,insmod option]
[18314.080698] bttv: 1: tuner type=61
[18314.093603] bttv: 1: audio absent, no audio device found!
[18314.103162] bttv: 1: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[18314.116045] bttv: PLL set ok
[18314.116115] bttv: 1: registered device video1
[18314.116154] bttv: 1: registered device vbi1
[18314.116194] bttv: 1: registered device radio1
[18314.121670] input: bttv IR (card=137) as /devices/pci0000:00/0000:00:1e.0/0000:11:0a.0/0000:12:0d.0/rc/rc1/input12
[18314.121723] rc1: bttv IR (card=137) as /devices/pci0000:00/0000:00:1e.0/0000:11:0a.0/0000:12:0d.0/rc/rc1
Seems to be a more complete message than previous.
After these changes, now i can see another camera, but still only two.
Last edited by vlad2005 on Fri Jun 27, 2014 9:56 pm, edited 1 time in total.
vlad2005
Posts: 31
Joined: Fri Jun 27, 2014 6:45 pm

Re: help configuring BT878A card

Post by vlad2005 »

And, i don't know if is very important at this stage, sometimes i got this error
Attachments
f1.png
f1.png (17.11 KiB) Viewed 3969 times
vlad2005
Posts: 31
Joined: Fri Jun 27, 2014 6:45 pm

Re: help configuring BT878A card

Post by vlad2005 »

So, any chance to get camera from another channel?
For moment i can get video only from channel 0 on both devices.
vlad2005
Posts: 31
Joined: Fri Jun 27, 2014 6:45 pm

Re: help configuring BT878A card

Post by vlad2005 »

I attach an photo with my card.
Has two Fusion BT878A chips. A total of 16 composite inputs that are supported.
Any suggestion?
Attachments
DSC_8887_2.JPG
DSC_8887_2.JPG (195.56 KiB) Viewed 3918 times
Locked