Re: Looping AVI Playback via FilterGraph API

From: Thore Karlsen [MVP DX] (sid_at_6581.com)
Date: 12/30/04


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


Relevant Pages

  • Re: Super Drunkboy in the house! = !!
    ... the rolls) and will only be playing on PSO and in the 2.20 on stars at 11:00pm in case anyone decides to run with me... ... Will be doing the SpazzO thing on RGP on a whim for shits and giggles to document my total shitfacedness so I can laugh about it tomorrow or whenever I get around to reading the BS you dumbfucks have been posting lately! ... we've got a movie going too and it's hard for me to do 2 things at once ... the 'dinner theater' fucked up and forgot to bring out our food so we ended up hitting Friday's afterwards, and that cut into hotel sex time... ...
    (rec.gambling.poker)
  • Re: A Little Guitar Music
    ... This is not a Martin, its a Euphonon guitar, built by the Larsons in ... One of the good trio was playing a Martin, ... Just for the heck of it, I wanted to see if just that movie could be ...
    (rec.music.makers.guitar.acoustic)
  • Help - guitar arpeggio tips?
    ... I heard a cover of "Help" while watching a movie the other night, so I picked up my old Guild and started playing along. ... This is one way that I've been deciding what songs are in my "playing for my own enjoyment" repertoire the last couple of years. ... I did read somewhere that George complained that it was hard to play the notes in even, ...
    (rec.music.beatles)
  • Re: The Eighth Doctor Mystery
    ... "Doctor Who and The Time War" ... Could be a very exciting movie. ... PM back for a feature film would be commercial suicide whilst a highly ... almost certainly star whoever`s playing it on TV at the time. ...
    (rec.arts.drwho)
  • Saving a file
    ... I have a filter graph which actually Renders a file using VideoRenderer. ... In this preview is working file is also there but the size of the file ... I also tried a sample where one can save a file from the video Device. ... If I want to save only selected frames of a movie to ...
    (microsoft.public.win32.programmer.directx.video)