Quantcast Avisynth Open Failure: Crop: you Cannot use Crop to Enlarge or 'shift' a Clip - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
11-22-2003, 06:10 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Trying to use xlogo. Runs fine in virtualdub-mpeg if I load mpg or avi file, use xlogo04.vdf and load bitmap.

When I try to use avisynth 2.5 script I get "Avisynth open failure: Crop: you cannot use crop to enlarge or 'shift' a clip"

## DLL Section ##
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll")
LoadPlugin("c:\video\dlls\gripfit_yv12.dll")
LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l")
LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilte r.dll")
LoadPlugin("c:\video\dlls\asharp.dll")
LoadPlugin("c:\video\dlls\undot.dll")
LoadPlugin("c:\video\dlls\decomb510.dll")
LoadPlugin("c:\video\dlls\xlogo.dll")

MaxTreshold = 1.50
nf = 0 # Current frame.

#mpegsource("h:\testtibb\test.d2v")
avisource("h:\testtibb\test.avi")

Telecide(order=1,guide=1,post=2,vthresh=25)
decimate()

Xlogo("h:\testtibb\test_x_518_y_358_2.bmp",518,358 )
#

undot()

Limiter()
asharp(1, 4)
#BicubicResize(352, 350, 0, 0.6, 0, 1, 720, 47

GripCrop(352, 480)
GripSize(resizer="BicubicResize")
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(16, 81, 16, 81)
#AddBorders(0, 65, 32, 65)

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
#LetterBox(0, 0, 16, 16)
Limiter()

#
#
## Functions ###

function fmin( int f1, int 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
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Another Crop and Resize Question (VHS capture) Icarus3000 Avisynth Scripting 3 07-20-2005 03:49 AM
Avisynth: Crop and resize question urban tec Avisynth Scripting 3 06-13-2005 08:28 AM
Avisynth open failure FrAnKiM Conversão e Codificação de Vídeo (Português) 1 05-28-2004 01:14 AM
Avisynth open failure? totonho03 Avisynth Scripting 12 07-21-2003 04:49 PM
Avisynth: AutofitCD plugin to crop letterbox? audi2honda Avisynth Scripting 3 06-16-2003 01:44 PM




 
All times are GMT -5. The time now is 03:11 AM  —  vBulletin © Jelsoft Enterprises Ltd