how can i capture video from my webcam ?
(i wont using "capCreateCaptureWindow function")
Posted on 2004-07-01 14:52:57 by Criminal2
use directshow
Posted on 2004-07-01 15:10:01 by comrade
but i have another great problem.i haven't DirectX SDK and my connection is very slow.
Posted on 2004-07-01 16:45:24 by Criminal2
download the SDK at firend's house? :P
Posted on 2004-07-01 16:52:15 by wizzra
it would be very hard in asm anyway
Posted on 2004-07-01 17:22:18 by comrade
:( :( :(
Posted on 2004-07-01 17:28:40 by Criminal2
I'm sure Scronty can lead you in the right direction since he actually has experience with DirectX and Win32ASM.
Posted on 2004-07-01 21:57:12 by SpooK
Thank everyone
Posted on 2004-07-02 05:35:48 by Criminal2
you can also use the capXXX API functions, they are a bit older fashioned than DirectX, but work well on every windows. They use (if I'm right) the mmsystem.dll and are quite compatible to any kind of video / image capture device.

You also have a number of easy-to-use high level functions, like capDlgVideoDisplay() which displays a ready to use dialog (provided by the device driver) to adjust display parameters.
Posted on 2004-07-05 03:38:23 by beaster
In my experience, those USB web cameras show up as one device when using VFW cap* API. The user has to manually select in the properties of that device which camera should be used. There is no way to do it programmatically.
Posted on 2004-07-05 10:47:57 by comrade
to some extend, you can.

you can supply a format to the func that sets it by passing a bitmapinfo struct. you ve no guarantee the device supprts it, but 640.480.rgb24 or 320.240 is likely to be accepted.

you can set the preview capture rate with another func

then you define a callback func that gets called each new frame (you ve got to set preview on, but you arent forced to display the preview window) (note: i think the preview wind must be a child or it wont work good). the callback func passes you a pointer to the data in the format you asked, if its been accepted.

thats what i recall... hope it helps.
Posted on 2004-07-05 14:50:30 by HeLLoWorld