Hi,
so after spending the last few hours messing with the UVC code trying
to get this to work, it's loading but I need help. UVC is getting the
formats fine and it creates /dev/video0, but no program I've tried
works. I can't install sdl-dev at the moment (damn dependencies) which
means I've not tried luvcview, I'll get around to that asap.
I'm a c/c++ programmer by profession and I'm happy to put in some effort
to get this working, but I don't really know where to start. What I
should be looking for? Any pointers would be great.
I've attached the lsusb -v output for reference. The dmesg output is
also attached. The first part is just uvc loading, then ekiga followed
by kopete and a gst test. This is the command line I tried for gst and
it's corresponding output:
~/dev/linux_uvc/trunk $ gst-launch-0.10 v4l2src use-fixed-fps=false !
video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! ximagesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /pipeline0/v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(1730): gst_base_src_start (): /pipeline0/v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
FREEING pipeline ...
Something I noticed, in the lsusb output bColorPrimaries is sRGB and I
would have expected yuv. Will that cause a problem if gst is looking for
yuv? Is there anything else I should be looking at?
Many thanks,
James.
P.s. I'm running Ubuntu 6.06 on a Samsung x50 at the moment, I should be
able to upgrade to 6.10 in the next few days.
Bus 005 Device 005: ID 045e:00f8 Microsoft Corp.
Device Descriptor:
bLength18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 Common Class
bDeviceProtocol 1 Interface Association
bMaxPacketSize064
idVendor 0x045e Microsoft Corp.
idProduct 0x00f8
bcdDevice1.00
iManufacturer 1 Microsoft
iProduct2 Microsoft® LifeCam NX-6000
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 555
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Association:
bLength 8
bDescriptorType11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bFunctionProtocol 0
iFunction 2 Microsoft® LifeCam NX-6000
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 2 Microsoft® LifeCam NX-6000
VideoControl Interface Descriptor:
bLength13
bDescriptorType36
bDescriptorSubtype 1 (HEADER)
bcdUVC 1.00
wTotalLength 57
dwClockFrequency 30.00MHz
bInCollection 1
baInterfaceNr( 0) 1
VideoControl Interface Descriptor:
bLength17
bDescriptorType36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Camera Sensor
bAssocTerminal 0
iTerminal 0
junk at descriptor end: 00 00 00 00 00 00 02 00 0a
VideoControl Interface Descriptor:
bLength 9
bDescriptorType36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 3
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 5
iTerminal 0
VideoControl Interface Descriptor:
bLength 7
bDescriptorType36
bDescriptorSubtype 4 (SELECTOR_UNIT)
bUnitID 4
bNrInPins 1
baSource( 0)1
iSelector 0
VideoControl Interface Descriptor:
bLength11
bDescriptorType36
bDescriptorSubtype 5 (PROCESSING_UNIT)
Warning: Descriptor too short
bUnitID 5
bSourceID 4
wMaxMultiplier 0
bControlSize2
bmControls 0x557f
Brightness
Contrast
Hue
Saturation
Sharpness
Gamma
White Balance