Created
July 10, 2013 23:11
-
-
Save surskitt/5971060 to your computer and use it in GitHub Desktop.
avisynth: Change the speed of a clip by a given rate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
# 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