Click to See Complete Forum and Search --> : getting video from USB webcan in VC++


BilalMujeeb
November 15th, 2003, 02:33 PM
hi folks
i need to get video stream from USB webcan in VC++ 6.0 and need to get frames from that stream. Anyone knows about that perticular api or any other way plz help me.

loweyson
November 17th, 2003, 10:13 AM
Hi,

There are a number of ways of doing it these days, one of them is to use the older Video for Windows interface or the preferred way now is to use Direct Show.

For Direct Show you will need to install the DirectX developers kit which you can download from the Microsoft website, it comes with many sample for capturing frames, but to get you started you will need a Sample Grabber to extract frames from your capture device. I've used Direct Show capturing in several commercial projects now with great success.

The older VFW method is a little easier to get started with but may not support newer devices. Use MSDN and look at functions which begin capXXX e.g. capDriverConnect.

Good luck,

Liam.