With build 2678 these connected and streamed an image but the palette was all wrong (http://www.zoneminder.com/forums/viewtopic.php?t=12611).
Installing build 2737 I can nolonger connect and encountering the following error:
01/31/09 18:33:04.465817 zmc_dvideo0[-1].FAT-zm_local_camera.cpp/351 [Device does not support video standard 1]
The above seems to occur for all device format and palette combinations.
Any suggestions, I'm happy to try a few things out to debug this.
Background
Intrepid 8.10 - Linux 2.6.27-11-generic x86_64
uvcdynctrl -l:
video1 UVC Camera (046d:0994) - aka Logitech Sphere AF
video0 USB2.0 2MP UVC AF Camera
Build settings:
./configure --with-webuser=www-data --with-webgroup=www-data ZM_DB_NAME=zm78 ZM_DB_USER=zmuser78 ZM_DB_PASS=XXXX --with-webdir=/var/www/html/zm --with-cgidir=/usr/lib/cgi-bin --with-
libarch=lib64 --with-ffmpeg=/usr --enable-mmap=yes
build 2737 setup
Code: Select all
Monitor Source Settings:
device path: /dev/video0
Capture Method: Video For Linux version 2
channel: 0
Device Format: PAL B
Caputure Palette: YUYV
Width: 640
Heigh: 480
Code: Select all
01/31/09 18:33:04.231681 zmc_dvideo0[-1].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.07604]
01/31/09 18:33:04.231779 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1708 [Got 1 monitors]
01/31/09 18:33:04.231819 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/103 [Opening video device /dev/video0]
01/31/09 18:33:04.231838 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/109 [V4L2 support enabled, using V4L2 api]
01/31/09 18:33:04.231844 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/236 [Checking video device capabilities]
01/31/09 18:33:04.231854 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/246 [Setting up video format]
01/31/09 18:33:04.464939 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/275 [Setting up request buffers]
01/31/09 18:33:04.465261 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/297 [Setting up 8 data buffers]
01/31/09 18:33:04.465807 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/332 [Configuring video source]
01/31/09 18:33:04.465817 zmc_dvideo0[-1].FAT-zm_local_camera.cpp/351 [Device does not support video standard 1]
Code: Select all
device path: /dev/video0
channel: 0
Device Format: PAL
Capture Method: Video For Linux version 2
Caputure Palette: YUYV (note: all other palettes fail)
Width: 640
Heigh: 480
Code: Select all
01/31/09 18:10:10.512546 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/99 [Opening video device /dev/video0]
01/31/09 18:10:10.512568 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/105 [V4L2 support enabled, using V4L2 api]
01/31/09 18:10:10.512575 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/110 [Checking video device capabilities]
01/31/09 18:10:10.512584 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/145 [Setting up video format]
01/31/09 18:10:10.531950 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/214 [Setting up request buffers]
01/31/09 18:10:10.532236 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/236 [Setting up 8 data buffers]
01/31/09 18:10:10.532713 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/416 [Setting up static colour tables]
01/31/09 18:10:10.533697 zmc_dvideo0[-1].DB1-zm_monitor.cpp/335 [monitor purpose=1]
01/31/09 18:10:10.533713 zmc_dvideo0[-1].DB1-zm_monitor.cpp/342 [mem.size=36865524]
01/31/09 18:10:10.533740 zmc_dvideo0[-1].DB1-zm_monitor.cpp/367 [Unable to map file /dev/shm/.zm.mmap.1 (36865524 bytes) to locked memory, trying unlocked]
01/31/09 18:10:10.550351 zmc_dvideo0[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
Code: Select all
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB2.0 2MP UVC AF Camera"
bus_info : "0000:00:1a.7"
version : 0.1.0
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "MJPEG"
pixelformat : 0x47504a4d [MJPG]
VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
index : 1
type : VIDEO_CAPTURE
flags : 0
description : "YUV 4:2:2 (YUYV)"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 640
fmt.pix.height : 480
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
fmt.pix.bytesperline : 1280
fmt.pix.sizeimage : 614400
fmt.pix.colorspace : SRGB
fmt.pix.priv : 0
controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "Brightness"
minimum : 0
maximum : 255
step : 1
default_value : 128
flags : 0
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 255
step : 1
default_value : 32
flags : 0
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "Saturation"
minimum : 0
maximum : 255
step : 1
default_value : 32
flags : 0
VIDIOC_QUERYCTRL(BASE+3)
id : 9963779
type : INTEGER
name : "Hue"
minimum : -180
maximum : 180
step : 1
default_value : 0
flags : 0
### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "USB2.0 2MP UVC AF Camera"
type : 0x1 [CAPTURE]
channels : 1
audios : 0
maxwidth : 0
maxheight : 0
minwidth : 48
minheight : 32
channels
ioctl VIDIOCGCHAN: Invalid argument
tuner
ioctl VIDIOCGTUNER: Invalid argument
audio
ioctl VIDIOCGAUDIO: Invalid argument
picture
VIDIOCGPICT
brightness : 32896
hue : 32768
colour : 8224
contrast : 8224
whiteness : 10923
depth : 16
palette : YUYV
buffer
ioctl VIDIOCGFBUF: Invalid argument
window
VIDIOCGWIN
x : 0
y : 0
width : 640
height : 480
chromakey : 0
flags : 0