digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Import A Video, Overlay It, Attach A Mask To It And Move It (http://www.digitalfaq.com/archives/avisynth/14699-import-video-overlay.html)

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 http://mo-de.net/d/comp3.png 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.

Code:

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

the_interview=v1

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)

video_audio=the_interview.killvideo()

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.
Code:

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

Code:

the_interview=v1.BilinearResize(820,464)
And

Code:

\.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 03:37 AM  —  vBulletin © Jelsoft Enterprises Ltd

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