Re: How to add a filter?



On 2 May 2006 04:23:21 -0700, emetress wrote:

Now I
would want to know how can I add the new filter and connect it between
the smart tee and the renderer. I think first I shoul add the filter
(HOW????) and then connect it (HOW???).

You can:

- build the graph manually, adding the filters to the filter graph and then
connecting them together (see Connect Two Filters in the SDK docs)

or

- build the graph automatically then find the smart tee and renderer (see
IFilterGraph::FindFilterByName and "Find a Filter's Peer" in the SDK docs)
and manually disconnect it from the renderer, then insert your filter in
the graph, connect the output of the smart tee to your filter, and then
your filter to the renderer (Connect Two Filters)




--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.



Relevant Pages

  • Re: CTransformFilter with its own GUI
    ... Then tear the graph down and rebuild ... If you discard the timestamps on the samples going to the renderer then the ... > I'm trying to do something unusual with a transform filter and would like ... > Calibration mode will be initiated by the application calling a method (of ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: DVD Player sound renderer filter
    ... When I look at the graph with graphedt, the audio ... > renderer is "Dsound Renderer". ... > Device" and play the graph the audio works fine. ... If you add a filter to the graph before rendering a pin, ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: find time difference between audio renderer clock & system clock
    ... JoinFilterGraph method and successfully get a pointer to ... the default directsound renderer (or do I have to ... Remember that, even if unlikely, the graph may use ... other filter or an external source and the audio renderer ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: find time difference between audio renderer clock & system clock
    ... JoinFilterGraph method and successfully get a pointer to ... the default directsound renderer (or do I have to ... Remember that, even if unlikely, the graph may use ... other filter or an external source and the audio renderer ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Multiple DirectShow Window problems
    ... If the problem is that the renderer is dropping the ... >>> frames or telling the decompressor to drop frames then you may get away ... >>> filter and prevent them from reaching the decompressor (or handle them ... >>callback I tell it to Pause. ...
    (microsoft.public.win32.programmer.directx.video)

Loading