This is a recompile of my web camera example program using the “video for windows” library, and build in capturing to avi file.
If you need an encoder, try using “Windows Media Video 9 VCM”
This is using VFW and the function capGetDriverDescription() only retrieves driver information like “Microsoft WDM Image Capture (Win32)”. This function did work fine for years back, but today all cameras is WDM cameras, and this means only one driver reply.
For support of more than one camera, then a directshow implementation must be made instead.
Download Camera 2.1
(575.53 KB Downloaded 2601 times)
This little example is a small class to demonstrate the win32 calls for accessing your web camera