No images and errors with resolutions other than 176x144

Support and queries relating to all previous versions of ZoneMinder
Locked
mira
Posts: 3
Joined: Sun Dec 24, 2006 10:26 am

No images and errors with resolutions other than 176x144

Post by mira »

Hello,

I have installed the ZoneMinder 1.22.23 Mandriva package. I use a Creative webcam that works fine with the spca5xx driver (xawtv, image grabbing, zoneminder).

Code: Select all

$ /usr/lib/zm/bin/zmu -d /dev/video0 -q -v -U admin -P admin
Video Capabilities
  Name: Creative Nx Pro
  Type: 1
    Can capture
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 640
  Maximum Height: 480
  Minimum Width: 176
  Minimum Height: 144
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 176
  Height: 144
Picture Attributes
  Palette: 4 - 24bit RGB
  Colour Depth: 24
  Brightness: 32768
  Hue: 0
  Colour :0
  Contrast: 32768
  Whiteness: 0
Channel 0 Attributes
  Name: ZC301-2
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
Monitor configuration: Width 176 Height 144
ZM works fine.

But when I try another resolution (640x480 320x240 352x288) there is no image and the following errors appears in /var/log/messages:

Code: Select all

Dec 24 11:10:59 localhost zmc_dvideo0[3300]: ERR [Sync failure for frame 3 buffer 0(1): Interrupted system call]
Dec 24 11:10:59 localhost zmdc[3271]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Dec 24 11:10:59 localhost zmdc[3271]: INF ['zmc -d /dev/video0' starting at 06/12/24 11:10:59, pid = 3548]
Dec 24 11:10:59 localhost zmdc[3548]: INF ['zmc -d /dev/video0' started at 06/12/24 11:10:59]
Dec 24 11:10:59 localhost zmc_dvideo0[3548]: INF [Debug Level = 0, Debug Log = <none>]
Dec 24 11:11:00 localhost zmdc[3271]: WAR [Can't find process with command of 'zma -m 1']
Dec 24 11:11:01 localhost zmc_dvideo0[3548]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
You probably think "please read the FAQ" and I did it :)
shmall and shmmax kernel values were low. I tried:

Code: Select all

echo 134217728 >/proc/sys/kernel/shmall && echo 134217728 >/proc/sys/kernel/shmmax
and (later because it still didn't work) in /etc/sysctl.conf followed by a reboot:

Code: Select all

kernel.shmall = 134217728
kernel.shmmax = 134217728
but errors are still there and ZM fails with resolutions other than 176x144.

Do you have an ideas to solve this problem ? What could I try ? It is a test machine dedicated to ZM with a freshly installed Mandriva 2006 (kernel 2.6.12-27mdk), I can do anything on it.
Thanks in advance for your help !
mira
Posts: 3
Joined: Sun Dec 24, 2006 10:26 am

Post by mira »

Well, I enabled ZM_EXTRA_DEBUG and ZM_EXTRA_DEBUG_LEVEL 2 to read the debug log and now it works ! I disabled debug and it still works.
Sorry for this post, but please do not delete it yet, I will monitor shared memory use (don't know yet how) with this USB webcam, a PCI TV stream and an standalone IP CAM.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You need to fully restart ZM sometimes if you increase image sizes. It may be that you did then when playing with the debug and that was enough.
Phil
Locked