Previously, I said:
Quote:
Originally Posted by Gavino
Because of restrictions on Crop() positions for different video types, it may be preferable instead to use the cropping facility of a resizer, which supports subpixel cropping positions.
|
It will also give a smoother continuous pan than jumping by discrete pixels via Crop().
Thanks to StainlessS, I have noticed a few errors in my script above. It should be:
Code:
LoadPlugin("C:\...DGDecode.dll")
mpeg2source("F:\....d2v")
orig = last
ScriptClip(PointResize(1280,720), """
x = current_frame #variable
a = 0.0000000029017 #constants
b = 0.00241882
c = -2.47594795
pdown = a*x*x+b*x+c #number of pixels to crop from the top of the 1080 frame
# no need to round, and can be negative
orig.Spline36Resize(1280, 720, 320, pdown, -320, 720)
""")