Forums [Archives] Forums [Archives] (
-   Avisynth Scripting (
-   -   Import A Video, Overlay It, Attach A Mask To It And Move It (

lindylex 03-08-2013 01:50 PM

Import A Video, Overlay It, Attach A Mask To It And Move It
Iím trying to build this and I canít seem to get the order and code correct.

I want to, import a video, overlay it, attach a mask to it and move it.


h_mask=imagesource("C:\projects\Shawn_Hennesy_Project\comps\hmaskwhite.png", end=20, pixel_type = "RGB32").ConvertToRGB32 ()


orange_square=imagesource("C:\projects\Shawn_Hennesy_Project\comps\orange_h.png",  pixel_type = "RGB32")
title_shawn_henessy=imagesource("C:\projects\Shawn_Hennesy_Project\comps\title.png", end=200, pixel_type = "RGB32")
logo = imagesource("C:\projects\Shawn_Hennesy_Project\comps\firebg.png", end=200, pixel_type = "RGB32").ConvertToRGB32 ().assumefps(v1)
\.overlay (title_shawn_henessy, mode="blend", mask=title_shawn_henessy.ShowAlpha(pixel_type="RGB32"), x=0, y=0)
\.overlay (orange_square, mode="blend", mask=orange_square.ShowAlpha(pixel_type="RGB32"), x=0, y=0)
\.overlay( the_interview,x=447, y=242, mode="blend", mask=h_mask)#.BilinearResize(820,460)


mainbg = AudioDub(logo, video_audio)

return mainbg

lindylex 03-08-2013 02:38 PM

[ SOLVED SOLUTION ] Make the make the same size as the imported movie resized.

The mask image dimension is 820 X 464.

h_mask=imagesource("C:\projects\Shawn_Hennesy_Project\comps\hmaskwhite.png", end=20, pixel_type = "RGB32").ConvertToRGB32 ()
When I do this.




\.overlay( the_interview,x=447, y=242, mode="blend", mask=h_mask)
I get no more conflict with the mask being a different size.

kpmedia 03-08-2013 11:03 PM

Excellent. :ok:

You beat me to it.
Thanks for posting what your solution was.

All times are GMT -5. The time now is 12:14 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2019 The Digital FAQ,
Forum Software by vBulletin · Copyright © 2019 Jelsoft Enterprises Ltd.