Re: writing part of a stream to a file



On 4 Mar 2007 12:43:27 -0800, "mike" <michabir@xxxxxxxxx> wrote:

if you only need it to work with AVI movies
it will probably be easier to do it using the AVIFile API.
Unless you need to work with AVI files that API doesn't support :)

In that case I actually think it would be easier to write your own AVI
parser and writer. :) Looking back at the headaches I had trying to do
it in DirectShow, I don't think I'd do it that way again.

the graph is supposed to support mpg and avi.

In that case it's harder to do it from scratch. :(

writing my own parser and writer seems like a big headach(mainly
because i never tried it before).
how does GMFBridge helps me to accomplish what i need?

i was thinking of writing 2 transfer filters that drops the frames and
audio samples i dont need (returns E_FAIL) do you think this approach
will work?

Yes, and it is actually probably easier to implement than the split
graph approach. However, Michel is probably right that DES is a better
choice. I've never used DES myself, so I can't really say for sure how
easy it would be to do it in DES.

--
Be seeing you.
.