ok got 2.513 to load avs and got all filters to work now it says:
Script Error: there is no function Named "chr"
Script line 40
Code:
##DLL Section ##
#
LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\STMedianFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\asharp.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\undot.dll")
#
####
##Defined Variables and Constants ##
#
MaxTreshold = 1.50
scd_trigger = 30 #Scene change trigger value.
nf = 0 #Current frame.
#
####
##Main section and static filters ###
#
Mpeg2Source("C:\DVD Movie\8 Mile.d2v")
#
undot()
Limiter()
asharp(2, 4)
GripCrop(352, 576)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
#
#
##Dynamic Linear Adaptive Filtering and Scene Change Detection ##
#
#( 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:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ): \
TemporalSoften(2,7,7,3,2)")
#
#Scene change detection - If a scene change is detected, we
#blur heavily. This affects the scene before and the one after the
#scene change, thus providing a softer transition for the encoder instead
#of a sharp "spike".
conditionalfilter( last, asharp(-2,0), last, "nf", ">", "scd_trigger" )
#
#
#
GripBorders()
#LetterBox( Your_Values_Here )#Depends on situation. Use MovieStacker!
Limiter()
#
#
##Functions ###
function fmin(float f1, float f2){
return (f1<f2)? f1 : f2
}
#
####