OK, here is the way to make Philips Vesta webcams with 640x480 resolution.
I assume that ZoneMinder 1.21.0 was installed from a "live cd" - so it runs on top of Mandrakelinux (now Mandrivalinux) distribution.
I don't know if it will work with all Philips Vesta models, as there are many.
You can get your USB webcam model by using "lsusb" from usbutils package.
# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 0471:0310 Philips PCVC730K WebCam [pwc]
Bus 001 Device 004: ID 046d:0840 Logitech, Inc. QuickCam Express
Bus 001 Device 001: ID 0000:0000
As you see, I have two webcams, one of which is Philips PCVC730K WebCam.
To make it work with 640x480 resolution, download a new kernel from Mandriva mirror.
You can get the kernel-2.6.11.6mdk-1-1mdk.i586.rpm package from here:
ftp://ftp.proxad.net/pub/Distributions_ ... edia/main/
# wget
ftp://ftp.proxad.net/pub/Distributions_ ... k.i586.rpm
# rpm -ivh kernel-2.6.11.6mdk-1-1mdk.i586.rpm
You will have to change your /etc/lilo.conf to match:
boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/livecd.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.6.7-2.tmb.6mdk
label="zm"
root=/dev/hda1
initrd=/boot/initrd-2.6.7-2.tmb.6mdk.img
append="devfs=nomount acpi=ht nomce splash=silent"
vga=791
read-only
image=/boot/vmlinuz-2.6.11-8mdk
label="linux"
root=/dev/hda1
append="devfs=nomount acpi=ht nomce splash=silent"
vga=791
read-only
I assume your system was installed on /dev/hda1.
After editing /etc/lilo.conf, run lilo to apply changes:
# lilo
Added zm
Added linux *
Reboot the ZoneMinder machine, go to your Philips Vesta settings, and change the resolution to 640 x 480!
This is zmu run to detect all values for this camera (you may have to use -d0 instead of -d1 - it corresponds to /dev/video1, while -d0 corresponds to /dev/video0).
# zmu -d1 -q -v
Video Capabilities
Name: Philips 730 webcam
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: 640
Height: 480
Picture Attributes
Palette: 15 - YUV 4:2:0 Planar
Colour Depth: 24
Brightness: 32768
Hue: 65535
Colour :32768
Contrast: 64512
Whiteness: 63488
Channel 0 Attributes
Name: Webcam
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Note that zmu will fail if your camera is in use (either by xawtv, by ZoneMinder, or any other program).
You can see if your camera is in use by using lsof:
# lsof -n | grep /dev/video
zmc 7084 apache mem CHR 81,0 14935 /dev/video0
zmc 7084 apache 6u CHR 81,0 14935 /dev/video0
zmc 8315 apache mem CHR 81,1 14987 /dev/video1
zmc 8315 apache 6u CHR 81,1 14987 /dev/video1