By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,399 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
"Arash" wrote:
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

Nov 17 '05 #2

P: n/a
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.