Unfortunately I have to set the subtype to GUID_NULL as it will not connect into every graph automatically othewise. I am registering the filter graph with graphedit so that I can view it to make sure that it has all connected correctly.
Unfortunately when connected like this it does not appear in the correct place, instead it ends up coming before the decoder so I end up with gibberish being put through the sample grabber.
Basically what I am trying to achieve is the *simplest* way to connect a Sample Grabber to *any* filter graph.
One method I thought of was to render the graph then add the sample grabber after by placing it before the video renderer. Which to me; makes perfect sense. Unfortunately, firstly I could not disconnect the the pin between the last 2 filters even though I was informed that the disconnection was a success. And secondly I would then need some way of converting any input YUV, YUV2 etc to RGB24 (my desired bitmap format).
If anyone has some advice on this It would be greatly appreciated!
start again from scratch How To Get Data from a Microsoft DirectShow Filter Graph This document contains the following topics: The DirectShow Basics You Need to Know Provides a quick summary of the DirectShow filter graph architecture. Writing a Sample Grabber Filter Describes how to write a custom sample grabber filter. Sample Application Code Presents example code that uses the filter in an application. Speeding Up the Connection Time Explains how to optimize the pin connection process. Forcing the Filter To Deliver to Your Buffer Describes how to write a custom allocator object for a sample grabber filter. Handling Format Changes Describes how to respond to dynamic format changes. Limitations of the DirectShow Sample Grabber Explains some of the limitations of the default sample grabber filter provided in DirectShow. http://msdn2.microsoft.com/en-us/library/ms867162.aspx google it cheers M
and sorry "google it", do you not think that I may have done that already? You might as well have told me to go and suck an egg. I'm going to close thiis now as unanswered as I have a different solution, and no, none of your "googled" links were of any help, I am quite capable of doing that myself.