View Single Post
Old 28th November 2011, 20:34   #3  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
Another solution (single pass):

Code:
# Your source here
h = Height ()
m = ImageSource("mask.png", end=FrameCount()-1).ShowRed ("YV12")
c = mt_merge (last, m, m, luma=true)
StackVertical (c, last)
TFM (y0=h, y1=h*2-1)
Crop (0, h, 0, 0)
You'll have to define a mask file where the masked parts are pure white, and valid parts pure black.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote