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 3 of 3
Thread
  1. I would like to add multiple image logo into one video with different position. What code I should use to add another logo?

    I've tried using Overlay, this one allows me to display one logo.
    Code:
    LoadPlugin("C:\Program Files\MeGUI\tools\avs\plugins\directshowsource.dll")
    DirectShowSource("G:\Video.mp4", fps=27.154, audio=false, convertfps=true).AssumeFPS(13577,500)
    LoadPlugin("C:\Program Files\MeGUI\tools\avs\plugins\ImageSeq.dll")
    a2=ImageReader("G:\logo1.png").LanczosResize(100,100)
    a3=ImageReader("G:\logo1.png", pixel_type="RGB32").ShowAlpha(pixel_type="RGB32").LanczosResize(100,100)
    Overlay(a1, a2, mask=a3,0,0)
    ConvertToYV12()
    Last edited by xwizardx; 4th Mar 2019 at 14:12.
    Quote Quote  
  2. That code isn't going to work as a1 was never created. I would avoid using DirectShowSource() except as a last resort. Otherwise you want something like:

    Code:
    DirectShowSource("G:\Video.mp4", fps=27.154, audio=false, convertfps=true).AssumeFPS(13577,500)
    
    logo1 = ImageReader("G:\logo1.png").LanczosResize(100,100)
    alpha1 = logo1.ShowAlpha(pixel_type="RGB32")
    Overlay(last, logo1, mask=alpha1, x=0, y=0) # x,y coordinates to suit
    
    logo2 = ImageReader("G:\logo2.png").LanczosResize(100,100)
    alpha2 = logo2.ShowAlpha(pixel_type="RGB32")
    Overlay(last, logo2, mask=alpha2, x=500, y=300) # x,y coordinates to suit
    
    ConvertToYV12()
    Quote Quote  
  3. Originally Posted by jagabo View Post
    That code isn't going to work as a1 was never created. I would avoid using DirectShowSource() except as a last resort. Otherwise you want something like:

    Code:
    DirectShowSource("G:\Video.mp4", fps=27.154, audio=false, convertfps=true).AssumeFPS(13577,500)
    
    logo1 = ImageReader("G:\logo1.png").LanczosResize(100,100)
    alpha1 = logo1.ShowAlpha(pixel_type="RGB32")
    Overlay(last, logo1, mask=alpha1, x=0, y=0) # x,y coordinates to suit
    
    logo2 = ImageReader("G:\logo2.png").LanczosResize(100,100)
    alpha2 = logo2.ShowAlpha(pixel_type="RGB32")
    Overlay(last, logo2, mask=alpha2, x=500, y=300) # x,y coordinates to suit
    
    ConvertToYV12()
    thank you very much for the help!
    Quote Quote  



Similar Threads