Hi, I wanted to use the avisynth script below to overlay a png logo onto a video. It works fine, at least megui does not show any error. My question is, how do I find the coefficient for X and Y? I want the logo to be placed in the upper right corner, how do I do it?
a1=DirectShowSource("VIDEO SOURCE")
a2=ImageReader("Logo.png",pixel_type="RGB32")
Overlay(a1,a2,mask=a2.ShowAlpha(), x=xxx, y=yyy)
Forgive me if I did something wrong, I'm very new to the forum.
+ Reply to Thread
Results 1 to 7 of 7
-
-
upper left corner would be 0,0
the position represents x,y coordinates
for example , if you wanted to shift it over 10 pixels to the right, it would be 10,0
the upper right corner coordinates would depend on how the dimensions of the logo and video
you can just experiment in avspmod, push f5 to preview, change the value, and move it until you find the proper coordinate -
Thanks for the answer. I tried X=0 and Y=0, but it places the logo in the upper left corner, how do I shift it in the upper right corner?
-
Maybe you misread the entire answer . x=0, y=0 is supposed to be the upper left corner
(width of video) - (width of logo) is the value of x for the upper right corner
Similar Threads
-
Why Am I Getting This Overlay In DVDFab?
By crevice9 in forum Video ConversionReplies: 16Last Post: 10th Feb 2012, 00:02 -
video overlay
By Richpress in forum Capturing and VCRReplies: 0Last Post: 24th Sep 2011, 17:05 -
Capture twice and overlay
By sphinx99 in forum RestorationReplies: 11Last Post: 15th Mar 2010, 05:02 -
Help with Avisynth overlay
By WAKA in forum Newbie / General discussionsReplies: 12Last Post: 14th Jul 2009, 12:37 -
Overlay on VirtualDubMod
By ks47 in forum Video ConversionReplies: 10Last Post: 22nd May 2007, 01:26