The way I fixed this on MSI Wind which uses UVC driver as well is to compile latest version of the v4l2 object that includes some changes I forwarded to the maintainer (I think it is part of the pdp or pidip, can't remember any more). That worked perfectly fine even though I had similar problems with Gem. IIRC when I was inquiring about this the last time I think the reply was that currently v4l2 is not supported well under Gem (although please take this with a boulder of salt as this has been a while ago).
Hope this helps!
Best wishes,
Ico
-----Original Message----- From: gem-dev-bounces@iem.at [mailto:gem-dev-bounces@iem.at] On Behalf Of ben@ekran.org Sent: Sunday, May 10, 2009 7:34 PM To: gem-dev@iem.at Subject: [GEM-dev] uvc webcam (eee pc 900 built in) with pix_video?
hey all,
I'm doing a workshop in HK in about 13 days.
I wanted to demo pix_video, but I can't seem to get things working on my eee pc.
The device is working with v4l2, I can get a feed from mplayer with:
mplayer tv:// -tv driver=v4l2:device=/dev/video0:fps=30
seems generic enough. Here is the output regarding video format:
Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2) VDec: using Packed YUY2 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO: [xv] 640x480 => 640x480 Packed YUY2 Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
I'm working with an svn copy of GEM updated yesterday. I'm configuring with:
./configure --prefix=/usr --without-libv4l1 --with-libv4l2-libs=/usr/lib/ --with-libv4l2-includes=/usr/include/
and GEM complains about the camera when I start pix_video (and I get no video image):
v4l: VDIOCGCHAN: Invalid argument
This device/camera must only have one channel?
I can't tell if I'm using v4l1 or 2. configure tells me v4l: yes not matter if its v4l1 or v4l2 I enable. I also have a vague memory that configure should tell me what v4l its using, like:
v4l: yes (libv4l2)
but I can't get that output with any combination of flags. Did I imagine it?
Anyhow let me know if anyone has a working uvc webcam in gem (linux-intrepid) or better yet working eeepc webcam.
Thanks all.
Here is a link to what I'm doing here in HK:
http://www.videotage.org.hk/projects/20090514_dreamingmachine.htm
I'll have to make another post about some issues with pix_crop, and pix_buffer save, which forced me to change some aspects of the project!
..b..
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev