I did check that out.Actually I am using the following graph

Source Filter->AVI mux->File Writer

and perhaps because of the AVI mux the setpositions method of IMediaSeeking returns a E_NOTIMPL.I am confused now how to implement this.