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
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
Thanks for any help!!!