No images and errors with resolutions other than 176x144
Posted: Sun Dec 24, 2006 11:21 am
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).
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:
You probably think "please read the FAQ" and I did it
shmall and shmmax kernel values were low. I tried:
and (later because it still didn't work) in /etc/sysctl.conf followed by a reboot:
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 !
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
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]
shmall and shmmax kernel values were low. I tried:
Code: Select all
echo 134217728 >/proc/sys/kernel/shmall && echo 134217728 >/proc/sys/kernel/shmmax
Code: Select all
kernel.shmall = 134217728
kernel.shmmax = 134217728
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 !