Quantcast Avisynth: Problem with New Script? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
06-18-2003, 01:34 PM
audi2honda audi2honda is offline
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 
} 

# 
####
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
06-18-2003, 01:40 PM
Jellygoose Jellygoose is offline
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
Reply With Quote
  #3  
06-18-2003, 01:41 PM
audi2honda audi2honda is offline
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
Reply With Quote
  #4  
06-18-2003, 02:04 PM
audi2honda audi2honda is offline
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
Reply With Quote
  #5  
06-18-2003, 03:29 PM
vico1 vico1 is offline
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!
Reply With Quote
  #6  
06-18-2003, 03:40 PM
kwag kwag is offline
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Script problem, unable to open d2v file khusru Avisynth Scripting 0 02-13-2006 09:48 PM
Avisynth: Problem with script or settings? WOWIEGURL Avisynth Scripting 7 11-10-2005 05:00 AM
Avisynth: Problem with MA script muaddib Avisynth Scripting 3 09-07-2004 02:37 AM
Avisynth: My new script problem bigggt Avisynth Scripting 12 06-30-2003 04:14 PM
Avisynth: Noticed a problem with latest script audioslave Avisynth Scripting 5 06-17-2003 08:44 PM




 
All times are GMT -5. The time now is 02:34 PM  —  vBulletin © Jelsoft Enterprises Ltd