On Fri, 11 Feb 2000, Richard Gaskin wrote:
> on 2/11/00 5:03 PM, Scott Raney at [EMAIL PROTECTED] wrote:
>
> >> Since we cannot gurantee a fixed frame rate as you point out, what mechanism
> >> exists for setting the starttime, endtime, or currenttime properties to a
> >> specific time?
> >
> > I'm not sure what you're asking for. You can set the times to
> > whatever values you want, and can allow the user to create a
> > selection based on what they *see*. Not sure how "frames" even enters
> > into the equation.
>
> MC 2.3 does not appear to accept standard QT time values:
More importantly, there doesn't seem to *be* any standard for this.
The native QuickTime API uses a single number (just as the MetaCard
player object does). The QuickTime MoviePlayer format is
"00:00:00.00", which seems to be hours:minutes:seconds.something. Not
sure what the ".something" part is, but it's not frames because it
jumps by 2s or 3s as you single step through the movie (which is not
what you'd expect if it were really frames) and it only goes up to 30,
so it's not hundredths of a second. Importing an animated GIF file
with uneven frame rate gets you something totally baffling. Anyone
know what its doing?
> set the starttime of player 1 to "00:00:01:23"
This looks like yet another "standard", that used by SuperCard, where
the last item is "frames". Another problem with the idea of using
"frames" is that this don't make sense when you're talking about audio
files.
> ... generates a script error: expected integer.
>
> But these integer values are for the timeScale, which has no direct
> correlation to the frame rate. For example, I have some animation files
> here with a timeScale of 600, a frame rate of 4, and a duration of
> "00:00:01:00".
>
> So, given only a time code and a timeScale value, how does one accurately
> set the startTime, endTime, and currentTime properties to a particular time?
>
> Hope I didn't miss something too obvious (was up kinda late, needing a
> nap)...
How about:
put "00:00:01:02" into sctime
put 4 into scframerate
set the itemDelimiter to ":"
put item 1 of sctime * 3600 + item 2 of sctime * 60 + item 3 of sctime \
+ item 4 of sctime / scframerate into scseconds
set the currentTime of player 1 to the timeScale of player 1 * scseconds
> --
> Richard Gaskin
> Fourth World
> Multimedia Design and Development for Mac, Windows, UNIX, and the Web
> _____________________________________________________________________
> [EMAIL PROTECTED] http://www.FourthWorld.com
> Tel: 323-225-3717 ICQ#60248349 Fax: 323-225-0716
>
>
> This is the MetaCard mailing list.
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm