<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
What you write here, seams to me very interesting! Specially your last
sentence is actually the thing I'm looking for: How to make win
applications believe, that there is a real device and supply whatever
it wants....<br>
<br>
So even the project I was supposed to work on, is already dead, before
it started really, but I think there is a interesting discussion going
on.....so maybe we keep it going? Support for web cams under wine!
Sounds terrific!<br>
<br>
Of course v4l support is the basic condition, but there are many
(linux) drivers around for web cams. I think, that there are
programmers on this list, which have the expertise to get us one step
further with implementing a video device under wine. It's probably the
same approach, like implementing /dev/dsp oss or alsa driver settings,
but for the video stream!?<br>
<br>
Rick Romero wrote:
<blockquote cite="mid1104945472.2869.31.camel@phoenix.valeoinc.com"
 type="cite">
  <pre wrap="">On Wed, 2005-01-05 at 08:17, luis lenders wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">MediaHost (TM) wrote:

    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">However, is there any development going on
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">concerning v4l and/or USB? 
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">Actually it's a pity, that I couldn't realize this
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">project....we would 
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">have been willing to invest in such code....
        </pre>
      </blockquote>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">I'm not sure what the capabilities of video4linux
      </pre>
    </blockquote>
    <pre wrap="">are, &gt;which devices it 
    </pre>
    <blockquote type="cite">
      <pre wrap="">supports or how its API works.  I know it supports at
least some USB webcams.
      </pre>
    </blockquote>
    <pre wrap="">Actually video4linux has quite some capabilities, a
program like xawtv for example can even grab a movie
from your tv-tuner card.

    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">As we can access /dev/usb/lpt or /dev/dsp, it
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">should &gt;&gt;be possible to access /dev/video....I'm not
familiar &gt;&gt;in implementing such stuff at  wine,
but....?

Altough I'm a programming noob i tried a few weeks ago
 to write some code to accomplish this with (not much)
but still a little succes: i used code from a program
like vidcat to read a frame from my v4l device (in png
format), used code from another program (png2bmp) to
turn it into a bitmap, and used CreateWindowEx to
display this in a windowsprogram under wine. Although
the window with the frame from my webcam showed up ,
the windowsprogram did not behave further as it should
do. There is plenty of code to be found on the
internet 
using the v4l api, but the problem  how to get this in
wine. Maybe someone has some further hints? 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I don't consider myself a programmer, so I'm probably the last person to
comment on this, BUT... 

I did some work with motion.sourceforget.net, and in playing with v4l,
and v4l2 (and creating a 'multiout' - sending multiple channels on one
device to multiple video devices), I can tell you that just opening the
/dev/video (or v4l2 - /dev/v4l/video, IIRC) will just get you a plain
YUV stream.  It's pretty easy to manipulate at that point.  The 'trick'
to v4l is v4l support for your device.  Once you have that support,
there are a million things you can do with it.

vgrabber is a really simple frame grabber if you're looking for more
info on how v4l works:
<a class="moz-txt-link-freetext" href="http://www.tazenda.demon.co.uk/phil/v4l.html">http://www.tazenda.demon.co.uk/phil/v4l.html</a>

I dare say, if Windows is expecting a YUV stream from it's image capture
device, it might be just enough to fake a Windows device that's just
reads from /dev/video

Unfortunately I don't know anything about Video for Windows.

HTH

Rick

  </pre>
  <blockquote type="cite">
    <pre wrap="">Regards luis



        
        
                
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! <a class="moz-txt-link-freetext" href="http://uk.messenger.yahoo.com">http://uk.messenger.yahoo.com</a>
    </pre>
  </blockquote>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div><font face="Arial" size="2">Regards</font></div>
<div><font face="Arial" size="2">&nbsp;</font></div>
<div><font face="Arial" size="2">Signer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Eddy Nigg<br>
Company: StartCom Linux at </font><a href="http://www.startcom.org/"><font
 face="Arial" size="2">www.startcom.org</font></a><br>
<font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MediaHost&#8482; at </font><a
 href="http://www.mediahost.org/"><font face="Arial" size="2">www.mediahost.org</font></a><br>
<font face="Arial" size="2">Skype:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="callto://startcom/">startcom</a></font></div>
<div><font face="Arial" size="2">Phone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +1.213.341.0390</font></div>
<div><font face="Arial" size="2">&nbsp;</font></div>
</div>
</body>
</html>