Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Yann LeCun
I seem to be having a strange problem with the patch:
Using my own v4l2 grabbing code, I can do:
640x480 15 fps
320x240 30 fps
160x120 30 fps
and everything works fine.

but if I try 320x240 or 160x120 with an fps any 
lower than 30 fps, it doesn't work.

It looks like my code hangs at the next i/o (or perhaps
the next call to select() that it encounters) after grabbing 
a frame.  This problem doesn't happen if I set the fps to 30 
(or more).

Very strange.

  -- Yann


On Monday 16 February 2009, Jan Ciger wrote:
> Laurent Pinchart wrote:
> > 5376 bytes seem to fit in the available bandwidth, but we need to
> > take overhead into account, as well as other periodic transfers
> > (interrupt). As the USB core rejects our request for twice 2380 bytes
> > per microframe, I'm inclined to believe 2x 640x...@30fps YUYV can't
> > be streamed on high-speed USB.
>
> Thanks for the explanation, this looks reasonable :( Unfortunately that
> will make my life a bit more complicated, but well ..
>
> > Unless you believe 30 fps should be supported, I'll take the header
> > size into account and I'll commit the patch.
>
> Well, if there is no way how to get this to work, there is no point in
> delaying the patch. I am sure the camera doesn't stream 30 fps in
> Windows neither.
>
> Thanks,
>
> Jan


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


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Yann LeCun
OK, the patch works for me too. 
The Minoru works like a charm now.

640x480 at 15 fps works fine.
640x480 at 30 fps doesn't work, as Jan noted.
the raw bandwidth for 2 cameras at 640x480, 30 fps, 
in YUYV (two bytes per pixel) is just below the USB 
bandwidth, but the overhead must make it go over.

Laurent: merci mille fois.

  -- Yann


On Monday 16 February 2009, Jan Ciger wrote:
> Yann LeCun wrote:
> > Cool!
> >
> > Just to make sure: the patch is meant to be applied to the standard
> > 2.6.27-xx source tree, not to the latest/greatest version of uvc from
> > http://linuxtv.org/hg/~pinchartl/uvcvideo
> > right?
>
> Nope, this was to the latest UVC. It doesn't apply cleanly to 2.6.27.xxx
>
> Regards,
>
> Jan


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


[Linux-uvc-devel] [ANNOUNCE] Minoru3D camera supported by the Linux UVC driver

2009-02-16 Thread Laurent Pinchart
Hi everybody,

I've just realized that my latest announcement to the linux-uvc-devel mailing 
list is awfully old. I had to do something about it, and I'm pleased to 
announce that the Linux UVC driver now supports the Minoru3D stereo camera.

The Minoru3D (http://www.minoru3d.com) is a cute, anthropomorphic device made 
of two UVC cameras mounted in a single case and spaced roughly the same 
distance apart as human eyes to get a stereoscopic effect.

The latest Linux UVC driver supports streaming from both cameras 
simultaneously at 30fps (up to 320x240) or 15fps (up to 640x480). You can 
download it from the Linux UVC Mercurial repository 
(http://linuxtv.org/hg/~pinchartl/uvcvideo) or wait for Linux 2.6.30.

Please note that anaglyph (pseudo-3D image with red and blue or red and cyan 
components), "picture in picture" and "side by side" output provided by the 
Minoru3D driver on the Windows platform is not supported at this stage. This 
is an excellent opportunity for all of you to get into V4L2 application 
development and write a nice anaglyph Linux application :-)

I would like to thank Promotion & Display Technology for helping the Linux UVC 
driver development by providing both hardware samples and technical 
information.

Cheers,

Laurent Pinchart

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


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yann LeCun wrote:
> Cool! 
> 
> Just to make sure: the patch is meant to be applied to the standard
> 2.6.27-xx source tree, not to the latest/greatest version of uvc from
> http://linuxtv.org/hg/~pinchartl/uvcvideo 
> right?
> 

Nope, this was to the latest UVC. It doesn't apply cleanly to 2.6.27.xxx

Regards,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFJmainn11XseNj94gRAgzmAJ9IuwkSAvYOC0oKJgf5azqKl1+J1wCg3TPa
4Wd78rKM0BW1efaZ1qn9bTQ=
=gvQ0
-END PGP SIGNATURE-
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Laurent Pinchart wrote:
> 5376 bytes seem to fit in the available bandwidth, but we need to
> take overhead into account, as well as other periodic transfers
> (interrupt). As the USB core rejects our request for twice 2380 bytes
> per microframe, I'm inclined to believe 2x 640x...@30fps YUYV can't
> be streamed on high-speed USB.

Thanks for the explanation, this looks reasonable :( Unfortunately that
will make my life a bit more complicated, but well ..

> Unless you believe 30 fps should be supported, I'll take the header
> size into account and I'll commit the patch.

Well, if there is no way how to get this to work, there is no point in
delaying the patch. I am sure the camera doesn't stream 30 fps in
Windows neither.

Thanks,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFJmahTn11XseNj94gRAoAwAJ0eURr6Y/JTseiYNOIjz+q0IKenEACgvZUU
sioAKtqb/U04fpwHkD9abTI=
=7/fG
-END PGP SIGNATURE-
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Yann LeCun
Cool! 

Just to make sure: the patch is meant to be applied to the standard
2.6.27-xx source tree, not to the latest/greatest version of uvc from
http://linuxtv.org/hg/~pinchartl/uvcvideo 
right?

by the way, this will probably fix a similar problem I was having
while trying to grab images from two Logitech webcams simultaneously.

  -- Yann


On Monday 16 February 2009, Jan Ciger wrote:
> Replying to self:
>
> Jan Ciger wrote:
> > Is it actually possible to have two cameras on USB 2.0 bus streaming at
> > 30 fps and VGA resolution? It certainly does work on FireWire 400 - that
> > should have comparable bandwidth in YUV411 mode (have two such Unibrain
> > cams on my desk right now).
>
> Actually, I have checked the Minoru camera and it reports the mode as
> YUV422, not 411. 422 doesn't work in 30fps even on FireWire, so this
> issue is moot.
>
> Jan


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


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Laurent Pinchart
Hi Jan,

On Monday 16 February 2009 17:47:01 Jan Ciger wrote:
> Hello Laurent,
>
> Laurent Pinchart wrote:
> > You're right. I've attached an updated version of the patch to this
> > e-mail. Could you please test it ?
>
> I have tested your new patch and now I am able to stream from both
> cameras at 640x480 and 15fps. 30fps is still giving the "no space on
> device" message when I try to open the second camera. The payload sizes
> reported are 1152 bytes for 15 fps case and 2380 bytes for 30 fps.
>
> Is it actually possible to have two cameras on USB 2.0 bus streaming at
> 30 fps and VGA resolution? It certainly does work on FireWire 400 - that
> should have comparable bandwidth in YUV411 mode (have two such Unibrain
> cams on my desk right now).

Short answer, I don't know.

The cameras need to transfer 2380 bytes of video data per microframe. The 12 
bytes headers are currently not taken into account by the driver, adding them 
would raise the total to 2392 bytes per microframe per camera.

The smallest bandwidth alternate setting that would still allow us to stream 
2380+12 bytes per microframe has an endpoint maximum packed size of 2688 
bytes. This would lead to 5376 bytes per microframe for both devices.

Periodic transfers can't take more than 80% of the available bandwidth. If we 
neglect overhead, the maximum periodic transfer length is

480e6 / 8 / 8000 * 0.8 = 6000 bytes per microframe.

5376 bytes seem to fit in the available bandwidth, but we need to take 
overhead into account, as well as other periodic transfers (interrupt). As the 
USB core rejects our request for twice 2380 bytes per microframe, I'm inclined 
to believe 2x 640x...@30fps YUYV can't be streamed on high-speed USB.

> Other than this, the camera seems to start being usable, good job!

Thanks.

Unless you believe 30 fps should be supported, I'll take the header size into 
account and I'll commit the patch.

Laurent Pinchart

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


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Laurent,

Laurent Pinchart wrote:

> You're right. I've attached an updated version of the patch to this e-mail. 
> Could you please test it ?
> 


I have tested your new patch and now I am able to stream from both
cameras at 640x480 and 15fps. 30fps is still giving the "no space on
device" message when I try to open the second camera. The payload sizes
reported are 1152 bytes for 15 fps case and 2380 bytes for 30 fps.

Is it actually possible to have two cameras on USB 2.0 bus streaming at
30 fps and VGA resolution? It certainly does work on FireWire 400 - that
should have comparable bandwidth in YUV411 mode (have two such Unibrain
cams on my desk right now). Other than this, the camera seems to start
being usable, good job!

Regards,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFJmZiFn11XseNj94gRAqHTAKDMqWYdwNTyk5EyUWPArA/GEaFtmgCfbpqg
R2tZc4MqjmcxF99ckSX3Gk0=
=tmOI
-END PGP SIGNATURE-
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Replying to self:

Jan Ciger wrote:
> 
> Is it actually possible to have two cameras on USB 2.0 bus streaming at
> 30 fps and VGA resolution? It certainly does work on FireWire 400 - that
> should have comparable bandwidth in YUV411 mode (have two such Unibrain
> cams on my desk right now).

Actually, I have checked the Minoru camera and it reports the mode as
YUV422, not 411. 422 doesn't work in 30fps even on FireWire, so this
issue is moot.

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFJmZvGn11XseNj94gRAhF8AJ42QKV5w64Z3e7YXNImmeG+oOjv1ACg8fFD
JbCfQn62YJ7DK8Fk+/uM8oQ=
=UZsC
-END PGP SIGNATURE-
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


Re: [Linux-uvc-devel] Device ID of my UVC WebCam

2009-02-16 Thread Laurent Pinchart
Hi Martin

On Monday 16 February 2009 08:40:36 Martin Koller wrote:
> Hi,
>
> In my Acer Aspire 7730ZG-343G32Mn Notebook, the webcam delivers the
> following lsusb -v output:
>
> Bus 004 Device 002: ID 064e:a103 Suyin Corp.
> Device Descriptor:
>   bLength18
>   bDescriptorType 1
>   bcdUSB   2.00
>   bDeviceClass  239 Miscellaneous Device
>   bDeviceSubClass 2 ?
>   bDeviceProtocol 1 Interface Association
>   bMaxPacketSize064
>   idVendor   0x064e Suyin Corp.
>   idProduct  0xa103
>   bcdDevice1.00
>   iManufacturer   2 SuYin
>   iProduct1 Acer Crystal Eye webcam
>   iSerial 3 CN0314-SN30-OV03-VA-R02.03.02
>
> Please add it to the Supported devices list.

Should I assume you've tested the camera and it works ?

> (I use openSuse 11.1, kernel 2.6.27.7-9-pae)

Could you please provide the complete output of

lsusb -v -d 064e:a103

Thanks.

Best regards,

Laurent Pinchart

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


Re: [Linux-uvc-devel] Minoru stereo webcam

2009-02-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Laurent,

Laurent Pinchart wrote:
> Hi Jan,
>
> You're right. I've attached an updated version of the patch to this
e-mail.
> Could you please test it ?

Will do later today when I am back from office.

Regards,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFJmTKdn11XseNj94gRAqIbAKDZX7xvP/dlQgjDMLSorecDFMFNugCfY6Q8
BHYYHeaz5qeIZJ42CdG53aA=
=AChB
-END PGP SIGNATURE-
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel