VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. 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 :

    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)
    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?)
    Also, wouldn't adding a lot of "bg = ..." make the encode really long?


    Thanks in advance.
    Last edited by Buwaro; 7th Feb 2013 at 09:47.
    Quote Quote  
  2. 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
    Quote Quote  
  3. 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]")
    Thank you very much.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!