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