VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Apr 2012
    Location
    My World
    Search Comp PM
    I use these code

    Code:
    LoadPlugin("F:\Program\megui\tools\avisynth_plugin\VSFilter.dll")
    
    raw = DirectShowSource("F:\raw.mkv", fps=23.976, 
    audio=false, convertfps=true)
    logorgb = aviSource("F:\Logo RGB.avi")
    logoalpha = aviSource("F:\Logo Alpha.avi")
    
    raw
    
    clip1 = raw.trim(0,2231)+trim(2232,2252).overlay(logorgb,0,0,logoalpha)+trim(2253,88000)
    
    fin=clip1
    
    return(fin)
    but this code is problem when my logo fading



    now I have 2 file Raw File (mkv file) and RGBA File (avi file).
    and i want to slove problem from my old code
    what should i do.
    please show reference or example code
    my eng is very bad sorry for these

    Thank for help.
    Quote Quote  
  2. We probably need to see your logo and alpha videos.

    Here's an example script using a single image (cropped from your sample image):

    Logo.png:
    Name:  logo.png
Views: 509
Size:  34.9 KB

    Code:
    function RgbFade(clip vid, float fade)
    {
        RgbAdjust(vid, r=fade, g=fade, b=fade)
    }
    
    logo = ImageSource("logo.png") 
    alpha = ImageSource("logo.png").Invert().Animate(0,100, "RgbFade", 0.0, 1.0)
    ColorBars()
    Overlay(logo, 0, 0, alpha)
    Trim(0,100)
    Add "Return(alpha)" just after creating alpha to see what the alpha video should look like.
    Last edited by jagabo; 13th Apr 2014 at 10:55.
    Quote Quote  
  3. Member
    Join Date
    Apr 2012
    Location
    My World
    Search Comp PM
    sorry for confuse. but i dont understand old topic
    i will explain my problem by image.



    This is my code

    Code:
    LoadPlugin("F:\Subtitles\Program\megui\tools\avisynth_plugin\VSFilter.dll")
    
    raw = DirectShowSource("F:\Subtitles\Work\Subtitles\Hoshizora e Kakaru Hashi BD\ Hoshizora e Kakaru Hashi - OP.mkv", fps=23.976, audio=false, convertfps=true)
    oprgb   = DirectShowSource("F:\Subtitles\Work\Subtitles\Hoshizora e Kakaru Hashi BD\OP RGB.avi").ConvertToRGB32()
    opalpha = DirectShowSource("F:\Subtitles\Work\Subtitles\Hoshizora e Kakaru Hashi BD\OP ALPHA.avi").ConvertToRGB32()
    
    raw
    
    clip1 = raw.trim(0,4)+trim(5,272).overlay(oprgb,0,0,opalpha)+trim(272,88000)
    
    fin=clip1
    
    return(fin)
    what should i do .
    Quote Quote