directshow in c#

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

There's a managed API for DirectX, which should allow you to get to
DirectShow. Google for managed DirectX, you should be able to find the
download on MS's site.

Andy
 
Andy said:
There's a managed API for DirectX, which should allow you to get to
DirectShow. Google for managed DirectX, you should be able to find the
download on MS's site.

That's not directshow though is it?

Michael
 
Dave said:
Hi,
can I use directshow in c#???
dose Microsoft still support direct show sdk or there is a new technology
today???

what is the best way to draw on playing video and how can I do that???

My info might be a little outdated as I'm still using 1.1 but you can use
directshow in c# using com interop. There are example on the web.

Michael
 
Hi,
can I use directshow in c#???
dose Microsoft still support direct show sdk or there is a new technology
today???

what is the best way to draw on playing video and how can I do that???

Thanks
 
Was I wrong in think DirectShow is a part of DirectX, just like
DirectInput is?
 
can I use directshow in c#???

It depends on what you want to do. Microsoft provides a very limited access
to DirectShow via their AudioVideoPlayback managed library. I've never used
it but i suppose that all it allows you to do is... play audio and video
files.

DirectShow being based on COM, creating and controling DirectShow graphs
from C# is possible but involves a whole lot of COM-interop work.
Fortunately, there is an open source project aimed at creating managed
wrappers for all the DirectShow COM interfaces:
<http://directshownet.sourceforge.net/index.html>

If you want to create DirectShow filters, then i'm afraid that you'll have
to do it in unmanaged C++. Microsoft recommends against the use of managed
code for filter development. Technically though, writing a DirectShow
filter in managed C++ or C# is possible, has been done and works. 2
examples:
<http://www.codeproject.com/cs/media/prototypingdsfilters.asp?df=100&forumid=245171&fr=26>
<http://www.a2ii.com/tech/directx/tutorialDS12.htm>

Here are some useful FAQs:
<http://tmhare.mvps.org/faqs.htm>
dose Microsoft still support direct show sdk or there is a new technology
today???

You will find the answer to this question in the first FAQ above
what is the best way to draw on playing video and how can I do that???

I guess that you'll need to write a Transform filter and draw on the video
frames as they pass along. I'm not a specialist though so there might be
better solutions.
 
Andy said:
Was I wrong in think DirectShow is a part of DirectX, just like
DirectInput is?

DirectShow is part of DirectX but afaik the managed DirectX did not include
DirectShow.

Michael
 

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

Back
Top