Log in

View Full Version : About the logo and time


wthreex
18th October 2018, 08:57
I want to add my logo to the last two minutes of every clip, I use Aegisub and VSFilter plugin, but since there are clips at different times, how can I adjust the logo from the last 2 minutes of every video?

StainlessS
18th October 2018, 09:34
You could try ApplyRange, or trim off last two mins and apply the logo to that, then splice with first part of clip again.
ApplyRange():- http://avisynth.nl/index.php/ApplyRange

or something like this


c=Avisource("...")
FC=c.FrameCount
SFrame=FC-Round(c.FrameRate*2*60)
EFrame=FC-1

# Chop in two
ClipA=c.Trim(0,SFrame-1)
ClipB=c.Trim(SFrame,EFrame)

### Apply logo to ClipB
# ClipB=ClipB.Whatever(etc) ...
###

# Glue back together
Last = ClipA ++ ClipB

Return Last