necesary math to translate sfplay time into quicktime time


    autogusto's icon
    autogusto's icon
    Sep 28 2008 | 7:29 pm
    hello sorry i couldn

    • Zachary Seldess's icon
      Zachary Seldess's icon
      Zachary Seldess
      Sep 29 2008 | 2:13 am
      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.
    • Rob Ramirez's icon
      Rob Ramirez's icon
      Rob Ramirez
      Sep 29 2008 | 5:57 am
      here's relevant parts from a patch that syncs to groove~ object. the update interval of the number~ object sets your framerate.
      Max Patcher
      In Max, select New From Clipboard.
      Show Text
    • autogusto's icon
      autogusto's icon
      Sep 30 2008 | 4:21 am
      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
    • FP's icon
      FP's icon
      Sep 30 2008 | 8:00 am
    • Rob Ramirez's icon
      Rob Ramirez's icon
      Rob Ramirez
      Sep 30 2008 | 3:59 pm
      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.
    • PKM's icon
      PKM's icon
      Oct 01 2008 | 7:54 am
      dekam has posted a nice patch in this thread:
      hope that helps, parag