digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Error with the optimize optimal script? (http://www.digitalfaq.com/archives/avisynth/4278-avisynth-error-optimize.html)

audioslave 07-01-2003 12:05 PM

Avisynth: Error with the optimize optimal script?
 
When I jump to the video tab in ToK it says:

Quote:

Evaluate: division by zero
([ScriptClip], line 4 )
What does this mean? 8O If I start a prediction I also get an error in TMPGEnc...

jorel 07-01-2003 12:07 PM

copy the script again...some changes(to better).

:wink:

audioslave 07-01-2003 12:09 PM

Yeah, I saw that. Thanks mate! :wink:

Dialhot 07-01-2003 06:02 PM

I apologize for this "divide by zero" error, I should have check this.

But this point me to an other problem that the solution found by Kwag introduces :

round(YDifferenceToNext()+1) always gives values >= 1

So round(1/nf) and round(3/nf) will produce only TWO values : 0 or 1.

I'm sorry, I didn't saw that before :BangHead:

I think that the better solution (for speed and accuracy) is :

Code:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften(4, round(1/nf) , round(3/nf) ,0, 2) ")

(until Kwag give us its advice on temporalcleaner ;-))

jorel 07-01-2003 06:11 PM

thanks again Phil.
:)

... waiting for Kwag advice on temporalcleaner
:!:

vhelp 07-01-2003 08:02 PM

.
.
Well, I've ben asking for a "different" smoother or noise or whatever you
wanna call it, in my previous requests. Now that someone else has asked
for it, maybe we will see something "better", then the currently used
TemporalSoften in the MA script :wink:

-vhelp

kwag 07-01-2003 09:50 PM

Quote:

Originally Posted by Dialhot
I apologize for this "divide by zero" error, I should have check this.

Don't :drink: while doing math :mrgreen:
Quote:


(until Kwag give us its advice on temporalcleaner ;-))
Working on it ;)

-kwag


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

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