Log in

View Full Version : watermark to video


salatoimikud
23rd January 2010, 22:09
Hi,

i want add watermark to video first 5 seconds.
How i do that? I find watermark scripts whole video but i cant find something like i need...

zilog jones
24th January 2010, 01:23
Use ApplyRange with whatever script you have

Dogway
24th January 2010, 20:42
Ive been using this script for a while, I read somewhere on the forum, and adapted it for my source.

LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\BEST\ImageSequence.dll")
logo=ImageSequence("D:\logo2.bmp").ConvertToRGB32

video1=avisource("D:\yourscript.avs").trim(x,x).ConvertToRGB
video2=avisource("D:\yourscript.avs").trim(x,x).ConvertToRGB

# mask a color and leave the other colors unchanged
logo=ColorKeyMask(logo,$FFFFFF,$808080).FadeIn(45)
# place the image relative to top-left
video2=Layer(video2,logo,"darken",50,680,445,use_chroma=true) #logo onto video2 part.

video=video1+video2

ConvertToYV12()

You just could apply this to the logo part, so just encode part1 as usual, and use this only for video2, in this way you avoid having to convert to rgb and back to YV12 and therefore degrading the source.