Hello guys,
I want to create a function in Avisynth to call a dynamic logo/watermark.
Here is the useful part of my script (where vid is the initial clip on which we will apply the function) :
I have no idea if it's a basic or complex request.Code:logo=CoronaSequence("D:\vid\Vdublogo\anim\i*.bmp").ColorKeyMask($4d4d4d,$000000).fadeio(10) fixe=Imagesource("D:\vid\Vdublogo\anim\image0000.bmp",end=[<"gap", 200, 1880, 1165>]).convertfps(25).ConvertToRGB32() logo=logo+fixe logo=ColorKeyMask(logo,$4d4d4d,$000000) logo=loop(logo) ovl=Layer(vid,logo,"add",131,Width()-270,0) return ovl
Thank you very much for your help.
+ Reply to Thread
Results 1 to 2 of 2
-
Last edited by kaskaï; 7th Apr 2020 at 08:20.
-
Code:
function mylogo(clip, int "gap"){ gap = default(gap, 60) # valeur par défaut clip = (IsRGB32 (clip)==false) ? converttorgb32(clip) : last helmet=CoronaSequence("D:\vid\Vdublogo\anim\i*.bmp").ColorKeyMask($4d4d4d,$000000).fadeio(10) BG=Imagesource("D:\vid\Vdublogo\anim\image0000.bmp",end=gap*25-26,fps=25).ConvertToRGB32() logo=ColorKeyMask(helmet+BG,$4d4d4d,$000000).loop() ovl=Layer(clip,logo,"add",131,Width(clip)-270,0) return ovl }
Similar Threads
-
Avisynth and VapourSynth cropping preview functions
By hello_hello in forum Video ConversionReplies: 16Last Post: 27th Mar 2025, 06:27 -
Create a function in Avisynth to apply this denoiser
By zerowalk in forum EditingReplies: 3Last Post: 19th Aug 2019, 07:45 -
Avisynth - How to define default values for function parameters?
By CoralMan in forum EditingReplies: 5Last Post: 1st Aug 2019, 11:09 -
Avisynth Loop function
By pooksahib in forum Video ConversionReplies: 16Last Post: 29th May 2016, 12:03 -
Using avisynth's 'amplify' function
By pooksahib in forum Video ConversionReplies: 53Last Post: 25th May 2016, 02:23