Page 1 of 2

Same image at multiple channels

Posted: Wed Jul 28, 2010 7:20 pm
by SoyGabriel
Hello forum, I am Gabriel, Buenos Aires, Argentina

My english is very bad, I used the google translator, sorry for semantic errors, so sorry

We have 14 cameras, one of them with Pelco D controls. We know that all cameras work well as they were working with a system that we inherited, under Windows XP.
Since we are migrating all our platform to Linux, is that we chose for our server ZoneMinder video.

We have installed ZoneMinder on Ubuntu 1.24.2 Server 10.04 recently

From the moment we started the installation, I am visiting and going through this forum and gradually we were able to run ZoneMinder.

Our system shows the following characteristics

Code: Select all

: ~ $ lspci | grep video 
03:0 C.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 
03:0 d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 
03:0 E.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 
03:0 f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)

Code: Select all

: ~ $ ls-la / dev / video * 
crw-rw-rw-+ 1 root video 81, 0 28/07/2010 12:53 / dev/video0 
crw-rw-rw-+ 1 root video 81, 3 28/07/2010 12:53 / dev/video1 
crw-rw-rw-+ 1 root video 81, 5 28/07/2010 12:53 / dev/video2 
crw-rw-rw-+ 1 root video 81, 7 28/07/2010 12:53 / dev/video3

Code: Select all

: ~ $ vi / etc / modprobe.d / bttv.conf 
# I2c 
alias char-major-89 i2c-dev 
i2c_debug options i2c-core = 1 
options i2c-little-bit bit_test = 1 

# Bttv 
alias char-major-81 videodev 
alias char-major-81 bttv 
gbuffers options bttv card = 16 tuner = 24,24,24,24,24,24,24,24 = 131,131,131,131,131,131,131,131 radio = 0 lumafilter = 1 Combfilter chroma_agc = 1 = 1 
options tuner debug = 1


In several forums I read that we recommend to first with xawtv or tvtime, and above all, first of all run "xawtv-hwscan, we showed the following:

Code: Select all

:~$ sudo xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-24-generic-pae)
looking for available devices
port 63-78
    type : Xvideo, image scaler
    name : Radeon Textured Video

