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...