dominik
12th May 2003, 16:34
What is wrong with this script??
avisource("d:\stuff\file.avi")
sizey = (framerate==25) ? 576 : 480
faktorxy = (framerate==25) ? 1.422222 : 1.185185
faktorx = 720/width
newheight = round(height*faktorx*faktorxy)
bicubicresize(720,newheight)
halftooless = (sizey-newheight)/2
top = floor(halftooless)
bottom = ceil(halftooless)
addborders(0,top,0,bottom)
The problem is that the variable "faktorx" gets ignored. Doesn't matter if i set it to 720/width, 1000/width,... always it bahaves at "newheight=..." like it would be "faktorx = 1". But if I set for example "faktorx = 1.3" it does behave like you would expect it. Please Please help me!
avisource("d:\stuff\file.avi")
sizey = (framerate==25) ? 576 : 480
faktorxy = (framerate==25) ? 1.422222 : 1.185185
faktorx = 720/width
newheight = round(height*faktorx*faktorxy)
bicubicresize(720,newheight)
halftooless = (sizey-newheight)/2
top = floor(halftooless)
bottom = ceil(halftooless)
addborders(0,top,0,bottom)
The problem is that the variable "faktorx" gets ignored. Doesn't matter if i set it to 720/width, 1000/width,... always it bahaves at "newheight=..." like it would be "faktorx = 1". But if I set for example "faktorx = 1.3" it does behave like you would expect it. Please Please help me!