hi,
I've got I-Tuner Spectra8 card to play with and I'm having 2 problems with 1.19.2.
1) I'm only able to get cameras working on zoneminder side when I set source resolution to 320x240 and use the YUV422P palette. Spectra should support resolution up to 768x576 but then zmc refuses to work with any palette given. "Failed setting the window attribute" is the error I see in syslog. Tryed to increase the debugging verbosity by setting ZMC_DBG_LEVEL_zmc enviroment variable to higher values than 0 and execute zmc then - that didn't work. So how to increase the debug verbosity? And why I don't get other (and supported by hardware) resolutions - I do have ZM_STRICT_VIDEO_CONFIG set to 0, otherwise it did't work at all (even with 320x240).
2) Problems with montage window - with mozilla 1.5 or 1.6 (not using cambozola) I get 2 camera streams out of 8 cams - all others are broken images, stills link doesn't seem to work at all.
With IE and cambozola I get some 5 cams streaming out of 8 - but pictures are crappy. Should it be possible at all to view some 8 cams within montage window or is it too huge task for http protocol?
Here is the outout from zmu -d 3 -q -v:
Video Capabilities
Name: BT878 video (ProVideo PV951)
Type: 171
Can capture
Can tune
Overlay onto frame buffer
Can clip
Scalable
Video Channels: 3
Audio Channels: 1
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Atributes
Palette: 13 - YUV 4:2:2 Planar
Colour Depth: 16
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 3
Channel has a tuner
Channel has audio
Type: 1 - TV
Format: 0 - PAL
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: S-Video
Channel: 2
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL
Two problems with 1.19.2 (montage and cam reso)
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Hi,
A couple of things.
1) Have you set up your modules.conf to pass appropriate Spectra options to the bttv driver?
2) The simplest way to increase debug levels on a running process is to send it a USR1 signal. If you want high debug from the start then adding a zm_dbg_level = x; line before the zmDbgInit(); call.
3) The stills montage view was a bit broken in 1.19.2, it's probably worth going to 1.19.3 if you are going to use this.
4) When you say pictures are 'crappy', can you elaborate or post a screenshot? Are you using jpeg or mpeg streaming? You should be able to get 8 cameras in this view provided the update rates are not too high.
5) You should be able to use the Spectra card with almost any resolution and palette. Do you see any other errors in the messages log?
Phil,
A couple of things.
1) Have you set up your modules.conf to pass appropriate Spectra options to the bttv driver?
2) The simplest way to increase debug levels on a running process is to send it a USR1 signal. If you want high debug from the start then adding a zm_dbg_level = x; line before the zmDbgInit(); call.
3) The stills montage view was a bit broken in 1.19.2, it's probably worth going to 1.19.3 if you are going to use this.
4) When you say pictures are 'crappy', can you elaborate or post a screenshot? Are you using jpeg or mpeg streaming? You should be able to get 8 cameras in this view provided the update rates are not too high.
5) You should be able to use the Spectra card with almost any resolution and palette. Do you see any other errors in the messages log?
Phil,
1) yep I have modules.conf options set for spectra - options bttv card=42,42,42,42 tuner=4 radio=0 chroma_agc=1 vbibufs=4 v4l2=1 gbuffers=16
2) I'll try that
3) Updated to 1.19.3 and there are improvements on that montage view problem - with forcing cambozola I get correct view on all 8 cams, both IE and mozilla (mozilla thou needs sometime window refresh when displaying some cam feed double or triple replacing the right ones).
But when not using cambozola with mozilla - it's still displaying 2 out of 8, others are broken.
Sometimes these are 1,2 cams - sometimes 2,3. Stills link is also then unresponsive.
4) Now cambozola 0.22 works fine with 1.19.3
5) I can see some errors. For example switching device 3 channel 1 to 768x576 YUV422P I get
in syslog:
------------------------------
camserv zmc-d3[27548]: INF [Debug Level = 0, Debug Log = ]
May 7 13:43:12 camserv zmc-d3[27548]: ERR [Can't shmget: Invalid argument]
May 7 13:43:12 camserv kernel: ok
May 7 13:43:12 camserv zma-m8[27549]: INF [Debug Level = 0, Debug Log = ]
May 7 13:43:12 camserv zma-m8[27549]: ERR [Can't shmget: Invalid argument]
------------------------------
in zmdc.log
------------------------------
zma -m 8' crashed at 04/05/07 13:54:54, exit status 255
------------------------------
2) I'll try that
3) Updated to 1.19.3 and there are improvements on that montage view problem - with forcing cambozola I get correct view on all 8 cams, both IE and mozilla (mozilla thou needs sometime window refresh when displaying some cam feed double or triple replacing the right ones).
But when not using cambozola with mozilla - it's still displaying 2 out of 8, others are broken.
Sometimes these are 1,2 cams - sometimes 2,3. Stills link is also then unresponsive.
4) Now cambozola 0.22 works fine with 1.19.3
5) I can see some errors. For example switching device 3 channel 1 to 768x576 YUV422P I get
in syslog:
------------------------------
camserv zmc-d3[27548]: INF [Debug Level = 0, Debug Log = ]
May 7 13:43:12 camserv zmc-d3[27548]: ERR [Can't shmget: Invalid argument]
May 7 13:43:12 camserv kernel: ok
May 7 13:43:12 camserv zma-m8[27549]: INF [Debug Level = 0, Debug Log = ]
May 7 13:43:12 camserv zma-m8[27549]: ERR [Can't shmget: Invalid argument]
------------------------------
in zmdc.log
------------------------------
zma -m 8' crashed at 04/05/07 13:54:54, exit status 255
------------------------------
Turned all cams to capture 768x576 Grey at 5fps - now I see in syslog a lot of this stuff:
---------------------------------------
May 7 14:30:05 camserv zma-m4[9954]: WAR [Waiting for capture daemon]
May 7 14:30:05 camserv zmc-d2[10612]: ERR [Capture failure for frame 0: Invalid argument]
May 7 14:30:05 camserv zmc-d2[10612]: ERR [Sync failure for frame 0: Invalid argument]
May 7 14:30:05 camserv kernel: bttv2: PLL can sleep, using XTAL (28636363).
May 7 14:30:05 camserv zmc-d3[10002]: ERR [Capture failure for frame 13: Invalid argument]
May 7 14:30:05 camserv zmc-d3[10002]: ERR [Sync failure for frame 13: Invalid argument]
May 7 14:30:05 camserv kernel: bttv2: PLL: 28636363 => 35468950 .<6>bttv3: PLL can sleep, using XTAL (28636363).
May 7 14:30:05 camserv zmc-d0[10112]: ERR [Capture failure for frame 6: Invalid argument]
May 7 14:30:05 camserv zmc-d0[10112]: ERR [Sync failure for frame 6: Invalid argument]
May 7 14:30:05 camserv kernel: bttv3: PLL: 28636363 => 35468950 ..<6>bttv0: PLL can sleep, using XTAL (28636363).
May 7 14:30:05 camserv kernel: bttv0: PLL: 28636363 => 35468950 .. ok
May 7 14:30:05 camserv zmc-d1[10373]: ERR [Capture failure for frame 2: Invalid argument]
May 7 14:30:05 camserv zmc-d1[10373]: ERR [Sync failure for frame 2: Invalid argument]
May 7 14:30:05 camserv kernel: bttv1: PLL can sleep, using XTAL (28636363).
--------------------------------------
Got 1GB ram on 2,4 Ghz P4 with fast SATA
---------------------------------------
May 7 14:30:05 camserv zma-m4[9954]: WAR [Waiting for capture daemon]
May 7 14:30:05 camserv zmc-d2[10612]: ERR [Capture failure for frame 0: Invalid argument]
May 7 14:30:05 camserv zmc-d2[10612]: ERR [Sync failure for frame 0: Invalid argument]
May 7 14:30:05 camserv kernel: bttv2: PLL can sleep, using XTAL (28636363).
May 7 14:30:05 camserv zmc-d3[10002]: ERR [Capture failure for frame 13: Invalid argument]
May 7 14:30:05 camserv zmc-d3[10002]: ERR [Sync failure for frame 13: Invalid argument]
May 7 14:30:05 camserv kernel: bttv2: PLL: 28636363 => 35468950 .<6>bttv3: PLL can sleep, using XTAL (28636363).
May 7 14:30:05 camserv zmc-d0[10112]: ERR [Capture failure for frame 6: Invalid argument]
May 7 14:30:05 camserv zmc-d0[10112]: ERR [Sync failure for frame 6: Invalid argument]
May 7 14:30:05 camserv kernel: bttv3: PLL: 28636363 => 35468950 ..<6>bttv0: PLL can sleep, using XTAL (28636363).
May 7 14:30:05 camserv kernel: bttv0: PLL: 28636363 => 35468950 .. ok
May 7 14:30:05 camserv zmc-d1[10373]: ERR [Capture failure for frame 2: Invalid argument]
May 7 14:30:05 camserv zmc-d1[10373]: ERR [Sync failure for frame 2: Invalid argument]
May 7 14:30:05 camserv kernel: bttv1: PLL can sleep, using XTAL (28636363).
--------------------------------------
Got 1GB ram on 2,4 Ghz P4 with fast SATA