/dev/video0: OK                         [ -device /dev/video0 ]
    type : v4l2
    name : BT878 video (Leadtek WinFast 20
    flags: overlay capture  

/dev/video1: OK                         [ -device /dev/video1 ]
    type : v4l2
    name : BT878 video (Geovision GV-800(S
    flags: overlay capture  

/dev/video2: OK                         [ -device /dev/video2 ]
    type : v4l2
    name : BT878 video (Terratec TerraTV+ 
    flags: overlay capture  

/dev/video3: OK                         [ -device /dev/video3 ]
    type : v4l2
    name : BT878 video (Tibet Systems 'Pro
    flags: overlay capture


We're using for almost two weeks and slowly we are going to configure our measure, and this is where we encountered problems, it is now their story.

We had no problems in setting up and clearly visible under the following configuration:
/dev/video0 Channel 0 ==> Perfect
/dev/video1 Channel 0 ==> Perfect
/dev/video2 Channel 0 ==> Perfect
/dev/video3 Channel 0 ==> Perfect
but ...
/dev/video1 Channel 1 ==> Repeat image /dev/video1 Channel 0, is perfect, but repeats the image
/dev/video1 Channel 2 ==> Image Repeat /dev/video1 Channel 0, is perfect, but repeats the image
/dev/video1 Channel 3 ==> Image Repeat /dev/video1 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 1 ==> Repeat image /dev/video3 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 2 ==> Image Repeat /dev/video3 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 3 ==> Image Repeat /dev/video3 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 8 ==> Image Repeat /dev/video3 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 9 ==> Image Repeat /dev/video3 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 10 ==> Image Repeat /dev/video3 Channel 0, is perfect, but repeats the image
/dev/video3 Channel 11 ==> Image Repeat /dev/video3 Channel 0, is perfect, but repeats the image

I mean ... I can not lift the rest of the channels, only channels 0.

I am aware that there is much written in the forums, but for days I'm traveling and despite having done hundreds of tests, are still able to lift the rest of the channels, either with ZonMinder with xawtv or tvtime.

Any ideas?
Remember that a forum can guide me?

Of course, many thanks for any help you can give me!!

For the creators of ZoneMinder is Wonderful, Congratulations!

SoyGabriel

Posted: Wed Jul 28, 2010 10:29 pm
by kingofkya
In the zm option page

under config

find "V4L_MULTI_BUFFER"

un check the box


Also this is incorrect:

gbuffers options bttv card = 16 tuner = 24,24,24,24,24,24,24,24 = 131,131,131,131,131,131,131,131 radio = 0 lumafilter = 1

should be
tuner = 24,24,24,24,24,24,24,24
or
tuner = 131,131,131,131,131,131,131,131

Posted: Thu Jul 29, 2010 12:26 pm
by SoyGabriel
kingofkya wrote:In the zm option page

under config

find "V4L_MULTI_BUFFER"

un check the box


Also this is incorrect:

gbuffers options bttv card = 16 tuner = 24,24,24,24,24,24,24,24 = 131,131,131,131,131,131,131,131 radio = 0 lumafilter = 1

should be
tuner = 24,24,24,24,24,24,24,24
or
tuner = 131,131,131,131,131,131,131,131
Hi kingofkya

than you for your reply
Yes. right is:

Code: Select all

options bttv    gbuffers=16    card=131,131,131,131,131,131,131,131    tuner=24,24,24,24,24,24,24,24
radio=0    lumafilter=1    Combfilter=1    chroma_agc=1
Y "V4L_MULTI_BUFFER" is disabled

And do not get results ..., still showing the same images are repeated from

Code: Select all

/dev/video1 channel = 0 
and

Code: Select all

/dev/video3 channel = 0
Actually, the picture I get is very good, the problem is that I can not get to show me the rest of the channels

Soy Gabriel

Posted: Thu Jul 29, 2010 11:52 pm
by bb99
If disabling multi buffer didn't work then it's back to basics. All cameras on a single chip (you have four) must be set to the same type (NTSC, PAL), resolution (i.e. 320x240 for now), and the same palette(i.e. RGB, I really would like you to set yours to grayscale for now). Your maximum frame rate should be set to 4-5 fps for all cameras (30/4=7.5 minus 1 to 2 frames per camera for channel switching). CAPTURES_PER_FRAME will probably need to be a value of 2 or 3 eventually which will lower the frame rate again so try a maximum of 3 to begin with. Disconnect all cameras and connect one working camera to a card connection and discover that device channel number by trying the possible combinations until it works (video0, channel0, video0, channel1, etc). Disconnect that camera (you can label the connection with it's source values if you want) and connect it to another connection (still only one camera) and do the same until you've discovered all the connections. Now start to connect more cameras, one at a time, keeping in mind the above settings and that the warm up frames (25) will take 9 seconds for the camera to show a display, so give ZM some time in between changes.

Posted: Fri Jul 30, 2010 3:11 am
by SoyGabriel
bb99 wrote:If disabling multi buffer didn't work then it's back to basics. All cameras on a single chip (you have four) must be set to the same type (NTSC, PAL), resolution (i.e. 320x240 for now), and the same palette(i.e. RGB, I really would like you to set yours to grayscale for now). Your maximum frame rate should be set to 4-5 fps for all cameras (30/4=7.5 minus 1 to 2 frames per camera for channel switching). CAPTURES_PER_FRAME will probably need to be a value of 2 or 3 eventually which will lower the frame rate again so try a maximum of 3 to begin with. Disconnect all cameras and connect one working camera to a card connection and discover that device channel number by trying the possible combinations until it works (video0, channel0, video0, channel1, etc). Disconnect that camera (you can label the connection with it's source values if you want) and connect it to another connection (still only one camera) and do the same until you've discovered all the connections. Now start to connect more cameras, one at a time, keeping in mind the above settings and that the warm up frames (25) will take 9 seconds for the camera to show a display, so give ZM some time in between changes.
Hi bb99:

Thank you very much for your reply bb99. In the morning, first thing, try to do this you've recommended. Then comment as I have been in luck. Again, thank you very much

Posted: Thu Aug 05, 2010 5:36 pm
by SoyGabriel
Hi bb99:

Thank you very much for your reply bb99. In the morning, first thing, try to do this you've recommended. Then comment as I have been in luck. Again, thank you very much
Before testing recommended by bb99, a colleague told me that the problem we have is that the card is bad or not selected is correct.
The drawback is that the server will inherit armed and really have no idea that plaque is, pull it out and look for some feature that will let us look at least its manufacturer, but no luck.
The only data we could get the chips are:
Conexant Fusion 878A

Someone could tell me how I can detect that board is really?

Of course, thank you very much
SoyGabriel

ps: could achieve maximum number of cameras, making the following "option":

Code: Select all

alias char-major-81 videodev
alias char-major-81 bttv
options tuner debug = 1
options bttv  gbuffers=32 card=34,157,25,131 tuner=4,4,4,4 radio=0 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0 
I got pictures of 4 different cameras in canals

Code: Select all

/dev/video0 0
/dev/video1 0
/dev/video2 0
/dev/video3 0
and then repeated on other channels

Posted: Tue Aug 10, 2010 1:51 pm
by SoyGabriel
SoyGabriel wrote:
Hi bb99:

Thank you very much for your reply bb99. In the morning, first thing, try to do this you've recommended. Then comment as I have been in luck. Again, thank you very much
Before testing recommended by bb99, a colleague told me that the problem we have is that the card is bad or not selected is correct.
The drawback is that the server will inherit armed and really have no idea that plaque is, pull it out and look for some feature that will let us look at least its manufacturer, but no luck.
The only data we could get the chips are:
Conexant Fusion 878A

Someone could tell me how I can detect that board is really?

Of course, thank you very much
SoyGabriel

ps: could achieve maximum number of cameras, making the following "option":

Code: Select all

alias char-major-81 videodev
alias char-major-81 bttv
options tuner debug = 1
options bttv  gbuffers=32 card=34,157,25,131 tuner=4,4,4,4 radio=0 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0 
I got pictures of 4 different cameras in canals

Code: Select all

/dev/video0 0
/dev/video1 0
/dev/video2 0
/dev/video3 0
and then repeated on other channels
Please!!!!, Any idea???

thanks
SoyGabriel

Posted: Tue Aug 10, 2010 11:26 pm
by bb99
Did you give my suggestions a try?

Take a look at these and post if either is correct.
http://www.zoneminder.com/forums/viewto ... usion+878a
http://www.zoneminder.com/forums/viewto ... usion+878a

Or search the forums for "Conexant fusion 878a", several pictures are posted along with the card type settings.
My guess: card=131,131,131,131 tuner=4,4,4,4

Posted: Wed Aug 11, 2010 4:40 pm
by SoyGabriel
bb99 wrote:Did you give my suggestions a try?

Take a look at these and post if either is correct.
http://www.zoneminder.com/forums/viewto ... usion+878a
http://www.zoneminder.com/forums/viewto ... usion+878a

Or search the forums for "Conexant fusion 878a", several pictures are posted along with the card type settings.
My guess: card=131,131,131,131 tuner=4,4,4,4
Hello bb99

If the plate is showing the first image:

Code: Select all

http://www.zoneminder.com/forums/viewtopic.php?t=14295&highlight=conexant+fusion+878a
If I did, but the same problem persists.
The problem is that I selected cards only allow four channels at most.

I tested with the card 133 and 132, and now I will try the 131, as recommended.
With the cards 133 and 132 can not get image to show me any image on any channel, nothing.
With the card 131, shows the same image in some of the channels, in others, nothing ..., but now I will return to the test as it's recommend you

Thanks!

Posted: Wed Aug 11, 2010 11:22 pm
by bb99
Did you notice the odd ball channel number system used by that card:

From the wiki (Kodichrome 4400):
modprobe bttv gbuffers=16 card=133,132,133,133
or
edit your modprobe.conf to include
options bttv gbuffers=16 card=133,132,133,133
requires a 2.6.12 kernel but fully supported in a 2.6.13
I tried and failed on the 2.6.12 but succeeded on the 2.6.13

When using all 16 channels plug the additional BNC's onto the headers bearing in mind the first 4 are on the card. but the order of the channels is 1,2,3,4,9,8,5,4,13,12,11,10,15,14,7,6
Or from the post:
options bttv card=133,132,133,133

Setup in zm:

/dev/video0(0)
/dev/video1(1)
/dev/video2(2)
/dev/video3(3)
/dev/video0(4)
/dev/video1(5)
....

You can assign video channels 0 to 15 to any of the four devices (video0 to video3) as you see fit:
/dev/video0 (0 to 15)
/dev/video1 (0 to 15)
...

Of coarse it's best to not load up to many channels on one device.
See kodicom 4400 for reference.
Hope this helps.

Posted: Thu Aug 12, 2010 6:33 pm
by SoyGabriel
We continue with the same problem

Well, the only cards that gave me the 16 channels I need, was as follows:
Tibet Systems' Progress DVR CS16 (card = 131), so definitely, we confirm that this is the card we have in place.
The cards 133 and 132, never showed us any image

Configure the bttv.conf, as follows:

Code: Select all

options i2c-algo-bit bit_test=1
options bttv gbuffers=16 card=131,131,131,131 tuner=4,4,4,4
We started ZoneMinder, assuming this configuration of channels:

Code: Select all

cam01:/dev/video0 0        
cam02:/dev/video0 1    
cam03:/dev/video0 2    
cam04:/dev/video0 3
cam05:/dev/video1 0
cam06:/dev/video1 1    
cam07:/dev/video1 2    
cam08:/dev/video1 3  
cam09:/dev/video2 0    
cam10:/dev/video2 1
cam11:/dev/video2 2
cam12:/dev/video2 3      
cam13:/dev/video3 0
cam14:/dev/video3 1
cam15:/dev/video3 2 
cam16:/dev/video3 3


The result we obtained was repeated on every screen, the image of /dev/video3 channel=0, and if we disconnect from /dev/video3 channel=0, all images are in black

Again, I made the recommended bb99 and continue with the same problem.
I discuss what we do:
Disconnect all cables from the card.
We started to try connecting the wires one at a single connection to the card, but only get picture when connecting to /dev/video3 channel=0, but never could get two different images.

Traveling through the forum, found suggestion to try xawtv, installed:
aptitude install xawtv
and then execute
sudo xawtv -c /dev/video0
and only get a picture when connecting a camera in the position that corresponds to /dev/video3 channel=0 and this picture is repeated in the channels 1,2,3,8,9,10 and 11, but again, no two different images at the same time.

To discard any extra problem, again put up a hard drive with Windows XP with a similar system ZoneMinder and working properly, perfect..., but we insist that we want to migrate to linux server images please...., , HELP ME!!!!!!!!!!!...., please

Thanks
SoyGabriel

Posted: Thu Aug 12, 2010 11:18 pm
by bb99
Ok, so your original card value of 131 works so now change the tuner back to it's original value of 24 (tuner=24,24,24,24) and post results

Posted: Wed Aug 18, 2010 4:38 pm
by SoyGabriel
bb99 wrote:Ok, so your original card value of 131 works so now change the tuner back to it's original value of 24 (tuner=24,24,24,24) and post results
Hello bb99:
We did what you suggested and the result is not good...., I think

Changes in options:
From

Code: Select all

card = 4,4,4,4
to:

Code: Select all

card = 24,24,24,24
reboot the computer and the first thing we see is that it shows many errors before they reach the login.
Once we enter, we notice that we only have:

Code: Select all

/dev/video0
and disappeared:

Code: Select all

/dev/video1
/dev/video2
/dev/video3
Anyway we entered the ZonMinder, and we see that it keeps repeating the same image but only in the following channels:

Code: Select all

video0/channel0
video0/channel1
video0/channel2
video0/channel3
It was hoped this?

Thanks
SoyGabriel

Posted: Wed Aug 18, 2010 11:00 pm
by bb99
Should have been "tuner=24,24,24,24" not "card=24,24,24,24" and I had thought your original values were correct but formatted incorrectly.

Posted: Thu Aug 19, 2010 2:50 pm
by SoyGabriel
bb99 wrote:Should have been "tuner=24,24,24,24" not "card=24,24,24,24" and I had thought your original values were correct but formatted incorrectly.
Sorry bb99:

right is:

Changes in options:
From

Code: Select all

card=131,131,131,131 tuner=4,4,4,4
to

Code: Select all

card=131,131,131,131 tuner=24,24,24,24
reboot the computer and the first thing we see is that it shows many errors before they reach the login.
Once we enter, we notice that we only have:

Code: Select all

/dev/video0 
and disappeared:

Code: Select all

/dev/video1 
/dev/video2 
/dev/video3 
Anyway we entered the ZonMinder, and we see that it keeps repeating the same image but only in the following channels:

Code: Select all

video0/channel0 
video0/channel1 
video0/channel2 
video0/channel3 
It was hoped this?

Again, thank you
SoyGabriel