You want to preview and capture video and audio from a webcam (or any other
WDM capture hardware)?
The managed code languages (C#/VB.Net) aren't the right tools if you want to
do that directly because of the lowlevel processing required.. It is
normally done using DirectShow which as I see it is Never Ever Ever going to
be fully available as a managed technology.
If you like C++ then get the free WMFormat SDK and DirectX SDK downloads
from MSDN, there are plenty of VC++ samples there. (The only managed
DirectShow sample, because it's the only thing you can do with Managed code,
is the sample for reading and modifying tags in Media9 audio/video and MP3
files).
If you want to tough it out from a non-.Net non-VC++ viewpoint, look to
www.shrinkwrapvb.com. This site has a number of samples showng how to do
video and audio capture with VBClassic and without any C++ support
libraries.
If you want to just get a good job done, then look to the many ActiveX
DirectShow/WMFormat wrapper components on the market and use them in .Net
via interop.
If it helps you at all... I worked for a media-oriented development company
and did extensive research on the various offerings about a year ago and
went with VidCapX from Fathsoft.com. My CEO thought I was picking it
because of its' low price, but the price wasn't the reason. I chose it
because it's lightweight but has a full load of features including capture
to avi or WMV with custom profiles, frame grabbing, framelevel control of
playback, edit/merge of recorded files, etc, etc) and all of them worked
flawlessly. I no longer work for that company ... but if it means anything
I bought my own copy of the control from Fathsoft because once you start
doing video apps, you start seeing a lot of great reasons to write more
video apps
.
Hope that helps.
Robert Smith
Kirkland, WA
www.smithvoice.com