473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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

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
2 15424
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not...
3
by: Juan Crespo | last post by:
Dear Sirs: My name is Juan Crespo and I write you from Spain, I work as application developer in Industrial Automation in Spain. We have as customer a company that wants to reuse old computers...
1
by: Omar Hamido | last post by:
How i can do video capture with c#...more especific, i have a video capture card pci and my question is: if possible to do that... regards... Omar
4
by: ABC | last post by:
I. I have a video capture project, like AmCap, written in VB.NET. It is a windows applications. Is it possible to put it into a web page? II. Is the conversion in I complicated? Involve ActiveX...
2
by: John | last post by:
Hi, Could anyone point me in the right direction for using video capture? I'd like to write a basic VB.NET app that shows the output from a composite camera and has a simple record now button. ...
0
by: tHw | last post by:
Hello. I would like to preview video, capture still images and record video simultaneously with my AGP capture card. I have to do it in dotNET. Is there a dedicated solution to do that in dotNET?...
0
by: peridian | last post by:
Hi, I want to get a video capture card for my PC, which runs both WinXP Pro SP3 and Vista Business SP1. Nearly all the video capture cards I see state they only run on Windows Media Centre...
1
by: David Hood | last post by:
Hello, I made a program to capture photos from 3 web cams (with video capture). With one or two cams, the program works perfectly. With 3 cams, my program doesn't work. The third window...
0
by: KovarishxD | last post by:
Hi there, I'm using directshow to capture video from eight channels of a capture card. I'm using eight threads, and instantiating a full package of filters for each. My problem is that I'm using...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.