Ex script
## DLL Section ##
#
LoadPlugin("E:\Filters25\MPEG2Dec3.dll")
LoadPlugin("E:\Filters25\GripFit_YV12.dll")
LoadPlugin("E:\Filters25\STMedianFilter.dll")
LoadPlugin("E:\Filters25\asharp.dll")
LoadPlugin("E:\Filters25\unfilter.dll")
LoadPlugin("E:\Filters25\undot.dll")
LoadPlugin("E:\Filters25\vsfilter.dll")
#
####
## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####
## Main section and static filters ###
#
AviSource("C:\movie.avi")
#
undot()
Limiter()
asharp(1, 4)
BicubicResize(528, 270, 0, 0.6, 11, 0, 554, 240)
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#
## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")
#
#
#
AddBorders(0, 105, 0, 105)
LetterBox(16, 16, 16, 16)
Limiter()
#
#
## Functions ###
function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
TextSub("C:\textfile.ssa")
#
####
####
and here are some values from the textfile.ssa
[Script Info]
; This is a Sub Station Alpha v4 script.
; For Sub Station Alpha info and downloads,
; go to
http://www.eswat.demon.co.uk/
; or email
kotus@eswat.demon.co.uk
;
; Note: This file was saved by Subresync.
;
ScriptType: v4.00
Collisions: Normal
PlayResX: 384
PlayResY: 288
Timer: 100.0000
[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Default,Tahoma,12,&Hffffff,&H00ffff,&H000000,&H000 000,-1,0,1,2,3,
6,20,20,228,0,1