I'm seeing double :)

Support and queries relating to all previous versions of ZoneMinder
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

I'm seeing double :)

Post by darkpaw »

So tonight I moved over my 4-port CCTV board from my Win2k system to my FC3 system running ZM 1.22. It picked up the card fine on the first try, and I didn't need to tweak anything significant yet. I had to increase shared memory, which is of course all over these boards and the FAQ. :)

Here's my new issue...I couldn't find anything in the forums that matches this problem...

When I switch a camera from 320x200 to 640x480, I get a 320x200 image TWICE, side-by-side, rather than a hires single image. The board is capable of higher. Here is the output from zmu:

Video Capabilities
Name: BT878 video ( *** UNKNOWN/GENER
Type: 171
Can capture
Can tune
Overlay onto frame buffer
Can clip
Scalable
Video Channels: 4
Audio Channels: 1
Maximum Width: 768
Maximum Height: 480
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 200
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 0

If I'm reading that correctly, it should do 768x480. Why am I just getting 2 side-by-side copies of the same picture, rather than a single hires one? Is there a setting somewhere to override the board to get hires?

Thanks in advance for any input....
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

My first thought is that the card was not correctly detected.
Try running:
dmesg |grep bttv
darkpaw wrote: Name: BT878 video ( *** UNKNOWN/GENER
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

errors

Post by darkpaw »

Looks like there was some kind of error on detection:

[root@localhost ~]# dmesg | grep bttv
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt848 (rev 18) at 0000:00:06.0, irq: 10, latency: 64, mmio: 0xdfdff000
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv: readee error
bttv0: using tuner=-1
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 17) at 0000:00:07.0, irq: 5, latency: 64, mmio: 0xdfdfd000
bttv1: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv1: gpio: en=00000000, out=00000000 in=00fff0ff [init]
bttv: readee error
bttv1: using tuner=-1
bttv1: i2c: checking for MSP34xx @ 0x80... not found
bttv1: i2c: checking for TDA9875 @ 0xb0... not found
bttv1: i2c: checking for TDA7432 @ 0x8a... not found
bttv1: registered device video1
bttv1: registered device vbi1
[root@localhost ~]#

Running Fedora Core 3. Even with the error, the 848 series card runs fine in any res (though I couldn't use my PAL camera on it, only NTSC ones). The 878 card is a quad-input capture card (single chip). Neither of the cards have a tuner on them (BNC input only).
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

need hardware help

Post by darkpaw »

So I am trying to force the card type as "77", as seems to be common on the forums in hardware issues. When I do, I now get the 848 picked up as an 878, and the 878 is still UNKNOWN:

[root@localhost ~]# dmesg | grep bttv
bttv: driver version 0.9.15 loaded
bttv: using 32 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt848 (rev 18) at 0000:00:06.0, irq: 10, latency: 64, mmio: 0xdfdff000
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=-1
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 17) at 0000:00:07.0, irq: 5, latency: 64, mmio: 0xdfdfd000
bttv1: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv1: gpio: en=00000000, out=00000000 in=00f360ff [init]
bttv: readee error
bttv1: using tuner=-1
bttv1: i2c: checking for MSP34xx @ 0x80... not found
bttv1: i2c: checking for TDA9875 @ 0xb0... not found
bttv1: i2c: checking for TDA7432 @ 0x8a... not found
bttv1: registered device video1
bttv1: registered device vbi1
bttv0: PLL can sleep, using XTAL (28636363).
[root@localhost ~]# grep bttv /etc/modprobe.conf
alias char-major-81 bttv
options bttv gbuffers=32 card=77 tuner=-1
[root@localhost ~]#

Do I need to specify the card type in the modprobe somehow? Here's the output from lspci and lsmod:

[root@localhost ~]# lspci | grep video
00:06.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)
00:07.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
[root@localhost ~]# lsmod | grep bt
bt878 11093 0
bttv 150541 3 bt878
video_buf 21701 1 bttv
i2c_algo_bit 8521 1 bttv
v4l2_common 5953 1 bttv
btcx_risc 4425 1 bttv
i2c_core 22081 2 bttv,i2c_algo_bit
videodev 9664 3 bttv
[root@localhost ~]#

Any help would be appreciated....this seems like it's "close" to being totally up now. :)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

you nbeed to restart zm after a res change but ideally you need to set up your card better.
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
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

card

Post by darkpaw »

Can you please be more specific on "setting up my card better"?

After adding the option line to modprobe.conf, it is picking up by 848 input card as an 878, and my 878 is being still done as auto-detect and comes up in an error state.

The options for modprobe.conf are listed above in this thread. Further options to give this would be appreciated. Since both use the same bttv driver, how do I specify module options for each card separately? I'm assuming now that my video problems are due to the driver not being picked up correctly for the 878.

Cheers...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

options bttv card=0,77

This is assuming that the card is really 77. We don't know what cards you really have so this may or maynot work.
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

car type

Post by darkpaw »

Likely it's not type 77. My lspci shows:

00:06.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)
00:07.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)

I can find lots of info on the bttv driver on bytesex.org, but nothing that lists the card types. Do you happen to have a listing of the card types? Getting the right one of these will likely cure many of my problems...

Cheers.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Card types are listed in the kernel documentation.
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

more info

Post by darkpaw »

For online reference, in case anyone needs it, the card types are listed here:

http://tldp.org/HOWTO/BTTV/cards.html

So for my problem, my 848 card looks to be an early Hauppauge. That was somewhat easy. My other card has ZERO manufacturer info on it. But I found one that resembles it on EBay here:

http://cgi.ebay.com/NEW-4-Channel-Video ... dZViewItem

If anyone could help me identify this card, it would be of great value...the docs for it merely list it as "UCC4", which has nothing even close in the card list. It is for sure an 878 chipset on it, though.

Cheers.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

thats a card 77 mate
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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That card on ebay is a card 77.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

just... lol
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
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

help

Post by darkpaw »

James, I'm not sure what is so funny....I don't think I've personally ever laughed at somebody on a forum when they needed help. Not everyone is an expert...

Cordel, I highly appreciate the help you have given me with this over the past week. Your insight has been helpful many times. Thank you very much.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

whoa there mate
you will see that i said and corey said about card 77, i beat him 'just' but less than 60 seconds
i was not laughing at you in anyway
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
Locked