Log in

View Full Version : Overlay Picture with gradually Appearing/Dissolve


3ngel
30th November 2008, 11:26
Hi,
i have a simple situation, but at the moment i don't see a solution with avisynth. I don't want to use After Effects.

That's it:

I have a picture (say a logo) png, (with or without transparency). I just want this pic to start appearing gradually from nothing at frame x, and gradually disappearing into nothing (dissolve) at frame y.

I havent' been able to do it at this moment.

Someone can help me?

Thank you very much.

Gavino
30th November 2008, 11:35
You can do this using Overlay and ConditionalReader.
See this example (http://avisynth.org/mediawiki/ConditionalReader#Adjusting_Overlay).

LaTo
30th November 2008, 20:07
You can try something like this:

start_frame = 10
end_frame = 1000
fade_frames = 25
fps = 25

logo = mask(imagereader("logo.png", fps = fps)
\ ,imagereader("masq.png", fps = fps))
\ .trim(0,end_frame-start_frame).fadeIO(fade_frames)

src = last.trim(start_frame,end_frame)
clip = layer(src,logo,op="add",level=128)

start = last.trim(0,start_frame-1)
end = last.trim(end_frame+1,0)

start+clip+end

stickboy
30th November 2008, 21:29
I have an example at:
http://www.avisynth.org/stickboy/etc/logo-example.zip

Reino
1st December 2008, 15:49
Hi 3ngel,
A couple of months ago I had the same problem/question.
Maybe you'll find my thread (http://forum.doom9.org/showthread.php?t=140545) usefull.

Here you can download a sample of the first 20sec of the eventual video I made (with the image overlay during the first seconds):
Paradigit ELE Rally 2008 Compilation v2 _Reino_1.mkv - 3.66MB (http://www.zshare.net/download/52107582bc7b85dd/)