Skip to content

Instantly share code, notes, and snippets.

@surskitt
Created July 10, 2013 23:11
Show Gist options
  • Save surskitt/5971060 to your computer and use it in GitHub Desktop.
Save surskitt/5971060 to your computer and use it in GitHub Desktop.
avisynth: Change the speed of a clip by a given rate
##################################################
# Function to change the speed of clip c by rate #
##################################################
function ChangeSpeed(clip c, float rate)
{
orig = c.framerate
newvid = AssumeFPS(c, orig * rate)
return ChangeFPS(newvid, c, linear=false)#.AudioDub(c.TimeStretch(tempo=100*rate))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment