necesary math to translate sfplay time into quicktime time

Sep 28, 2008 at 7:29pm

necesary math to translate sfplay time into quicktime time

hello
sorry i couldn

#40046
Sep 29, 2008 at 2:13am

Hi autogusto,

First get the timescale of the movie you’re working with (gettimescale message). Say your movie has a QT timescale of 600. That means that 600 QT time values == 1000 msecs. So 1200 QT time values would be 2 seconds, 1800 QT values would be 3 seconds, etc.

Zachary

#141373
Sep 29, 2008 at 5:57am

here’s relevant parts from a patch that syncs qt.movie to groove~ object. the update interval of the number~ object sets your framerate.

– Pasted Max Patch, click to expand. –
#141374
Sep 30, 2008 at 4:21am

thank you guys for the reply

i have seen this patches using groove although i’m stuck in the interval=framerate relation i can’t really see how it works
(someone?)
although i need to use sfplay because the files are too large to be loaded into ram, and since i’m stuck i haven’t come with a reliable way to control quicktime frames or time through sfplay

any help will be appreciated

Ariel

#141375
Sep 30, 2008 at 8:00am

#141376
Sep 30, 2008 at 3:59pm

sfplay~ has an optional position signal output.
enable that output and use that in place of the groove~ output.

sfplay’s is millisec position, so you have to divide by 1000.0 and multiply by the timescale (usually 600), to get get the proper quicktime “time” (not “frame”) attribute value based on millisecond time.

#141377
Oct 1, 2008 at 7:54am

hi-

dekam has posted a nice patch in this thread:

http://www.cycling74.com/forums/index.php?t=msg&goto=61294&rid=0&S=a62e53eb1bc03222c4c1a0aed6286458#msg_61294

hope that helps,
parag

#141378

You must be logged in to reply to this topic.