Quote:
Originally Posted by Gavino
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
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)