Log in

View Full Version : title coordinates?


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)

Wilbert
25th January 2006, 23:30
i did a simple crawl text title effect and it renders differently on two different machines,
Dunno about this one.

q: was the root coordinate point changed from top.left to bottom.left somewhere during the avisynth development?
Some things were fixed in v2.56. But (x=0,y=0) should be the upper left corner. If I try your script, it starts in the upper right corner, as it should. Perhaps i'm missing something?

foxyshadis
26th January 2006, 00:30
Reinstall avisynth on both machines, that'll ensure you have the most recent official release and probably cure the differences.

smok3
26th January 2006, 09:25
yep, i kinda thought i have the same versions on both machines, anyway updating to 2.56 did cure the difference, root is top.left on both now.