Reino
10th May 2009, 22:11
Hello,
The situation:
I'd like to put a small videoclip on top of the original with fade-in-effects at a specific framerange.
This is my script so far:
a = AVISource("D:\video\video_1.avi").Lanczos4Resize(448,336).Trim(0,1926).ConvertToYV12()
b = AVISource("D:\video\video_2.avi").Lanczos4Resize(192,144).Trim(113,1744).Crop(1,1,-1,-1).AddBorders(1,1,1,1)
c = AVISource("D:\video_2.avi").Lanczos4Resize(192,144).Trim(113,1744).Crop(1,1,-1,-1).AddBorders(1,1,1,1).invert().FadeIO(50)
JDL_ReplaceRange(a,Overlay(a.Trim(111,0),b,x=250,y=6,mask=c),111,1744)
Because of Invert() and FadeIO(50) the small videoclip now emerges on top just as I intended, BUT after the fade-in, the small videoclip seems to be semi-transparant, which is NOT my intention.
I don't use Avisynth that much, but I have a hunch it has something to do with mask. What am I doing wrong?
The situation:
I'd like to put a small videoclip on top of the original with fade-in-effects at a specific framerange.
This is my script so far:
a = AVISource("D:\video\video_1.avi").Lanczos4Resize(448,336).Trim(0,1926).ConvertToYV12()
b = AVISource("D:\video\video_2.avi").Lanczos4Resize(192,144).Trim(113,1744).Crop(1,1,-1,-1).AddBorders(1,1,1,1)
c = AVISource("D:\video_2.avi").Lanczos4Resize(192,144).Trim(113,1744).Crop(1,1,-1,-1).AddBorders(1,1,1,1).invert().FadeIO(50)
JDL_ReplaceRange(a,Overlay(a.Trim(111,0),b,x=250,y=6,mask=c),111,1744)
Because of Invert() and FadeIO(50) the small videoclip now emerges on top just as I intended, BUT after the fade-in, the small videoclip seems to be semi-transparant, which is NOT my intention.
I don't use Avisynth that much, but I have a hunch it has something to do with mask. What am I doing wrong?