I've got a Philips PCVC740K ToUCam Pro USB webcam. When taking snapshots with v4l (v4lctl -c /dev/video0 snap jpeg full ./v4l.jpg) it looks good: see this pic (made in complete darkness)
When using it in ZoneMinder it looks like this
ZM->Monitor->Source:
- Video For Linux version 2 (with version 1: zmc -d /dev/video0' exited abnormally, exit status 255)
Channel: 0
Format: PAL
Palette: YUV420 (shouldn't there be an YUV420P option also??)
640x480
Code: Select all
rpm -qa | grep ZoneMinder ; rpm -qa | grep "v4l" ; uname -a
ZoneMinder-1.24.2-5.1.x86_64
libv4l1-0-0.6.4-1.pm.5.1.x86_64
v4l-conf-3.95-211.1.x86_64
libv4l2-0-0.6.4-1.pm.5.1.x86_64
libv4lconvert0-0.6.4-1.pm.5.1.x86_64
v4l-tools-3.95-211.1.x86_64
libv4l-0.6.4-1.pm.5.1.x86_64
Linux turpin 2.6.31.12-0.2-mdb #3 SMP Sat Mar 27 18:53:57 CET 2010 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
zmu -d /dev/video0 -q -v -V 1
Video Device: /dev/video0
Video Capabilities
Name: Philips 740 webcam
Type: 1
Can capture
Video Channels: 1
Audio Channels: 1
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: 32256
Hue: 65535
Colour :32768
Contrast: 19456
Whiteness: 22528
Channel 0 Attributes
Name: Webcam
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Code: Select all
zmu -d /dev/video0 -q -v -V 2
Error, failed to query crop capabilities /dev/video0: Invalid argument
Code: Select all
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 1415:2000 Nam Tai E&E Products Ltd. or OmniVision Technologies, Inc. Sony Playstation Eye
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[b]Bus 006 Device 002: ID 0471:0311 Philips PCVC740K ToUcam Pro [pwc][/b]
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Code: Select all
v4l-info /dev/video0
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "pwc"
card : "Philips 740 webcam"
bus_info : "usb-0000:00:13.1-3"
version : 10.0.12
capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]
standards
VIDIOC_ENUMSTD(0)
index : 0
id : 0x0 []
name : "webcam"
frameperiod.numerator : 0
frameperiod.denominator : 0
framelines : 0
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "usb"
type : unknown
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "Raw Philips Webcam"
pixelformat : 0x32435750 [PWC2]
VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
index : 1
type : VIDEO_CAPTURE
flags : 0
description : "4:2:0, planar, Y-Cb-Cr"
pixelformat : 0x32315559 [YU12]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 640
fmt.pix.height : 480
fmt.pix.pixelformat : 0x32315559 [YU12]
fmt.pix.field : NONE
fmt.pix.bytesperline : 960
fmt.pix.sizeimage : 460800
fmt.pix.colorspace : unknown
fmt.pix.priv : 0
controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "Brightness"
minimum : 0
maximum : 128
step : 1
default_value : 64
flags : 0
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 64
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "Saturation"
minimum : -100
maximum : 100
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
id : 134217728
type : BUTTON
name : "Save User Settings"
minimum : 0
maximum : 0
step : 0
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
id : 134217729
type : BUTTON
name : "Restore User Settings"
minimum : 0
maximum : 0
step : 0
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
id : 134217730
type : BUTTON
name : "Restore Factory Settings"
minimum : 0
maximum : 0
step : 0
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+3)
id : 134217731
type : BOOLEAN
name : "Colour mode"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+4)
id : 134217732
type : BOOLEAN
name : "Auto contour"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+5)
id : 134217733
type : INTEGER
name : "Contour"
minimum : 0
maximum : 63
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+6)
id : 134217734
type : BOOLEAN
name : "Backlight compensation"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+7)
id : 134217735
type : BOOLEAN
name : "Flickerless"
minimum : 0
maximum : 1
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+8)
id : 134217736
type : INTEGER
name : "Noise reduction"
minimum : 0
maximum : 3
step : 1
default_value : 0
flags : 0
### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "Philips 740 webcam"
type : 0x1 [CAPTURE]
channels : 1
audios : 1
maxwidth : 640
maxheight : 480
minwidth : 160
minheight : 120
channels
VIDIOCGCHAN(0)
channel : 0
name : "Webcam"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0
tuner
ioctl VIDIOCGTUNER: Invalid argument
audio
VIDIOCGAUDIO
audio : -1
volume : 0
bass : 0
treble : 0
picture
VIDIOCGPICT
brightness : 32256
hue : 65535
colour : 32768
contrast : 19456
whiteness : 22528
depth : 24
palette : YUV420P
buffer
VIDIOCGFBUF
base : (nil)
height : 0
width : 0
depth : 0
bytesperline : 0
window
VIDIOCGWIN
x : 0
y : 0
width : 640
height : 480
chromakey : 0
flags : 655360