Page 1 of 1

Problems using both Kodicom 8800 and Pico2000 in Zoneminder

Posted: Sun Feb 21, 2010 11:40 am
by craig1234
Hi,

I’m trying to get both of my cards (Kodicom 8800 and Pico2000) to work in Zoneminder, however the cards seem to clash resulting in intermittent video feeds.

Both of the cards work separately, the issues arise when they are both used in one system.

Within my /etc/modprobe.d/bttv.conf I have the following config:

options i2c-algo-bit bit_test=1
options bttv gbuffers=16 card=102,102,102,102,102,102,102,102 radio=0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0
options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0

I’m new to zoneminder, so any help would be appreciated.

Thanks

Posted: Sun Feb 21, 2010 3:58 pm
by mastertheknife
I have both kodicom 8800 and pico2000 clones running together just fine.

Use these settings:

Code: Select all

options i2c-algo-bit bit_test=1
options bttv gbuffers=16 card=77,102,102,102,102,102,102,102,102 radio=0,0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0
However if the pico2000 is being detected after the kodicom 8800, then use this (77 and 102 swapped positions)

Code: Select all

options i2c-algo-bit bit_test=1
options bttv gbuffers=16 card=102,102,102,102,102,102,102,102,77 radio=0,0,0,0,0,0,0,0,0 tuner=4,4,4,4,4,4,4,4,4 chroma_agc=1 combfilter=2 full_luma_range=1 coring=1 autoload=0

Posted: Sun Feb 21, 2010 4:40 pm
by craig1234
Thanks,

I've got both cards working. But the video is still intermittent i.e. shows the image then flashes blue. Also the frame rate does not stay at 20fps. It goes to 495fps 1722fps randomly.

Posted: Sun Feb 21, 2010 4:51 pm
by mastertheknife
Hi,

Tried both settings i posted?
if yes, you might want to try another program such as xawtv to see if the problem comes from zoneminder, to me it seems like its coming from zoneminder because of the fps jumps.
Maybe not big enough shmmax value for 2 cards?
Also, please paste any errors\warnings you see in your system log (/var/log/messages?)

Posted: Sun Feb 21, 2010 5:37 pm
by craig1234
Hi,

Yes i tried both settings. The current shared memory is set to 268424446

Something strange in the logs. I've set-up /dev/video1 (0) on monitor-2 (which is the kodicom 8800), however in the logs video0 and video1 appear to be capturing to monitor-2.

Code: Select all

Feb 21 17:27:22 CCTV zmc_dvideo0[1866]: INF [Monitor-2: 14000 - Capturing at 24.39 fps]
Feb 21 17:27:32 CCTV zmc_dvideo1[2484]: INF [Monitor-2: 13000 - Capturing at 24.39 fps]
Feb 21 17:28:03 CCTV zmc_dvideo0[1866]: INF [Monitor-2: 15000 - Capturing at 24.39 fps]
Feb 21 17:28:13 CCTV zmc_dvideo1[2484]: INF [Monitor-2: 14000 - Capturing at 24.39 fps]
Feb 21 17:28:44 CCTV zmc_dvideo0[1866]: INF [Monitor-2: 16000 - Capturing at 24.39 fps]
Feb 21 17:28:54 CCTV zmc_dvideo1[2484]: INF [Monitor-2: 15000 - Capturing at 24.39 fps]
Feb 21 17:29:24 CCTV zmc_dvideo0[1866]: INF [Monitor-2: 17000 - Capturing at 25.00 fps]
Could this explain the problem and if so how do i fix it

Thanks

Posted: Mon Feb 22, 2010 4:12 am
by mastertheknife
It could definitely explain the problem.

Have you tried removing all monitors and re-creating them all?

Posted: Mon Feb 22, 2010 2:00 pm
by craig1234
Thanks for the great advise and support !

I removed all monitors and re-created them and both cards now work perfectly with no intermittent video.

Thanks
Craig

Posted: Mon Feb 22, 2010 3:57 pm
by mastertheknife
No problem :)
But for things working like they should and ability to access all the pico2000's channels need to determine which card is detected first.

If video0 is the pico2000 (like in my case), you need to use the first settings (look above.. the one with 77 at beginning), but if video0 is the kodicom8800, it means video8 is the pico2000 and you need to use the second settings (the one with 77 at end).

mastertheknife

Posted: Mon Feb 22, 2010 4:11 pm
by craig1234
Thanks,

In the end the pico2000 was detected first as video0 and i use channels 0-3. All tested and working. :D