Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
12th September 2012, 16:25 | #1 | Link |
Registered User
Join Date: Sep 2012
Posts: 4
|
Overlay with video where mask is grayscale video
Is it possible to overlay video with mask in grayscale?
I have not working code: Code:
clip1 = AviSource("d:\Dropbox\video\under.avi") clip2 = AviSource("d:\Dropbox\video\over.avi") maskclip=AviSource("d:\Dropbox\video\mask.avi").ConvertToRGB32 Overlay(clip1, clip2, mask=ShowAlpha(maskclip)) |
12th September 2012, 18:04 | #2 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
If mask.avi is not already RGB32, then ConvertToRGB32 will simply add an all-black alpha layer.
Probably what you want is simply: Code:
clip1 = AviSource("d:\Dropbox\video\under.avi") clip2 = AviSource("d:\Dropbox\video\over.avi") maskclip=AviSource("d:\Dropbox\video\mask.avi") Overlay(clip1, clip2, mask=maskclip) |
Tags |
mask, overlay |
Thread Tools | Search this Thread |
Display Modes | |
|
|