none
Sample Grabber replacement

    Question

  • According to the SDK documentation, the Sample Grabber Filter including related interfaces and APIs are deprecated and may be removed from future releases of Windows.

    What are recommended and supported technologies / APIs to achieve the same or similar functionality as the one offered by the Sample Grabber filter?

    Tuesday, December 14, 2010 1:25 PM

All replies

  • The SG is implemented in the DirectShow runtime, so it is still there even though its CLSID, IIDs and interfaces definitions have been removed from the SDK, so you can still use it by taking those definitions from an older SDK (or the web).

    As it is often the case with Microsoft, there is no replacement for what they deprecated. Old SDKs included the source code for an SG sample filter, otherwise you can just write your own, since after all the SG in nothing else than a CtransInPlaceFilter that invokes a callback in its Transform() method.


    MVP :: DirectShow / MediaFoundation <http://www.riseoftheants.com/mmx/faq.htm>
    Tuesday, December 14, 2010 7:57 PM
  • todort wrote:
    >
    >According to the SDK documentation, the Sample Grabber Filter including
    >related interfaces and APIs are deprecated and may be removed from
    >future releases of Windows.
     
    Yeah, that's a joke. In recent years, Microsoft seems to have a habit of
    saying "this is deprecated" when they really mean "the developers are bored
    with this".
     
    I hereby assert that DirectShow will never be removed from Windows.
    --
    Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.
     

    Tim Roberts, DDK MVP
    Wednesday, December 15, 2010 7:08 AM
  • I hereby assert that DirectShow will never be removed from Windows.
    The WST filters were removed from DirectShow in Vista, as well as a whole bunch of other (mostly obsolete) filters and codecs. The SG is in QEdit and not Quartz, so there is a possibility that sooner or later they might follow through. At least the SG is easy to replace, not like the others.

    MVP :: DirectShow / MediaFoundation <http://www.riseoftheants.com/mmx/faq.htm>
    Wednesday, December 15, 2010 6:22 PM
  • Another thing that disappeared is the IBasicAudio interface...
    Michel Roujansky, http://www.roujansky.com
    Wednesday, December 15, 2010 10:22 PM
  • Another thing that disappeared is the IBasicAudio interface...
    That's implemented by the stock audio renderers and by the graph manager itself, it's not even deprecated. What do you mean it disappeared?

    MVP :: DirectShow / MediaFoundation <http://www.riseoftheants.com/mmx/faq.htm>
    Thursday, December 16, 2010 8:45 PM