gscpa, 2.6.27 kernel, v4l2 = no picture

Forum for questions and support relating to the 1.24.x releases only.
Locked
thewonderer57
Posts: 4
Joined: Sun May 17, 2009 3:41 pm

gscpa, 2.6.27 kernel, v4l2 = no picture

Post by thewonderer57 »

Hi there,

Here's my setup:
Fedora 10
ZoneMinder 1.24.1
gscpcav2
v4l2 (kernel 2.6.27)
webcam: Logitech (ID 046d:08ad Logitech, Inc. QuickCam Communicate STX)
Firefox 3.0
64bit Machine, with Fedora x86_64.

Problem:
I am not seeing any image for my device. Here's my device settings in ZM:
function: monitor
Max FPS: 30
Source:
- /dev/video (this is true for my Fedora machine)
- Method: Video For Linux version 2
- dev channel: 0
- Format: undefined
- Paletter: undefined

I notice in my system logs that I am getting the following errors:
May 17 16:49:20 robs zmdc[18875]: INF ['zmc -d /dev/video' starting at 09/05/17 16:49:20, pid = 19792]
May 17 16:49:20 robs zmdc[19792]: INF ['zmc -d /dev/video' started at 09/05/17 16:49:20]
May 17 16:49:20 robs zmc_dvideo[19792]: INF [Debug Level = 0, Debug Log = <none>]
May 17 16:49:20 robs zmc_dvideo[19792]: ERR [Can't run query: Unknown column 'Method' in 'field list']
May 17 16:49:20 robs zmdc[18875]: ERR ['zmc -d /dev/video' exited abnormally, exit status 30]
May 17 16:49:27 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
It then repeatedly shows:
May 17 16:47:27 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:47:37 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:47:47 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:47:57 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:48:07 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
etc...
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

read the faq regarding shared memory you need to set it
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

ok i will give you a hint

also for shared memory try

sudo nano /etc/sysctl.conf
add

kernel.shmall = 268424446
kernel.shmmax = 268424446

or modify the line with the bigger number

then reboot

then

ips -l

to make sure there were no typos and applied the new shared memory setting
thewonderer57
Posts: 4
Joined: Sun May 17, 2009 3:41 pm

Post by thewonderer57 »

Hi,

thanks for your response.

Unfortunately I followed your instruction, and added:
kernel.shmall = 268424446
kernel.shmmax = 268424446

... to my /etc/sysctl.conf

I then rebooted.
I got exactly the same errors:
May 17 16:47:27 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:47:37 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:47:47 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:47:57 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
May 17 16:48:07 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Here's some feedback from your suggested commands:
># sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 268424446
kernel.shmmax = 268424446

># ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 262133
max total shared memory (kbytes) = 1073697784
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 6921
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
azir
Posts: 14
Joined: Tue Jan 22, 2008 7:30 am
Location: Surabaya, Indonesia

Post by azir »

gspca kernel module supports many usb web cams, but sometimes it need help of libv4l2, try preload libv4l within zmdc.pl script
it works for me with my usb webcams (genius and prolink)

Code: Select all

$ENV{PATH}  = '/bin:/usr/bin';
$ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
# preload libv4l2
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: gscpa, 2.6.27 kernel, v4l2 = no picture

Post by cordel »

thewonderer57 wrote: I notice in my system logs that I am getting the following errors:
May 17 16:49:20 robs zmdc[18875]: INF ['zmc -d /dev/video' starting at 09/05/17 16:49:20, pid = 19792]
May 17 16:49:20 robs zmdc[19792]: INF ['zmc -d /dev/video' started at 09/05/17 16:49:20]
May 17 16:49:20 robs zmc_dvideo[19792]: INF [Debug Level = 0, Debug Log = <none>]
May 17 16:49:20 robs zmc_dvideo[19792]: ERR [Can't run query: Unknown column 'Method' in 'field list']
May 17 16:49:20 robs zmdc[18875]: ERR ['zmc -d /dev/video' exited abnormally, exit status 30]
May 17 16:49:27 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
It then repeatedly shows:
May 17 16:47:27 robs zmwatch[18917]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
"Can't get shared memory id , No such file or directory only means that there is nothing in shared memory and that likely there is a configuration error. For some reason ZM was unable to capture an image and put it there, nothing more.

In your case it seems you have a database error as highlighted above. If you have updated ZM then likely you forgot to update the database as described in the documentation. Otherwise you need to find out why your database is missing a very important column.
thewonderer57
Posts: 4
Joined: Sun May 17, 2009 3:41 pm

Post by thewonderer57 »

Cordel,

you are absolutely right! I emptied the mySql database, and installed ZoneMinder from Fedora 11's RPM.

I then applied the database creation script at:
/usr/share/zoneminder/db/zm_create.sql

I then commented out then line:
Deny from all # DELETE THIS LINE
from:
/etc/httpd/conf.d/zoneminder.conf

Finally, the settings, it seems, for my webcam are:
NTSC
RGB24
width = 320
Height=240

then in "Options" -> "Images" tab, I selected "stream method" to be "jpeg".

Now I'm all setup, with a working webcam. I am really (really) impressed with the motion detection. A fantastic example of great software.

thanks cordel.
UPDATE: I posted a tutorial based on my experiences to:
http://www.zoneminder.com/forums/viewto ... 3468#53468
Locked