How to read data from a video capture card in C#?

A

Arash

Dear all,

I've got a video capture device. Device manager shows "nVidia WDM Video
Capture (universal)" driver in "Sound, video and game controllers"
category. Also, Windows Movie Maker, and other standard video capture
tools can record video from the device.

But, I've got no idea how to read transmitted data in a C# application.
All I'm gonna do is to show the real-time movie on an appropriate
control on my form.

Any sort of help would be highly appreciated ;)
Best regards,
Arash
 
G

Guest

There is no direct way in C# or .NET to do so, however with some external
libraries you can. One well known and powerful method is DirectShow.NET
(http://www.codeproject.com/cs/media/directshownet.asp) which is a wrapper
around many DirectShow and unmanaged calls to DirectX.

Another easy method, is DirectX.Capture
(http://www.codeproject.com/cs/media/directxcapture.asp) which is a library
that wrapps itself around the previously mentioned DirectShow.NET and makes
capture very very easy.

Still another option, would be breaking out some Managed DirectX (found with
the DirectX 9 SDK) and manually hitting DirectShow on your own to do the
recording.

I should mention, by using DirectShow (via any of the above mentioned
mechanisms or any other for that matter) for your capturing, you save
yourself a lot of time and hassle in writing your own low level system to
communicate with the driver or video buffer.

Brendan
 
A

Arash

Dear Brendan,

You can not imagine how helpful you have been :)
I've not yet studied the source code but the demo project is the right
thing that I needed.

Best regards,
Arash
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top