Hi Petr, hi Pavel, On Sunday 09 November 2008, Petr Menšík wrote: > I think i can reply here also, as i have 05ca:183b that is very similar. > It is integrated in Sony Vaio VGN-FZ21 series. > > I made some tests at http://www.pihhan.info/sony/webcam/webcam-tests > There are also scripts i used and lsusb verbose output for camera. > > Laurent Pinchart píše v Čt 06. 11. 2008 v 01:17 +0100: > > On Tuesday 04 November 2008, Pavel Revak wrote: > > > Hi Philipp > > > very nice, this solved my problem :) > > > thanks. > > > > > > also I do some tests with luvcview and any other grabbed resolution > > > than 640x480 is broken ... > > > > How broken ? Can you post screenshots ? > > See http://www.pihhan.info/sony/webcam/webcam-tests/160/00000012.png as > example. After simpel transformation of buffer to width 640, you will se > camera never changed its resolution. Only software thinks it did. See > http://www.pihhan.info/sony/webcam/webcam-tests/160/00000012-mod.png to > get upper part of original image.
Thanks for the analysis. I agree with your conclusion, the camera hasn't changed its capture resolution. > > As a side note, make sure you check the kernel log (dmesg) for uvcvideo > > error messages when performing your tests. > > No errors in kernel for my model. I made some debug info with controls > and stuff using: > options uvcvideo trace=0x307 > > Output is at http://www.pihhan.info/sony/webcam/uvcload.txt > it is somehow bigger to paste it into mail i think. Only strange warning is > > Nov 9 14:02:17 mentalek kernel: [23909.937596] uvcvideo: Control > 0x00980909 not found. > > It does so when i play it using mplayer tv:///, i dont know what does that > mean. Nothing to worry about. 0x00980909 is V4L2_CID_AUDIO_MUTE and is not supported by UVC devices. > > > is here possible to disable, these resolutions for this camera > > > > The resolutions are reported by the camera itself. The UVC driver merely > > pass the data to userspace without any modification. > > They are reported but not working. R5u870 driver seems to be not > developed now, as work is put to upload firmware and then handle camera > using uvcvideo. Did resolutions other than 640x480 ever worked with the r5u870 driver ? > > > or make software image resize ? > > > > The driver doesn't resize or process the image in any way. This kind of > > function belongs to userspace. > > > > > luvcview reports the following resolutions: > > > $ lucview -L > > > luvcview 0.2.4 > > > SDL information: > > > Video driver: x11 > > > A window manager is available > > > Device information: > > > Device path: /dev/video0 > > > /dev/video0 does not support read i/o > > > { pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' } > > > { discrete: width = 640, height = 480 } > > > Time interval between frame: 1/15, > > > { discrete: width = 320, height = 240 } > > > Time interval between frame: 1/15, > > > { discrete: width = 176, height = 144 } > > > Time interval between frame: 1/15, > > > { discrete: width = 160, height = 120 } > > > Time interval between frame: 1/15, > > My output: > luvcview version 0.2.1 > Video driver: x11 > A window manager is available > video /dev/video0 > /dev/video0 does not support read i/o > { pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' } > { discrete: width = 640, height = 480 } > Time interval between frame: 1/30, > { discrete: width = 1280, height = 1024 } > Time interval between frame: 2/15, > { discrete: width = 320, height = 240 } > Time interval between frame: 1/30, > { discrete: width = 176, height = 144 } > Time interval between frame: 1/30, > { discrete: width = 160, height = 120 } > Time interval between frame: 1/30, > > Where can i get newer version? i found this most recent one at > http://mxhaard.free.fr/spca50x/Investigation/uvc/ but i have older > version it seems. You can grab the latest version from the quickcamteam.net SVN repository at http://svn.quickcamteam.net/svn/luvcview/ > Also, my luvcview will not show anything to me, it fails with: > > luvcview version 0.2.1 > Video driver: x11 > A window manager is available > video /dev/video0 > Unable to set format: 22. > Init v4L2 failed !! exit fatal > > Do you where it could fail or how could i fix this? I tried different > formats and sizes, but i never saw image from luvcview. luvcview (at least its old versions) defaulted to MJPEG even if the camera doesn't support that format. You can force YUYV with luvcview -f yuv > Mplayer tv:/// will work (1.0rc2-4.2.3), as is cheese 2.22.3. xawtv will > choose wrong resolution and i dont know how to change it. It worked with > r5u870 driver. What resolution did xawtv pick with the r5u870 driver ? > But Mplayer has somehow strange colors, image from cheese is better in > quality. That might be caused by default control values chosen by mplayer and cheese, especially the hue control. > > Please note that the r5u870 chipset is not completely UVC compliant and > > is currently not officially supported by the UVC driver. > > Do you know about anything exactly that this camera does not support as > it should? There are a number of UVC non compliance issues with the r5u870 chipset: - The chipset advertises UVC descriptors when no firmware is loaded. It won't re-enumerate or change its descriptors after firmware loading. This makes initialisation quite difficult. - Some proprietary controls supported by the camera are not advertised in its descriptors and are only accessible through a proprietary protocol. The UVC driver has no way to access those controls. - As you reported, resolutions other than 640x480 seem to be broken. More investigation is probably required. > I would like to get it working with uvcvideo module and i may > try to create patch, but i dont understand well how is resolution > switching done in UVC video module. Would it be fixed with some custom > quirk for example? iSight has some special, why not this? The uvcvideo driver supports some non-standard cameras using device-specific quirks. The iSight is the worst example of such devices. Still, it only overrides very specific portion of the driver's logic. Supporting r5u870 chipsets in the uvcvideo driver would require introducing hooks pretty much all over the place and I'm not happy with that. r5u870-based cameras are far from being UVC compliant, and for the time being they are better served by a separate driver. Best regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
