BNC Extension Ports Interference BTTV Card
Posted: Sun Oct 25, 2009 3:50 pm
by windswept321
Hi there,
I have a couple of P878H-16 cards (same as
http://www.zoneminder.com/forums/viewto ... 6bfcc6da95 but with up to 16 outputs per card)
Testing with one card, the four built-in ports are all working perfectly with a bttv file of "options bttv card=138,138,138,138 pll=1,1,1,1 tuner=4,4,4,4 gbuffers=16"
The card also worked with 77,77,77,77 but this caused system instability.
I am trying to get some extra cameras working on extra ports but these aren't working properly. The feeds from cameras (including those on the expansion) bleed into each other and continuously jump between each other.
I have the sources set up as /dev/video0,1,2,3 for each chip and channels 0,1,2,3 which I believe should give the full 16 ports.
The expansion boards are from ebay and for another bttv card but fit ok and do give a feed.
The server is a Dell SC440 running Ubuntu Server.
Does anyone have any idea how to fix this or should I be getting new cards?
Posted: Tue Oct 27, 2009 3:17 pm
by windswept321
ls -al /dev | grep video*
crw-rw---- 1 root video 81, 1 2009-10-27 14:53 vbi0
crw-rw---- 1 root video 81, 3 2009-10-27 14:53 vbi1
crw-rw---- 1 root video 81, 5 2009-10-27 14:53 vbi2
crw-rw---- 1 root video 81, 7 2009-10-27 14:53 vbi3
crw-rw-rw- 1 root video 81, 0 2009-10-27 14:54 video0
crw-rw-rw- 1 root video 81, 2 2009-10-27 14:54 video1
crw-rw-rw- 1 root video 81, 4 2009-10-27 14:54 video2
crw-rw-rw- 1 root video 81, 6 2009-10-27 14:54 video3
lspci -v
00:00.0 Host bridge: Intel Corporation E7230/3000/3010 Memory Controller Hub
Subsystem: Dell Device 01df
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
Kernel driver in use: i3000_edac
Kernel modules: i3000_edac
00:01.0 PCI bridge: Intel Corporation E7230/3000/3010 PCI Express Root Port
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: efe00000-efefffff
Capabilities: [88] Subsystem: Intel Corporation Device 0000
Capabilities: [80] Power Management version 2
Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
Capabilities: [a0] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel <?>
Capabilities: [140] Root Complex Link <?>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Memory behind bridge: efd00000-efdfffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
Memory behind bridge: efc00000-efcfffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
Subsystem: Dell Device 01df
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at ff80
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
Subsystem: Dell Device 01df
Flags: bus master, medium devsel, latency 0, IRQ 22
I/O ports at ff60
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
Subsystem: Dell Device 01df
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at ff40
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) (prog-if 20)
Subsystem: Dell Device 01df
Flags: bus master, medium devsel, latency 0, IRQ 21
Memory at ff980800 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=06, sec-latency=32
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: efa00000-efbfffff
Prefetchable memory behind bridge: 00000000e0000000-00000000e80fffff
Capabilities: [50] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
Kernel modules: iTCO_wdt, intel-rng
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: Dell Device 01df
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 01f0
I/O ports at 03f4
I/O ports at 0170
I/O ports at 0374
I/O ports at ffa0
Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Dell Device 01df
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 20
I/O ports at fe00
I/O ports at fe10 [size=4]
I/O ports at fe20 [size=8]
I/O ports at fe30 [size=4]
I/O ports at fec0 [size=16]
Memory at effffc00 (32-bit, non-prefetchable) [size=1K]
Capabilities: [70] Power Management version 2
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
Subsystem: Dell Device 01df
Flags: medium devsel, IRQ 10
I/O ports at ece0 [size=32]
Kernel modules: i2c-i801
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express (rev 02)
Subsystem: Dell Device 01df
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at efcf0000 (64-bit, non-prefetchable) [size=64K]
Expansion ROM at <ignored> [disabled]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data <?>
Capabilities: [58] Vendor Specific Information <?>
Capabilities: [e8] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
Capabilities: [d0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting <?>
Capabilities: [13c] Virtual Channel <?>
Capabilities: [160] Device Serial Number b9-3b-44-fe-ff-c9-1e-00
Capabilities: [16c] Power Budgeting <?>
Kernel driver in use: tg3
Kernel modules: tg3
05:04.0 PCI bridge: Pericom Semiconductor PI7C8148A/PI7C8148B PCI-to-PCI Bridge
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=05, secondary=06, subordinate=06, sec-latency=64
Prefetchable memory behind bridge: 00000000e8000000-00000000e80fffff
Capabilities: [80] Power Management version 2
Capabilities: [90] CompactPCI hot-swap <?>
Capabilities: [a0] Vital Product Data <?>
Kernel modules: shpchp
05:07.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
Subsystem: Dell Device 01df
Flags: bus master, stepping, medium devsel, latency 64, IRQ 19
Memory at e0000000 (32-bit, prefetchable) [size=128M]
I/O ports at dc00 [size=256]
Memory at efaf0000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at efa00000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2
Kernel modules: radeon, radeonfb
06:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 16
Memory at e8007000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel driver in use: bttv
Kernel modules: bttv
06:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at e8006000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
06:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 17
Memory at e8005000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel driver in use: bttv
Kernel modules: bttv
06:09.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 10
Memory at e8004000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
06:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 18
Memory at e8003000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel driver in use: bttv
Kernel modules: bttv
06:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 4
Memory at e8002000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
06:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 19
Memory at e8001000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Kernel driver in use: bttv
Kernel modules: bttv
06:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 5
Memory at e8000000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data <?>
Capabilities: [4c] Power Management version 2
Posted: Thu Oct 29, 2009 5:07 am
by kingofkya
lower you fps
when you add cameras to one on these cards you give the switching meconizem more to do and now you also get a lower fps because it can not keep up with the chip
example a 4 input 30fps can theoretically 7.5 fps per cam however in rwality you will be closer to 5 but if you try to push it to that 7.5 you will get peices from the other feeds