Re: Automatically inserting a filter by another filter!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



<mailto635@xxxxxxxxx> wrote in message
news:1121871346.822898.317860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
> Can a DirectShow filter-x add another filter-y into the filter graph
> automatically without the consent of the application? or
> is there any way to add filter-y to the graph automatically, whenever
> filter-x is inserted into the graph by an application?

Directshow does this by design, although not exactly in the way you're
describing. The filter graph manager will automatically add and connect
filters to the graph when you attempt to render a pin; this functionality is
called "intelligent connect" in DirectShow. By examining the media types
(the majortype and subtype, to be precise) advertised by the pins and the
merit of the filters that accept a given media type, DirectShow can actually
insert the needed filters into the graph to render a pin. At most, you can
even hand the filter graph manager a file name, tell it to render, and it'll
build the entire graph for you by inserting the required filters and
connecting them.

This process doesn't always work flawlessly, but it does work quite well.
Sometimes filters need to be manually added and connected, but typically
dshow can handle all of this with relative ease.

Is this a general question, or are you trying to accomplish something with
one filter adding another to the graph?

--
Where am I going?
And why am I in this handbasket?


.



Relevant Pages

  • Re: Double player
    ... DirectShow applications consists of 'graphs' of connected 'filters'. ... graph is a network of directed links between filters. ... required to extract the video frames. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Grabbing an Image from WMP
    ... A graph is a set of "filters". ... output pins. ... WMP uses DirectShow for playback, ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Parametric Equalizer
    ... > say wrapping the DMO into the filter chain for a DirectShow Graph. ... IGraphBuilder.RenderFile() to automagically build/manage the graph for you, ... initial graph, you would have to still enumerate the filters, find the audio ... building an audio application. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Help regarding writing a Source Filter
    ... "Will DirectShow ever be accessible through managed code? ... The performance issues are for filters, not for simple graph building ... managed language is that you need custom filters for so many things. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How to redirect non-wave sound to TAPI line
    ... to build a graph with existing filters. ... TERASENS GmbH ... the most natural thing to do this is to use DirectShow. ... intermediate filters are created automatically. ...
    (microsoft.public.win32.programmer.tapi)