(Solved) Swann PNP-150 cameras only get black screen

Forum for questions and support relating to the 1.24.x releases only.
Locked
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

(Solved) Swann PNP-150 cameras only get black screen

Post by camsystem »

I've installed ZM 1.24.2 on a Ubuntu 10.04 LTS unit following the Wiki http://www.zoneminder.com/wiki/index.ph ... x)_Desktop

I'm using a 4 channel 25 FPS Capture Card with a single 878a chip, and Swann PNP-150 cameras. Just cannot seem to get any video from either camera. Tried them one at a time on channel 0. Tried many different combinations. Went to very basic settings as follows:

Monitor - Monitor-1 (1)
GeneralSourceTimestampBuffersMisc
Device Path /dev/video0
Capture Method Video for Linux version 1
Device Channel 0
Device Format NTSC
Capture Palette Grey
Capture Width (pixels) 320
Capture Height (pixels) 240
Preserve Aspect Ratio
Orientation normal

Output from ZMU shows:
$ zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
Driver: bttv
Card: BT878 video ( *** UNKNOWN/GENER
Bus: PCI:0000:01:09.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: 838 x 504
Default: 768 x 480
Current: 768 x 480
Inputs: 4
Input 0
Name: Composite0
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal not detected (X)
Colour Signal detected
Horizontal Lock not 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: S-Video
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

Here is another output:
$ dmesg | grep bttv
[ 18.817605] bttv: driver version 0.9.18 loaded
[ 18.817617] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 18.819270] bttv: Bt8xx card found (0).
[ 18.819778] bttv 0000:01:09.0: PCI INT A -> Link[LNKF] -> GSI 11 (level, low) -> IRQ 11
[ 18.819803] bttv0: Bt878 (rev 17) at 0000:01:09.0, irq: 11, latency: 32, mmio: 0xf6afe000
[ 18.823806] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 18.823820] IRQ 11/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 18.823883] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[ 25.280073] bttv0: tuner type unset
[ 25.283879] bttv0: registered device video0
[ 25.285247] bttv0: registered device vbi0

in the ZM console the screen is blank but has State: Idle - 30.74 fps below the black screen. I can lower the frames per second and it will correspond to show it. looks like it really wants to work but needs some additional setting.

Any help or ideas would be greatly appreciated.
Last edited by camsystem on Mon Oct 03, 2011 3:38 pm, edited 1 time in total.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Swann PNP-150 cameras only get black screen

Post by bb99 »

Your card has been misidentified as "0". You will need to figure which it really is and adjust in bttv.conf. Have a read: http://www.zoneminder.com/forums/viewto ... 14&t=17872
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

Re: Swann PNP-150 cameras only get black screen

Post by camsystem »

Try creating /etc/modprobe.d/bttv.conf file with this in it:


Code:
# BTTV Modules options
# For fast loading
options i2c-algo-bit bit_test=1

# Pico2000 clone, 4 inputs 1 chip
options bttv gbuffers=16 card=77 radio=0 tuner=4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1

dmesg | grep bttv
19.271366] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 19.271380] IRQ 11/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 19.271444] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[ 20.082450] bttv0: tuner absent
[ 20.083085] bttv0: registered device video0

zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
Driver: bttv
Card: BT878 video (GrandTec Multi Cap
Bus: PCI:0000:01:09.0
Version: 0.9.18
Type: 0x5000015

No change from with original settings in ZM console. Screen is still black. Tried the camera settings: PAL 576x432 BGR24. Screen turns to a nice shade of blue.

$ lspci shows 01:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)

I do not see the Brooktree listed on http://tldp.org/HOWTO/BTTV/cards.html

Yet it is mentioned on this page: http://www.zoneminder.com/wiki/index.php/Pico2000
Chip history
The Conexant Fusion 878A is the newer version of the Brooktree Bt878A.
Looks like I just need to figure out what card number to set it to in bttv.conf file that I just created since card=77 did not change anything.

Any additional help or ideas will be greatly appreciated.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Swann PNP-150 cameras only get black screen

Post by bb99 »

In this case identifying the card will be the key since it wasn't automatically. Can't seem to get the link to photos of cards but it does exist, try searching external to this site. Also I believe this has links (2nd url) to posts that outline the bttv number identifier for bttv.conf: http://www.zoneminder.com/forums/viewto ... 21&t=18130
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

Re: Swann PNP-150 cameras only get black screen

Post by camsystem »

Replaced the 4 port video adapter (Pico2000)
Locked