Try something like this:
Code:
#LoadPlugin("C:\...DGDecode.dll")
#mpeg2source("F:\....d2v")
#As is no doubt obvious I'm not sure of the syntax for this. It needs a vid and more
VideoFile = "D:\TESTVOBS\PAL_I_Top_169_P-JurassicPark.d2v"
Mpeg2Source(VideoFile)
ConvertToYUY2() # Cant crop YV12 on odd vertical boundaries
BilinearResize(1920,1080) # I dont have HD clip handy
ORG=Last
DUMMY=PointResize(1280,720) # ScriptClip MUST return same dimensions clip
DUMMY.ScriptClip("""
x = current_frame # variable
#a = 2.9017E-08 # constants
a = 0.000000029017 # Avisynth Syntax - Script Variables: "Note that exponent-style notation is not supported."
#b = 2.41882E-03
b = 0.00241882
c = -2.47594795 # ERROR, Causes -ve crop at eg current_frame==0
#pdown = a*x^2+b*x+c # number of pixels to crop from the top of the 1080 frame
pdown = a*(x*x)+b*x+c # Pow(x,2) Slower
pd=Round(pdown) # whole number of pixels to crop from the top of the 1080 frame
pd=(pd<0) ? 0 : pd # Limit to +ve values ONLY (crop would fail, due to -ve c)
# pup = 360-pd # whole number of pixels to crop from the bottom of the 1080 frame. USE 720 for Height
# RT_Debug(String(x),String(pd))
Return ORG.Crop(320, pd, -320, 720) # return cropped original, NOT DUMMY
""")
ConvertToYV12() # EDIT: Back to original CS
EDIT: Darn that Gavino fella, he's just too quick.
PS, Welcome to the forum, MrJ.
EDIT: In Gavino script, you need to edit both instances of 'pd' to 'pdown'.