VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Feb 2018
    Location
    europe
    Search PM
    hello ,

    i'm trying to add a logo on my vidéo from X frames to X frames, but i can't succeed with functions overlay , layer, or logo.vdf

    with overlay function i can't find the way to let appear the logo during X frames only
    with layer function, the same
    with logo.vdf , avspmod says invalid argument

    So, how can I put a logo on my video wich appear from frame number 3316 to frame number 3367

    The logo is a png with no transparency

    thanks a lot
    Quote Quote  
  2. Using AviSynth?

    B=ImageSource("Logo.png")
    AVISource("Movie.avi")#whatever your source video is
    A=Last
    C=Overlay(A,B,100,200)#the numbers represent the X and Y coordinates for the logo
    ReplaceFramesSimple(A,C,Mappings="[3316 3367] ")#the numbers represent the start and end frame numbers

    ReplaceFramesSimple is a part of stickboy's RemapFrames filter.
    Quote Quote  
  3. Or something like:

    Code:
    logo = ImageSource("Logo.png")
    source = AVISource("Movie.avi") #whatever your source video is
    
    # cut the video into three parts
    part1 = Trim(0, 3315) # start to 3315
    part2 = Trim(3316,3367) # 3316 to 3367
    part3 = Trim(3368, 0) # 3368 to end
    
    # apply the logo to part2
    part2 = Overlay(part2, logo, x=100, y=200) #the numbers represent the X and Y coordinates for the logo
    
    # put the three parts back together
    part1++part2++part3
    Quote Quote  
  4. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Jagabo and manono give excellent examples, as always, but if you are familiar with Avisynth, you can use another script that allows you to size your Logo/video as well as other attributes than can shorten setup time.

    Code:
    v1 = Directshowsource("birthday with audio.flv").ConvertToRGB32.Lanczosresize(640, 480)
    img1 = ImageSource("TransparentBG.png", pixel_type="RGB32", fps=30.000, end=3368).converttoRGB32.LanczosResize(144,100)
    clip1 = v1.trim(0, -3316) ++ v1.trim(3316, -52).Overlay(img1, 100, 200,Opacity=1.0, img1.ShowAlpha()) \
     ++ v1.trim(3368, 0)
    return clip1
    The numbers correspond to their use as below;

    Image
    [Attachment 45532 - Click to enlarge]
    Quote Quote  



Similar Threads

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