Wednesday, August 01, 2007

Two input Filter client application ( Must display two input videos and output video)

I have to display the two input filter's input videos and output video...

1.I displayed two input filter's output video in a window and created the separate graph builder to display the input video...
So the input and output video is different so we need to synchronize them.
But at the time only one graph builder is running...(One after the another )

Solution :
It is not at all the best approach ...Because it is tough to synchronize input video with the Two input filter's output video.


1.we can use T filter ( So that we can make multiple renderer filters in a single graph...)

For Setting the video window,

normally we query the IVideoWindow interface from the the Graph builder...
This is a bad approach... if the graph have a single renderer filter it is ok...

if the graph have multiple renderer filters, then how is it possible to the multiple window handle to the graph ?...

Answer :
we can Query the IVideoWindow from the renderer filter so that it is possible to set the control handle to all the renderer filters in a graph...

2.we can use Sample grabber callback ( In this approach we have to read the data frm the callback and display it in a window...

No comments: