USB Webcam question....

Support and queries relating to all previous versions of ZoneMinder
Locked
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

USB Webcam question....

Post by timf »

So I took the plunge and upgraded my ZM box to FC5 and V1.22.2 and I'm pleased to report it's all working very nicely.
I have a 4 port BTTV card which occupies dev/video0 thru 3 - it works well.
So just for kicks I thought I'd try and include a USB camera - after much messing around I installed the spca5xx drivers and managed to get it working under camstream and ekigma.

dmesg reports:
/var/tmp/bach-build/BUILD/spca5xx-20060501/drivers/usb/spca5xx.c: USB SPCA5XX ca mera found. Type Intel Create and Share (SPCA501 )
/var/tmp/bach-build/BUILD/spca5xx-20060501/drivers/usb/spca5xx.c: [spca5xx_probe :5480] Camera type YUYV

zmwatch log reports:
07/04/2006 09:49:32.656394 zmwatch[2290].INF ['zmc -d /dev/video4' starting at 06/07/04 09:49:32, pid = 3749] at /usr/local/bin/zmwatch.pl line 118
07/04/2006 09:49:42.701688 zmwatch[2290].ERR [Can't get shared memory id '7a6d2008', 8: No such file or directory]
07/04/2006 09:49:42.702816 zmwatch[2290].INF [Restarting capture daemon for USB, shared memory not valid]

zmdc.log reports:
07/02/2006 14:53:33.850937 zmdc[5851].INF ['zmc -d /dev/video4' started at 06/07/02 14:53:33]
07/02/2006 14:53:34.023264 zmdc[2162].ERR ['zmc -d /dev/video4' exited abnormally, exit status 255]

Also:
[root@localhost ~]# zmu -d /dev/video4 -q -v
Video Capabilities
Name: Intel Create and Share
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 160
Minimum Height: 120
Window Attributes
X Offset: 0
Y Offset: 0
Width: 160
Height: 120
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 0
Hue: 0
Colour :20480
Contrast: 43521
Whiteness: 0
Channel 0 Attributes
Name: SPCA501
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL


So I assumed dev/video4 would work with ZM. I've many different settings in ZM, device, channel, resolution etc to no avail.

Any suggestions ?

Thanks again, Tim
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

Ok - so reading the FAQ helps :-)

Post by timf »

I increased the shared memory with

echo 134217728 >/proc/sys/kernel/shmall && echo 134217728 >/proc/sys/kernel/shmmax

and all is well. Now I'm off to research exactly what I've done with this command ;-)

Tim

(Brit living in San Diego California)
Locked