Hello.
I'm planing to do a video which will need I superpose many images at different timeframes.
For exemple, showing an image during frames 100 to 200, and an another image during frames 150 to 280 etc.
I've heard that the best way to do that would be to use Avisynth, so I read a tutorial, did a bit of research and a few tests, and I managed to do that :
The problem is I didn't find how to display an image for a given period. I thought trim would work but I didn't find a way to make it work. (and could it work since some images will show up in the same frames?)Code:bg = BlankClip(length=3000, width=720, height=576, fps=30, color=$000000) bg = Overlay(bg, ImageSource("image1.png"), 10, 10) bg = Overlay(bg, ImageSource("image7.png"), 10, 30) Overlay(bg, ImageSource("image4.png"), 30, 10)
Also, wouldn't adding a lot of "bg = ..." make the encode really long?
Thanks in advance.![]()
+ Reply to Thread
Results 1 to 3 of 3
-
Last edited by Buwaro; 7th Feb 2013 at 09:47.
-
One way to do it is with Stickboy's RemapFrames , ReplaceFramesSimple or similar plugins
http://avisynth.org/stickboy/
Here is an example of one type of alpha overlay over different frame ranges
https://forum.videohelp.com/threads/315776-Adding-Watermark-To-Video-using-Megui?p=1954...=1#post1954230
If you have different overlays (different png images), You specify as many versions of videos with the the overlay , eg. A, B, C, D , and use that as the sourceclip with the mappings for that version of the overlay. Then take that as the new input (the new base clip) to remap new overlays (E.g. B, C , D) into new frame ranges
Then you take RemapFrames and map each version into the frame range -
So something like that?
Code:a1 = BlankClip(length=3000, width=720, height=576, fps=30, color=$000000) a2 = ImageSource("image1.png") a3 = Overlay(a1, a2) a4 = ReplaceFramesSimple(a1, a3, mappings="[0 30][90 150]") b2 = ImageSource("image2.png") b3 = Overlay(a4, b2, 10, 10) b4 = ReplaceFramesSimple(a4, b3, mappings="[15 30][45 60]") c2 = ImageSource("image3.png") c3 = Overlay(b4, c2, 20, 20) ReplaceFramesSimple(b4, c3, mappings="[30 45][75 120]")
Similar Threads
-
Help with cropping & adding black borders with Avisynth
By jda in forum RestorationReplies: 9Last Post: 11th Oct 2010, 07:10 -
Adding still images to videos [YouTube thumbnails]
By Internet in forum Newbie / General discussionsReplies: 11Last Post: 19th Nov 2009, 01:02 -
Is adding intro as simple as AVISynth?
By Aristocles in forum Authoring (DVD)Replies: 2Last Post: 16th Nov 2009, 00:19 -
adding motion to still images
By fionawhitty in forum Newbie / General discussionsReplies: 3Last Post: 25th Aug 2009, 05:08 -
Still images from AviSynth script problem
By Leo48 in forum Newbie / General discussionsReplies: 5Last Post: 27th May 2008, 15:54