Webcam Capture

K

Kevin

Hi!
Which is the best way to webcam video capture with C# 2.0 and vs 2005?
DirectX? VFW Windows Api ?

Thanks
 
M

Michael Nemtsev [MVP]

K

Kevin

Hi Michael, thanks for your reply.
My question was Wich is the best method, not how to do... ;)
 
P

Peter Duniho

Hi Michael, thanks for your reply.
My question was Wich is the best method, not how to do... ;)

Your question was not at all that clear. Also, it's a little awkward to
ask what's the best way to do something in a certain technology (C# 2.0,
which is just the compiler but I assume you mean to imply .NET 2.0 also),
and then offer as the two options for "best" a couple of technologies that
have nothing to do with the certain technology.

All that said, I'm not aware of any built-in support in .NET for video
capture. The current Windows API is DirectShow which, oddly enough, is
not in DirectX anymore. It's in the Platform SDK and replaces
ActiveMovie/VFW.

Do a Google search for ".net directshow" and you'll come across an open
source project meant to make interop with DirectShow in a .NET program
much easier. I haven't used it myself, but it's been around few a few
years now and I'd guess it would help a lot.

Pete
 
M

Michael C

Kevin said:
Hi!
Which is the best way to webcam video capture with C# 2.0 and vs 2005?
DirectX? VFW Windows Api ?

DirectX, specifically DirectShow, is the way to go. I'm not sure if there's
a managed interface available but you can get third party solutions or
sample on the internet. It's not that simple.

Alternatively VFW is a LOT simpler but doesn't have as much support or
functionality.
 
M

Michael A. Covington

Michael C said:
DirectX, specifically DirectShow, is the way to go. I'm not sure if
there's a managed interface available but you can get third party
solutions or sample on the internet. It's not that simple.

Agreed. Look for DirectShowNet, on SourceForge.
 

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