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 –


Code Samples: (DirectShow wrapper)


There is also an open source project to program a webcam across any operating system that may interest you -


Comments (4)

  1. david says:

    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?


  2. T. Siamginsuan says:

    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:

  3. Ephraim says:

    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

Skip to main content