VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. hi everyone

    i need add a logo to MeGUI with custom resize, position, transparent and time to visible and invisible.

    thats my script:

    Code:
    LoadPlugin("C:\MeGUI-2808-32\tools\lsmash\LSMASHSource.dll")
    LWLibavVideoSource("C:\Video.mkv")
    #deinterlace
    crop(0, 162, 0, -162)
    Lanczos4Resize(1920,752) # Lanczos4 (Sharp)
    #denoise
    
    clip=last
    logo=ImageSource("C:\11.png", pixel_type="RGB32")
    Overlay(clip,logo,mask=logo.ShowAlpha(),x=0,y=680)
    i can load and change position but cant resize, transparent and custom time to visible and invisible
    Quote Quote  
  2. Code:
    LoadPlugin("C:\MeGUI-2808-32\tools\lsmash\LSMASHSource.dll")
    LWLibavVideoSource("C:\Video.mkv")
    #deinterlace
    crop(0, 162, 0, -162)
    Lanczos4Resize(1920,752) # Lanczos4 (Sharp)
    #denoise
    
    clip=last
    logo=ImageSource("C:\11.png", pixel_type="RGB32").ShowAlpha(pixel_type="YV12").Tweak(bright=-64).Lanczos4Resize(320,240)
    Overlay(clip,logo,mask=logo,x=0,y=680)
    Custom time for visibility can be achieved by Trim() function.
    Last edited by Atak_Snajpera; 17th Jul 2018 at 09:37.
    Quote Quote  
  3. thanks buudy.

    thats right

    Code:
    LoadPlugin("C:\MeGUI-2808-32\tools\lsmash\LSMASHSource.dll")
    LWLibavVideoSource("C:\Video.mkv")
    #deinterlace
    #crop
    #resize
    #denoise
    
    clip=last
    logo=ImageSource("C:\Users\Hello!\Downloads\Telegram Desktop\qur9_19[1].png", pixel_type="RGB32").Lanczos4Resize(200,80)
    Overlay(clip,logo,mask=logo.showalpha(pixel_type="YV12").Tweak(bright=-64),x=0,y=960)

    but how can i use trim?
    Last edited by enable; 17th Jul 2018 at 13:37.
    Quote Quote  
  4. Originally Posted by enable View Post
    cant resize... how can i use trim?
    Code:
    LoadPlugin("C:\Users\Hello!\Downloads\Compressed\MeGUI-2808-32\tools\lsmash\LSMASHSource.dll")
    LWLibavVideoSource("C:\Users\Hello!\Downloads\Video\INNA - Amazing (Official Video).mkv")
    #deinterlace
    #crop
    #resize
    #denoise
    LoadPlugin("C:\Users\Hello!\Downloads\Compressed\MeGUI-2808-32\tools\avisynth_plugin\VSFilter.dll")
    TextSub("C:\Users\Hello!\Desktop\FILMBIN.ass", 1)
    
    clip=last
    logo=ImageSource("C:\Users\Hello!\Downloads\Telegram Desktop\qur9_19[1].png", pixel_type="RGB32").Lanczos4Resize(200,80)
    logo=logo.Spline36Resize(DESIRED_WIDTH, DESIRED_HEIGHT) # scale logo
    Overlay(clip,logo,mask=logo.showalpha(pixel_type="YV12").Tweak(bright=-64),x=0,y=960)
    
    Part1 = last.Trim(0,N) # part with logo
    Part2 = clip.Trim(N+1,0) # pat without logo
    part1++Part2 # append Part1 (with logo) and Part2 (without logo)
    Last edited by jagabo; 17th Jul 2018 at 11:00.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    Originally Posted by enable View Post
    cant resize... how can i use trim?
    logo=logo.Spline36Resize(DESIRED_WIDTH, DESIRED_HEIGHT) # scale logo
    Overlay(clip,logo,mask=logo.showalpha(pixel_type=" YV12").Tweak(bright=-64),x=0,y=960)

    Part1 = last.Trim(0,N) # part with logo
    Part2 = clip.Trim(N+1,0) # pat without logo
    part1++Part2 # append Part1 (with logo) and Part2 (without logo)

    [/CODE]
    thanks you so much buddy. its work
    but need two options.
    transparent and time to visible/invisible
    .Tweak is not good
    and trim is so difficult.
    Quote Quote  
  6. For fading your logo you can use Trim() with overlapping segements and the Dissolve() filter.

    Code:
    Part1 = last.Trim(0,N+23) # part with logo
    Part2 = clip.Trim(N,0) # pat without logo
    Dissolve(Part1, Part2, 24) # append Part1 (with logo) and Part2 (without logo) with 24 frame dissolve (crossfade)
    Quote Quote  



Similar Threads