tags:

views:

36

answers:

1

Hi,

I want to write only a specific portion of a .avi file in the output .avi file .For this I follow Source Filter ->Avi mux->File Writer.I try to use IMediaSeeking on the Mux to set the specific start and stop times using Set Positions but it returns E_NOTIMPL. I also try to query the graph builder for IMediaSeeking and try to set the start and stop positions with no success.Can someone help?

+1  A: 

Query for IMediaSeeking on each of the output pins connected to the mux inputs, and set the positions on those.

Geraint Davies
Well I try to do exactly as you say Source(Async Reader)->AVI Splitter->AVI Mux->File Writer. But when I try to find the second output pin("Stream 01") it returns an error.If I implement graph without connecting this pin IMediaSeeking on the Stream 00 runs S_OK but there is no clipping that takes place.
Manish