Possible Duplicate:
Webcam capture and convert to avi
Is there any way of capturing video from webcam, encode and save the video as an avi file (as a movie) using c#?
Use AForge. Well tested, well documented, well maintained.
AForge.NET Framework is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence - image processing, neural networks, genetic algorithms, machine learning, robotics, etc.