[Linux-uvc-devel] Microsoft NX-6000

2007-01-21 Thread James Studdart

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 

[Linux-uvc-devel] general questions

2007-01-21 Thread Ioannis Nousias
How does one check if a usb device is UVC capable or not (apart from 
testing the driver and see if it works or not :P)?

Are the presence of video-streaming present in lsusb a good indication ?
(eg "Interface Descriptor" -> "bInterfaceSubClass" -> "2 Video Streaming" ?)

If a camera is not UVC compliant what other options are there ?

thanks,
Ioannis
 
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


Re: [Linux-uvc-devel] 046d:08c1 Logitech, Inc. Fusion and UVC !

2007-01-21 Thread Laurent Pinchart
Hi Antonio,

> It' s my error ... sorry  ;-(
> I have try first the  UVC driver but
> without success :
>
> [EMAIL PROTECTED]:/home/antonio/trunk# modprobe uvcvideo
> FATAL: Error inserting uvcvideo
> (/lib/modules/2.6.19.1/kernel/drivers/usb/image/uvcvideo.ko): Unknown
> symbol in module, or unknown parameter (see dmesg)
>
> dmesg output :
> uvcvideo: disagrees about version of symbol v4l_compat_translate_ioctl
> uvcvideo: Unknown symbol v4l_compat_translate_ioctl
> uvcvideo: disagrees about version of symbol video_devdata
> uvcvideo: Unknown symbol video_devdata
> uvcvideo: disagrees about version of symbol video_unregister_device
> uvcvideo: Unknown symbol video_unregister_device
> uvcvideo: disagrees about version of symbol video_device_alloc
> uvcvideo: Unknown symbol video_device_alloc
> uvcvideo: disagrees about version of symbol video_register_device
> uvcvideo: Unknown symbol video_register_device
> uvcvideo: disagrees about version of symbol video_usercopy
> uvcvideo: Unknown symbol video_usercopy
> uvcvideo: disagrees about version of symbol video_device_release
> uvcvideo: Unknown symbol video_device_release

Are you sure your running current kernel has been compiled 
from /usr/src/linx-2.6.19.1, or at least with the same set of options ? It 
doesn't seem so.

> The compilation was ok :
>
> [EMAIL PROTECTED]:/home/antonio/trunk# make
> Building USB Video Class driver...
> make[1]: Entering directory `/usr/src/linux-2.6.19.1'
>   Building modules, stage 2.
>   MODPOST 1 modules
> make[1]: Leaving directory `/usr/src/linux-2.6.19.1'
>
> [EMAIL PROTECTED]:/home/antonio/trunk# make install
> Installing USB Video Class driver...
> make[1]: Entering directory `/usr/src/linux-2.6.19.1'
>   INSTALL /home/antonio/trunk/uvcvideo.ko
>   DEPMOD  2.6.19.1
> make[1]: Leaving directory `/usr/src/linux-2.6.19.1'
> depmod -ae
> [EMAIL PROTECTED]:/home/antonio/trunk#

Best Regards,

Laurent Pinchart
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel