Discussion:
Changing Filtergraph from within
(too old to reply)
Ralf Ziller
2010-03-08 15:32:02 UTC
Permalink
I have a filter (Source Filter) inside a filtergraph not controlled by me.
The application will add a MPEG 2 Demultiplexer to the filtergraph some time
after my filter but will not add a MPEG Sections and Tables Filter.
I need some info parsed from the MPEG 2 stream and would like to change the
filtergraph to add the parser filter.
How can I do this or what would be the best way to do this?
I thought of getting EC_STATE_CHANGE events until the Demultiplexer is added
to the filtergraph and then change the filtergraph. But EC_STATE_CHANGE is
marked as being for debug purposes. So would this be a viable way or is there
a more official way? Or s my need too exotic?
Alessandro Angeli
2010-03-09 22:52:02 UTC
Permalink
From: "Ralf Ziller"
Post by Ralf Ziller
I have a filter (Source Filter) inside a filtergraph not
controlled by me. The application will add a MPEG 2
Demultiplexer to the filtergraph some time after my
filter but will not add a MPEG Sections and Tables
Filter.
I need some info parsed from the MPEG 2 stream and would
like to change the filtergraph to add the parser filter.
How can I do this or what would be the best way to do
this?
I thought of getting EC_STATE_CHANGE events until the
Demultiplexer is added to the filtergraph and then change
the filtergraph. But EC_STATE_CHANGE is marked as being
for debug purposes. So would this be a viable way or is
there a more official way? Or s my need too exotic?
Do you need the "MPEG-2 Sections and Tables Filter" to be
connected to one of your source's output pins? If that's the
case, simply implement IStreamBuilder on your output pin.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Loading...