You might want to say what InsertSign() is.
Also, not sure if this may be of interest, VSFilter:-
http://avisynth.org.ru/docs/english/...s/vsfilter.htm
And here a few results from Search of forum ('Watermark' is good search word but I had used 'Logo'):-
Code:
http://forum.doom9.org/showthread.php?p=1599260
http://forum.doom9.org/showthread.php?t=163947
http://forum.doom9.org/showthread.php?t=163870
http://forum.doom9.org/showthread.php?t=161809
http://forum.doom9.org/showthread.php?t=161737
http://forum.doom9.org/showthread.php?t=161762
http://forum.doom9.org/showthread.php?t=161145
http://forum.doom9.org/showthread.php?t=160317
http://forum.doom9.org/showthread.php?t=152310
http://forum.doom9.org/showthread.php?t=144883
http://forum.doom9.org/showthread.php?t=143163
http://forum.doom9.org/showthread.php?p=1554176
EDIT: Presume this is referenced InsertSign by TheFluff, from here:-
https://forums.animesuki.com/showthread.php?t=48608
(From the days when he did something other than whine)
Code:
function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") {
endframe = default(endframe,startframe+overlayclip.framecount()-1)
endframe = (endframe == 0) ? startframe+overlayclip.framecount()-1 : endframe
endframe = (endframe >= mainclip.framecount()-1) ? mainclip.framecount()-1 : endframe
begin= (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1)
middle= mainclip.trim(startframe,endframe)
end= (endframe == mainclip.framecount()-1) ? blankclip(mainclip,length=0) : mainclip.trim(endframe+1,0)
middleoverlay = Overlay(middle, overlayclip, mask=overlayclip.showalpha())
final = (startframe == 0) ? middleoverlay ++ end : begin ++ middleoverlay ++ end
return final
}