Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to reverse MPG movie



----- Original Message -----
From: "James Milne" <email@hidden>
To: "Phoebe Ni" <email@hidden>
Cc: <email@hidden>
Sent: Monday, March 22, 2004 6:25 PM
Subject: Re: how to change movie rate


>
> On 22 Mar, 2004, at 17:04, Phoebe Ni wrote:
>
> > Hi,
> >
> > I need write an application of quicktime on the Mac os X platform. Does
> > anyone have a sample code showing how to fastforward and reverse a
> > movie?
> > I use the movie toolbox functions to play the movie and use function
> > SetMovieRate to change the rate at which the movie is playing. The
> > movie can
> > be played and stopped normally but it seems that the SetMovieRate()
> > funtion
> > doesn't work at all. I could not get any error code either.
>
> You have to remember that SetMovieRate takes a Fixed point rate
> parameter.
>
> Here is an example of how to set the rate using a double:
>
> SetMovieRate( theMovie, X2Fix( 1.0 ) ); // play at 1x
> SetMovieRate( theMovie, X2Fix( 2.0 ) ); // play at 2x
> SetMovieRate( theMovie, X2Fix( 0.5 ) ); // play at 0.5x
>
> --
> James Milne
>

Thanks a lot for your help. The function works.

But when I use the function to play a MPG movie at reverse rate, the movie
is stopped after it has been reversed for serveral frames. I use the
function like the following:

SetMovieRate(theMovie, X2Fix(-2)).

However the same code works well for AVI movie.

Regards
Phoebe
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.


References: 
 >how to change movie rate (From: "Phoebe Ni" <email@hidden>)
 >Re: how to change movie rate (From: James Milne <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.