Welcome to MSDN Blogs Sign in | Join | Help

Capturing Video in Managed Code

Dan Fernandez, Senior Product Manager in the Devloper Group answered a question on our internal list servers this week that I wanted to share because it answers a quesion that I myself have asked recently.

Are there rtesources for capturing video in Managed Code.

The answer is YES !

If you’re running Windows XP, you can use a little-known XP feature called Windows Image Acquisition (WIA) that has a COM library you can program against. This makes capturing either a single frame of a picture or video stream from a USB web cam as easy as 1-2 lines of code.

 

MSDN Windows Image Acquisition docs –

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wiaaut/wia/wiax/overviews/startpagewiaaut.asp

 

Code Samples:

http://www.codeproject.com/dotnet/wiascriptingdotnet.asp

http://www.codeproject.com/csharp/webcamservice.asp (DirectShow wrapper)

http://www.codeproject.com/csharp/Motion_Detection.asp

http://www.codeproject.com/cs/media/directshownet.asp

 

There is also an open source project to program a webcam across any operating system that may interest you - http://libusb.sourceforge.net/

 

Published Wednesday, September 21, 2005 10:22 AM by JoeStagner

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Capturing Video in Managed Code

Friday, May 05, 2006 4:21 PM by david
hi, this is a bit of an old article, but links to or copies of it seem to come up a bit on google... I have the same question - "how do I capture VIDEO with WIA" but all of these resouces seem to focus on taking a single image snapshot.

Do you have any info on storing or transmitting a video stream?

Thanks

# Capturing Video a Web Camera using WIA - Not Possible?

Friday, June 30, 2006 1:20 AM by ComputerZen.com - Scott Hanselman

# re: Capturing Video in Managed Code

Thursday, November 23, 2006 12:04 AM by T. Siamginsuan

Hi, its me T. Siamginsuan Ngaihte, the topic and links help me alot. But I still wanted to know and learn how to Capture Video stream using DirectX SDK in Managed Code.

Cheers for anyone who can help me out.

Please contact me here: ngaihte.suan@rediffmail.com

# re: Capturing Video in Managed Code

Tuesday, December 18, 2007 1:19 AM by Ephraim

sir can u tell me how to caputure the desktop as a video

as we do screen caputure can we do screen caputur as a video

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker