Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How reliable is GetMovieTime()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How reliable is GetMovieTime()



On Saturday, February 16, 2002, at 12:57 PM, Bob Sabiston wrote:
In my application, I am trying to set some markers as a quicktime movie
plays. I start the movie with StartMovie and then use GetMovieTime as it
plays to find out how far along it is. This is not working too well,
though; the times that I get do not correspond well with where the movie
really is when I request the time. Is there a more accurate way to
determine exactly where the quicktime movie is at any given moment?

It seems to be a drifting problem. The times start out pretty accurate, but
after a couple of minutes they are off by about a second. There should be
some way to tell exactly what frame or time value is playing exactly right
now--is there?

How are you deciding that they are off? That timevalue should correspond to the time QT is using to play the movie back.

QT usually will derive this timing from the samplerate of sound playback, so if you are using the computer's clock as an external reference to compare with, you may be seeing the drift of your sound card against its notional samplerate.

Another possibility is that if the movie is overtaxing the CPU, the displayed frame may be slightly behind the current time, with QT in catch-up mode trying to restore sync. In this case you will likely see some dropped frames.
_______________________________________________
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 reliable is GetMovieTime() (From: "Bob Sabiston" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.