I don't need fade to black or white but fade out to transparency (basically the overlay image to gradually disappear). Can anyone help me with a working script?
+ Reply to Thread
Results 1 to 3 of 3
-
-
The Animate() filter lets you vary settings over a number of frames. You can use that along with Overlay().
Code:function MyOverlay(clip v1, clip v2, float alpha) # overlay v2, onto v1, with the given transparency { Overlay(v1, v2, opacity=alpha) # overlay v2, onto v1 with specified opacity } # create a couple video streams background = ColorBars(pixel_type="YV12") foreground = BilinearResize(background, background.width/2, background.height/2) # fade out over frames 0 to 30 Animate(0, 30, "MyOverlay", background, foreground, 1.0, background, foreground, 0.0) -
Thanks, it worked! For future reference, I adapted this script to set the x and y coordinates of the overlay:
Code:function OverlayImage(clip v1, clip v2, int x, int y, float alpha) # overlay v2, onto v1, with the given transparency { Overlay(v1, v2, x, y, opacity=alpha) # overlay v2, onto v1 at x, y coordinates with specified opacity } img=ImageSource("overlay.png") Animate(0, 10, "OverlayImage", last, img, 500, 420, 1.0, last, img, 500, 420, 0.0)
Similar Threads
-
how to crop 1 pixel to image in avisynth?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 13th Aug 2025, 16:33 -
Using avisynth to fade out the audio
By pooksahib in forum Video ConversionReplies: 15Last Post: 26th Jul 2025, 05:37 -
Using avisynth to fade to black screen?
By killerteengohan in forum RestorationReplies: 9Last Post: 4th Nov 2024, 23:45 -
[Avisynth] moving image effect
By maudit in forum Newbie / General discussionsReplies: 21Last Post: 28th Nov 2022, 23:29 -
Avisynth: How joining two clips with overlay audio clip1 over clip2?
By marclli in forum EditingReplies: 0Last Post: 17th Oct 2021, 09:59


Quote
