what is the timescale of a player?
BNig
niggemann at uni-wh.de
Mon Jun 9 07:33:16 EDT 2008
Hi Timo,
the timescale divided by the frames per second gives you the duration of a
frame
a timescale of 600 in a movie with 25 frames per second makes for a duration
of 24 of a single frame (600/25), of course this assumes that all frames are
of equal duration, which is not necessarily so. Especially when you edit a
movie the first and last frames might be shorter. And you can set the
duration of a frame to whatever you like (via applescript) so the frames per
second is an average for all the frames in a movie.
to step from one frame to the next you could do:
on mouseUp
put the currenttime of player "xyz" into tcurrentTime
add 24 to tcurrentTime
set the currenttime of player "xyz" to tcurrentTime
end mouseUp
Tiemo Hollmann TB wrote:
>
> Hello,
>
> The documentation of 2.9 says to the timescale property of a player:
> "intervals per second of a movie or sound". My first thought was, it would
> be the fps (frames per second), but if I get the timescale of my videos, I
> get "600". Can anybody give me a hint, what this number represents and if
> it
> depends on the movie or if it is always 600?
>
> Am I right, if I want to step frame by frame through a video clip I have
> to
> divide the duration/current time by 600 and multiply it by 25fps? To get
> the
> current frame? Or can I set the timescale somehow to fps?
>
>
> Thanks for any hints
>
> Tiemo
>
>
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
--
View this message in context: http://www.nabble.com/what-is-the-timescale-of-a-player--tp17728811p17730990.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list