Quantcast Avisynth: Error with the Optimize Optimal Script? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
07-01-2003, 12:05 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
When I jump to the video tab in ToK it says:

Quote:
Evaluate: division by zero
([ScriptClip], line 4 )
What does this mean? If I start a prediction I also get an error in TMPGEnc...
__________________
AudioSlave
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  
07-01-2003, 12:07 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
copy the script again...some changes(to better).

Reply With Quote
  #3  
07-01-2003, 12:09 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, I saw that. Thanks mate!
__________________
AudioSlave
Reply With Quote
  #4  
07-01-2003, 06:02 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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

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 )
Reply With Quote
  #5  
07-01-2003, 06:11 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
thanks again Phil.


... waiting for Kwag advice on temporalcleaner
Reply With Quote
  #6  
07-01-2003, 08:02 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
.
.
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

-vhelp
Reply With Quote
  #7  
07-01-2003, 09:50 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
Quote:
Originally Posted by Dialhot
I apologize for this "divide by zero" error, I should have check this.
Don't while doing math
Quote:

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

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: Optimal Script error? black prince Avisynth Scripting 1 07-09-2003 04:43 PM
Avisynth: New optimal script for AVS 2.52 Dialhot Avisynth Scripting 3 06-14-2003 12:17 PM
Avisynth: Optimal Script for D2S? telemike Avisynth Scripting 3 06-11-2003 08:33 AM
TMPGEnc: load the optimal script, error with plugins beany101uk Video Encoding and Conversion 1 05-14-2003 04:06 PM




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