View Single Post
Old 26th March 2011, 11:05   #8  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Gavino View Post
I've never heard of mt_infix - do you mean mt_polish?
The call could be written as:
mt_lutxy(a,b,mt_polish("255 - (255-x)*(255-y)/255"),Y=3, U=2, V=2)
I've discovered mt_infix converts from polish to infix, so your original code would not have worked, even without the "***".

Quote:
Originally Posted by Dogway View Post
edit: In gratitude just wanted to share my little function for what this was. Didn't test it deeply so it'll mostly contain errors.
Code:
...
logo0=CoronaSequence(path).trim(0,length).FadeIn(I).FadeOut(O)
...
msk=ShowAlpha(logo0a,"rgb").converttoyv12

video1 = (alpha==true) ?
\   mt_merge(video1,logo1,mt_lut(msk," x 16 - "+String(Opac)+" * "),luma=true)
...
When using alpha, your mask is set up wrong, eg alpha mask 255 becomes 219.
Also, logo0 has the wrong number of frames (length+3 instead of length).
You want:
Code:
logo0=CoronaSequence(path).trim(0,length-1).FadeIn0(I).FadeOut0(O)
...
msk=ShowAlpha(logo0a,"YV12")

video1 = (alpha==true) ?
\   mt_merge(video1,logo1,mt_lut(msk,"x "+String(Opac)+" * "),luma=true)
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote