smok3
25th January 2006, 22:57
i did a simple crawl text title effect and it renders differently on two different machines,
q: was the root coordinate point changed from top.left to bottom.left somewhere during the avisynth development?
script looks something like (iam also making new black borders):
file = directshowSource("film.avi")
title1="title1"
title2="title2"
title3="title3"
title4="title4"
fontsize=30
xpos=768
ypos=5
#Crop(clip clip, int left, int top, int -right, int -bottom, bool align)
file= Crop(file, 0, 70, 0, -80)
#AddBorders(clip clip, int left, int top, int right, int bottom [, int color]
file= AddBorders(file, 0, 70, 0, 0)
file = converttoyv12(file)
#-------------------------------------------------------------------
black1 = BlankClip(length=1, width=720, height=80, fps=25, color=$000000)
black2 = BlankClip(length=2250, width=720, height=80, fps=25, color=$000000)
sub1=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub1=Subtitle(sub1,title1, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub1 = Animate(0,1500,"Crop", sub1,0,0,768,80, sub1,3000,0,768,80)
sub1 = sub1.lanczosresize(720,80)
sub2=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub2=Subtitle(sub2,title2, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub2 = Animate(0,1500,"Crop", sub2,0,0,768,80, sub2,3000,0,768,80)
sub2 = sub2.lanczosresize(720,80)
sub3=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub3=Subtitle(sub3,title3, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub3 = Animate(0,1500,"Crop", sub3,0,0,768,80, sub3,3000,0,768,80)
sub3 = sub3.lanczosresize(720,80)
sub4=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub4=Subtitle(sub4,title4, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub4 = Animate(0,1500,"Crop", sub4,0,0,768,80, sub4,3000,0,768,80)
sub4 = sub4.lanczosresize(720,80)
subfinal = killaudio(dissolve(black1, sub1, black2, sub2, black2, sub3, black2, sub4, black1, 0))
subfinal = converttoyv12(subfinal)
stackvertical(file, subfinal)
q: was the root coordinate point changed from top.left to bottom.left somewhere during the avisynth development?
script looks something like (iam also making new black borders):
file = directshowSource("film.avi")
title1="title1"
title2="title2"
title3="title3"
title4="title4"
fontsize=30
xpos=768
ypos=5
#Crop(clip clip, int left, int top, int -right, int -bottom, bool align)
file= Crop(file, 0, 70, 0, -80)
#AddBorders(clip clip, int left, int top, int right, int bottom [, int color]
file= AddBorders(file, 0, 70, 0, 0)
file = converttoyv12(file)
#-------------------------------------------------------------------
black1 = BlankClip(length=1, width=720, height=80, fps=25, color=$000000)
black2 = BlankClip(length=2250, width=720, height=80, fps=25, color=$000000)
sub1=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub1=Subtitle(sub1,title1, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub1 = Animate(0,1500,"Crop", sub1,0,0,768,80, sub1,3000,0,768,80)
sub1 = sub1.lanczosresize(720,80)
sub2=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub2=Subtitle(sub2,title2, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub2 = Animate(0,1500,"Crop", sub2,0,0,768,80, sub2,3000,0,768,80)
sub2 = sub2.lanczosresize(720,80)
sub3=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub3=Subtitle(sub3,title3, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub3 = Animate(0,1500,"Crop", sub3,0,0,768,80, sub3,3000,0,768,80)
sub3 = sub3.lanczosresize(720,80)
sub4=BlankClip(length=1500, width=6000, height=80, fps=25, color=$000000)
sub4=Subtitle(sub4,title4, x=xpos, y=ypos, first_frame=0, last_frame=1500, font="arial", size=fontsize, text_color=$e6e6e6)
sub4 = Animate(0,1500,"Crop", sub4,0,0,768,80, sub4,3000,0,768,80)
sub4 = sub4.lanczosresize(720,80)
subfinal = killaudio(dissolve(black1, sub1, black2, sub2, black2, sub3, black2, sub4, black1, 0))
subfinal = converttoyv12(subfinal)
stackvertical(file, subfinal)