Is there a simple way to fade in and fade out images with alpha channel transparency into and out of clips with AviSynth?
If so, please help me out.![]()
+ Reply to Thread
Results 1 to 10 of 10
-
-
Dissolve("File_01.avi","File_02.avi")
or using Import
Dissolve(Import("File_01.avs"),Import("File_02.avs "))
.
You'll have to cut at the transition points though.
. -
No, I know how to dissolve.
I mean images, such as logos and the such, overlaid over the video. Again, I know how to overlay video, but:
(1) How to I import an image with alpha transparency for overlay, and
(2) How do I fade in and out in an overlay? -
How to I import an image with alpha transparency
(1) How to I import an image with alpha transparency for overlay
(2) How do I fade in and out in an overlay? -
Yep, that does it. Thanks! For reference:
Code:# Grabbing the movie clip on top of which the image should be placed. # clip1 = avisource("testing.avi") # Grabbing the image. Since IM only gives you one frame, we'll change the FPS to 2000 and assume it's 25. This gives us eight seconds worth image. Fade it in and out of nothingness. # clip2 = immareadpic("testing.png").changefps(2000).assumefps(25).fadein(60).fadeout(60) # Then overlay it over clip1, take the alpha-channel, and give the location where it's overlaid. I used a full video size image and positioned the text in my image processor, so it's set to 0:0. # overlay (clip1, clip2, mode="blend", mask=showalpha(clip2), x=0, y=0)
Edit: I don't seem to be able to attach anything, so grab it here (712kb). -
Cool!
Btw, you also use loop:
clip2 = immareadpic("testing.png").loop(2000).assumefps(25 ).fadeIO(60)
or something like that. -
Hey, I've never noticed the existence of loops before. Cool!
=> Goes to read the manual cover to cover. -
Trying to bring my files into VirtualDub. The result is same with VDub and VDubMod as well as in v. 1.6.5.
The only line in an entire test script is:
Code:immareadpic("background.tga")
-
Re-installing AviSynth didn't help. Installing AS 2.5.6 Beta3 didn't help. And I can't really re-install VirtualDub now, can I? Tested versions 1.5.10 and 1.6.6.
Testing with other media players: BSPlayer works fine. Media Player Classic works fine. Windows Media Player crashes with the same error as VDub.
TMPEGEnc works like a charm.
The bizarre thing is that it worked first in VDub, as proven by the video I posted.
Similar Threads
-
images
By AlanHK in forum TestReplies: 4Last Post: 4th Mar 2010, 13:12 -
Splitting & fading
By carlmart in forum AudioReplies: 32Last Post: 5th Oct 2009, 17:34 -
fading out last 50 frames - but no keyframe.
By davexnet in forum Video ConversionReplies: 3Last Post: 4th Feb 2009, 22:33 -
Still images from AviSynth script problem
By Leo48 in forum Newbie / General discussionsReplies: 5Last Post: 27th May 2008, 15:54 -
help with avs script (dv to mpeg2) Fading in/out
By ZiGGY909 in forum EditingReplies: 2Last Post: 14th Nov 2007, 14:12