View Single Post
Old 27th June 2017, 07:43   #7  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by poisondeathray View Post
It would be more elegant to use variables, so you can tweak the speedup/slowdown more easily, but the "m" isn't calculated, not sure why here
Code:
#Assuming a 23.976fps A/V source...
p=90 #in percent
m=(100/p)
100/90 in integer division gives 1
Try this ...
Code:
m = 100.0/p
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote