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:
When I open this script, I get this error: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
I have tried a lot of versions of DevIL but no luck:Code:'D:/Program Files (x86)/megui/tools/ffmpeg/DevIL.dll' cannot be used as a plugin for AviSynth.
[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?
+ Reply to Thread
Results 1 to 2 of 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 Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
any one got guide on how to install avisynth that don' point to avisynth.nl
By MrKool in forum Newbie / General discussionsReplies: 7Last Post: 9th Aug 2023, 10:57 -
avisynth 64 bit degrain plugin?
By WAusJackBauer in forum Video ConversionReplies: 15Last Post: 9th Aug 2021, 07:28 -
AviSynth+ 3.5.1 Plugin issue
By esterbarn in forum Video ConversionReplies: 2Last Post: 27th Apr 2020, 04:54 -
How to install the nnedi3 plugin into Virtualdub2 and Avisynth?
By Guernsey in forum Newbie / General discussionsReplies: 7Last Post: 25th Apr 2020, 04:27 -
Median() plugin for Avisynth
By ajk in forum RestorationReplies: 74Last Post: 17th Mar 2020, 13:53