VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. I'm a newbie of Avisynth. I want to write a script to add a logo (let say logo.png of size 90x90 with transparent background already) to the top of the video. Here is my script:
    Code:
    LoadPlugin("D:\Program Files (x86)\megui\tools\ffms\ffms2.dll")
    LoadPlugin("D:\Program Files (x86)\megui\tools\devil\DevIL.dll")
    
    clip=FFMpegSource2("D:\films\The.Hobbit.An.Unexpected.Journey.2012.EXTENDED.1080p.10bit.BluRay.8CH.x265.HEVC-PSA\The.Hobbit.An.Unexpected.Journey.2012.EXTENDED.1080p.10bit.BluRay.8CH.x265.HEVC-PSA.mkv", fpsnum=24000, fpsden=1001, threads=1, colorspace="YUV420P8")
    #deinterlace
    #crop
    #resize
    #denoise
    
    a2=ImageSource("C:\Users\bao\Pictures\logo.png")
    a3=ImageReader("C:\Users\bao\Pictures\logo.png",pixel_type="RGB32").ShowAlpha(pixel_type="RGB32")
    
    function AddBordersToMake(clip v, int width, int height)
    {
       left = ((width - v.width) / 4) * 2
       right = width - (v.width + left)
    
       top = ((height - v.height) / 4) * 2
       bottom = height - (v.height + top)
    
       AddBorders(v, left, top, right, bottom)
    }
    
    AddBordersToMake(clip, 1920, 1080)
    Overlay(clip, a1,a2,mask=a3)
    __film = clip
    __t0 = __film.trim(110000, 117000)
    
    #__t0 = __film
    __t0
    When I open this script, I get this error:
    Code:
     'D:/Program Files (x86)/megui/tools/ffmpeg/DevIL.dll' cannot be used as a plugin for AviSynth.
    I have tried a lot of versions of DevIL but no luck:
    Image
    [Attachment 76361 - Click to enlarge]


    My question is, how to correctly install DevIL plugin for Avisynth+ 3.7.3 on Windows 11?
    If it is not possible, how to add a photo as a logo at the top,left of the video using Avisynth?
    Quote Quote  
  2. You need to load ImageSeq (place the DevIL library next to it) for ImageSource and to use DevIL you need to set use_DevIL=true.
    see: https://forum.doom9.org/showthread.php?p=1846511 and http://avisynth.nl/index.php/ImageSource


    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

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