digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Floating point error with MA script? (http://www.digitalfaq.com/archives/avisynth/7892-avisynth-floating-point.html)

Deeja 01-25-2004 09:43 AM

Avisynth: Floating point error with MA script?
 
When I load my script into ToK I get a "floating point error" message box, what's up here?

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####

## Main section and static filters ###
#
Mpeg2Source("d:\**********************.d2v")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(480, 576, overscan=2, source_anamorphic=false)
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) ")

#
#
#

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

#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#
####

I haven't altered the script at all.........what's going on, help anyone?

Deeja 01-25-2004 10:05 PM

Ah....yes
 
Silly me, turns out I'd forgotten to install a DivX codec, so the YV12 bit was getting a bit confused. :oops:

Dialhot 01-26-2004 04:27 AM

:arrow: use the search ferature of the forum. I talk about the floating point problem three time at least last week.


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.