lpn1160
7th October 2005, 01:05
Please move this post if I put it in the wrong place.
I have made countless avisynth templates for use with vdubmod.
All work well never had a problem b4. Some samples:
#ASYNTHER 352x480 fast
setmemorymax(256)
[AVISource("%f")]#.converttoyv12()
uncomb().decimate(5)
letterbox(8,8,8,8)
#STMedianFilter(8,15,4,7)
#ColorYUV(off_y=5,gain_y=5)
#lanczos4resize(352,480)
fluxsmootht()
undot()
_______________________________________________________________
and :
#ASYNTHER "IT" "BOTTOM'(AVISource)
[AVISource("%f")]
IT(fps = 24, ref = "bottom", blend = false)
#autocrop()
#STMedianFilter(8,15,4,7)
#undot()
#lanczos4resize(656,448)
#addborders(24,16,24,16)
#converttomono()
All work perfectly. The problem is, I wrote out a new template with a script I found and tweaked to my needs. It works fine if I paste it into a script open in vdubmod, but to open directly, for ex in vdubmod open in script the body of the script is just not there, Example heres my template:
#ASYNTHER get aspect
setmemorymax(256)
movie=[AVISource("%f")]
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 4.0/3.0
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 512
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=3,wmultof=4,hmultof=4,samples=10,aspect=4.0/3.0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
_______________________________________________________________
But when I want to open it in vdubmod, this is what I get::
#ASYNTHER get aspect
setmemorymax(256)
movie=AVISource("D:\captures\sara evans.avi")
_________________________________________________
The body of the script is missing!!
Any help in what I've done wrong is greatly appreciated!!!
Thanks in advance
I have made countless avisynth templates for use with vdubmod.
All work well never had a problem b4. Some samples:
#ASYNTHER 352x480 fast
setmemorymax(256)
[AVISource("%f")]#.converttoyv12()
uncomb().decimate(5)
letterbox(8,8,8,8)
#STMedianFilter(8,15,4,7)
#ColorYUV(off_y=5,gain_y=5)
#lanczos4resize(352,480)
fluxsmootht()
undot()
_______________________________________________________________
and :
#ASYNTHER "IT" "BOTTOM'(AVISource)
[AVISource("%f")]
IT(fps = 24, ref = "bottom", blend = false)
#autocrop()
#STMedianFilter(8,15,4,7)
#undot()
#lanczos4resize(656,448)
#addborders(24,16,24,16)
#converttomono()
All work perfectly. The problem is, I wrote out a new template with a script I found and tweaked to my needs. It works fine if I paste it into a script open in vdubmod, but to open directly, for ex in vdubmod open in script the body of the script is just not there, Example heres my template:
#ASYNTHER get aspect
setmemorymax(256)
movie=[AVISource("%f")]
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 4.0/3.0
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 512
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=3,wmultof=4,hmultof=4,samples=10,aspect=4.0/3.0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
_______________________________________________________________
But when I want to open it in vdubmod, this is what I get::
#ASYNTHER get aspect
setmemorymax(256)
movie=AVISource("D:\captures\sara evans.avi")
_________________________________________________
The body of the script is missing!!
Any help in what I've done wrong is greatly appreciated!!!
Thanks in advance