DirectShow C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone send me a snipper code of how to build DS graph for "File Source
(Async.)" filter as intelligent graph builder?

Thank you
 
first of are using the interop library for direct show called directshowlib
?

http://directshownet.sourceforge.net/

I not a direct show expert but we have using direct show in .Net via
(directshowlib) to evaluate hardware recently and we used code similar to
this to create and use a graph builder. I am sure you should be able to find
an example of what you want done in C++ that you can translate into .net
using the directshowlib for .Net.

....
DirectShowLib.IGraphBuilder graphBuilder = (DirectShowLib.IGraphBuilder)new
DirectShowLib.FilterGraph();
DirectShowLib.IBaseFilter filter = (DirectShowLib.IBaseFilter)new
DirectShowLib.VideoMixingRenderer9();
hresult = graphBuilder.AddFilter(filter, "Video Mixing Renderer 9");
DirectShowLib.IVMRMonitorConfig9 vmrMonitorConfig = filter as
DirectShowLib.IVMRMonitorConfig9;
....
....

HTH

Ollie Riches
 

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