DirectShow.NET opening any file that Windows Media Player can open

Posted by vucetica on Stack Overflow See other posts from Stack Overflow or by vucetica
Published on 2010-05-14T10:25:18Z Indexed on 2010/05/21 6:10 UTC
Read the original article Hit count: 352

Filed under:
|

Here is a code snippet from DirectShowNet library, used to open a video file:

this.graphBuilder = (IGraphBuilder) new FilterGraph();
// Have the graph builder construct its the appropriate graph automatically
hr = this.graphBuilder.RenderFile(filename, null);

but the RenderFile method fails. At the same time, Windows Media Player opens the same file nicely. What can be the problem.

I got the same behavior without DirectShowNet, but using native C++ code...

© Stack Overflow or respective owner

Related posts about directshow

Related posts about directshow.net