Re: Looping AVI Playback via FilterGraph API
From: Thore Karlsen [MVP DX] (sid_at_6581.com)
Date: 12/30/04
- Next message: Thore Karlsen [MVP DX]: "Re: Render AVI to Bitmap - Is SampleGrabber Best Method?"
- Previous message: Mark Coniglio: "Render AVI to Bitmap - Is SampleGrabber Best Method?"
- In reply to: Mark Coniglio: "Looping AVI Playback via FilterGraph API"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Dec 2004 13:34:46 -0600
On Thu, 30 Dec 2004 19:07:23 GMT, Mark Coniglio
<anitspam-mark@troikaranch.org> wrote:
>Hi,
>
>I'm building a filter graph in Direct Show, and it's playing my AVI
>movie fine. Please note for my question below that I'm rendering the
>movie to a bitmap -- not to a window, i.e., I'm in windowless mode.
>
>I'd like to get the movie to loop automatically -- is there a call that
>will cause the movie to do this? I poked around in the IMediaSeeking
>interface expecting to find something there, but I didn't
>
>It would be great if this looping could offer the option to be
>palindromic (back and forth)
>
>If there's no easy call in the API for this, do I need to detect the end
>of the movie (via a callback?) and start it over again?
That's pretty much what you need to do, yes. The easiest way to do it is
to register for event notification with
IMediaEventEx::SetNotifyWindow(), and wait for the EC_COMPLETE event.
When you get that event you can play the file from the beginning.
Playing videos backwards is going to be tough, since there's very little
support for that in the standard DirectShow filters. Codecs that use
keyframes are also typically not well suited for backwards playing,
since they store differences between frames going forward in time.
-- New to newsgroups? Read: http://dev.6581.com/newsgroups.html
- Next message: Thore Karlsen [MVP DX]: "Re: Render AVI to Bitmap - Is SampleGrabber Best Method?"
- Previous message: Mark Coniglio: "Render AVI to Bitmap - Is SampleGrabber Best Method?"
- In reply to: Mark Coniglio: "Looping AVI Playback via FilterGraph API"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|