06-18-2003, 01:34 PM
|
Free Member
|
|
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm getting the following error in ToK with the new script. Any ideas. I posted my script below
"GripBorders must run grip size before grip borders."
Code:
## DLL Section ##
#
#LoadPlugin("C:\Program Files\avisynth2.5\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\Avisynth 2.5\mpeg2dec\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\Avisynth 2.5\plugins\GripFit_YV12.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\InverseTelecine\decomb.dll")
LoadPlugin("C:\Program Files\Avisynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("C:\Program Files\Avisynth 2.5\plugins\asharp.dll")
LoadPlugin("C:\Program Files\Avisynth 2.5\plugins\undot.dll")
#
#LoadPlugin("C:\Program Files\AviSynth2.5\plugins\Sampler-2.5.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("D:\VMWARE\Active\Other Image\TOK\projects\hearts\hearts.d2v")
#
undot()
Limiter()
asharp(2, 4)
GripCrop(704, 480, overscan=2, source_anamorphic=true, dest_anamorphic=true)
GripSize(resizer="BicubicResize")
BicubicResize(688,288,0,0.6,35,102,650,272)
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 ( kwag ) - 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".
# If it's not a scene change, then we just blur dynamically, depending on
# the action.
ScriptClip("nf > scd_trigger ? asharp( -2,0) : last ")
#
#
#
GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
#AddBorders(8,96,8,96)
Limiter()
#Sampler(100, length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##
#
#
## Functions ###
function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}
#
####
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
06-18-2003, 01:40 PM
|
Free Member
|
|
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You won't need your BicubicResize() line, when you use GripFit...
I guess that's the error...
__________________
j3llyG0053
|
06-18-2003, 01:41 PM
|
Free Member
|
|
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
doh! stupid me thanks let me give that a try. Left over FitCD remant
|
06-18-2003, 02:04 PM
|
Free Member
|
|
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
yup sorry. I should have caught that
|
06-18-2003, 03:29 PM
|
Free Member
|
|
Join Date: Sep 2002
Location: USA
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
With new script edited today,
Should the line:
conditionalfilter(last,sharp,last, "nf",">", "scd_trigger")
Be:
conditionalfilter(last,asharp,last, "nf",">", "scd_trigger")
I get an exception without it.
************************************
The Devil.....is always.....in the Details!
|
06-18-2003, 03:40 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Script was just updated with small correction
-kwag
|
All times are GMT -5. The time now is 04:52 AM — vBulletin © Jelsoft Enterprises Ltd
|