Capturing Video a Web Camera using WIA - Not Possible?
My Coding4Fun article using a $4 webcam would capture single frames using WIA, the WIA Automation Layer and upload them to a blog.
However, I get 3 emails a week asking how to capture video using WIA. I don't think it's possible. WIA supports "TakePicture" but that operation isn't fast enough to get more than a few frames a second, and then even only in JPEG format.
- This CodeProject article says how to get video to display on your form.
- This MSDN article on WIA says that WIA supports viewing, but not saving video.
- Joe Stagner includes many links, but none on video:
WIA does support Video Overlay though so you can see what you're not capturing, so that's nice. ;)
Seriously, though, WIA isn't the way, it appears that DirectShow likely is. This .NET Library wrapper around the notoriously difficult DirectShow APIs says it supports "capture from video capture devices to WMV files." It appears that this library also exposes that notorious hardness, so take a breath before you dive in. It's hardcore.
Other possibilities are the CAPTURENET Sample that might do the trick. Also Kristoffer Vinther (a master sorter at least) has a library that looks pretty capable.
Aside: Yes, that's a signed 12" Vinyl of Bobby McFerrin's Simple Pleasures album, framed on my wall just below Miles Davis. I used to look for good echos for acappella on campus, but I am nothing compared to my buddy from Vertigo Software (and high school) Matt Hempey and the several acappella albums he has under his belt.