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.