Quantcast Avisynth: Little Optimizations in Optimal Script - Page 2 - digitalFAQ.com Forums [Archives]
  #21  
07-01-2003, 04:19 PM
plautzer plautzer is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to plautzer
Quote:
Originally Posted by ovg64
Well my Deal here is an Athlon xp which gets up to 1.46Gigs with out clocking it, this encode when finish is going to be 4hrs. 6min. long... , Monsters Inc. 93 min Toon.
Im encoding American History X right ( ToK (MPEG-1 704x576 25fps CQ 90)) now, on 2 CDs and Its gonna take my at least 10 hours!!1


What do u mean with "clocking it" ???

Plautzer
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
  #22  
07-01-2003, 04:33 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
Quote:
Originally Posted by plautzer
Quote:
Originally Posted by ovg64
Well my Deal here is an Athlon xp which gets up to 1.46Gigs with out clocking it, this encode when finish is going to be 4hrs. 6min. long... , Monsters Inc. 93 min Toon.
Im encoding American History X right ( ToK (MPEG-1 704x576 25fps CQ 90)) now, on 2 CDs and Its gonna take my at least 10 hours!!1


What do u mean with "clocking it" ???

Plautzer
Ask Jorel about the clocking deal he will explain it better :P

i bolive 704x576 pal would make a differencs in time , movie just
finish now I heard the ding by Tmpeg... hehe i was encoding at 528x480
that would be much faster than 704x576.
Reply With Quote
  #23  
07-01-2003, 04:43 PM
edmund edmund is offline
Free Member
 
Join Date: Oct 2002
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
i am having the same problem.. with tok it took 3 tries to get my cq but it took 12 minutes what the heck is that. what do i need to do to clock it?? ( and what exactly is clocking it) thanks ??
Reply With Quote
  #24  
07-01-2003, 04:45 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
They are talking about "Overclocking". Not clocking. It's when you increase the CPU clock on your machine over it's designed limit. That's why it's called OverClocking.

-kwag
Reply With Quote
  #25  
07-01-2003, 04:46 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
He's talking about overclocking his processor to get more speed. That's a whole nother can of worms. www.anandtech.com
Reply With Quote
  #26  
07-01-2003, 04:46 PM
plautzer plautzer is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to plautzer
Aight ill gonna ask jorel,
but I have another problem, which i never had when I was using the old avisynth!!
During the encoding, when I go off the internet.. my computer reboots!!
That piss me off, cuz soemtime its right before the ende!!

Did anybody have a problem like that??

Thx guys

Plautzer
Reply With Quote
  #27  
07-01-2003, 04:51 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
Quote:
Originally Posted by kwag
They are talking about "Overclocking". Not clocking. It's when you increase the CPU clock on your machine over it's designed limit. That's why it's called OverClocking.

-kwag
Right Kwag, i dont have the board nor the memory speed to over joy this thing
Reply With Quote
  #28  
07-01-2003, 04:53 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
Quote:
Originally Posted by ovg64
Right Kwag, i dont have the board nor the memory speed to over joy this thing
Based on my results so far with today's script I feel like I just got a CPU upgrade for free
Reply With Quote
  #29  
07-01-2003, 04:55 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 audi2honda

Based on my results so far with today's script I feel like I just got a CPU upgrade for free
Based on your results so far, I feel like I need to pay for a CPU upgrade

-kwag
Reply With Quote
  #30  
07-01-2003, 04:56 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
Quote:
Originally Posted by plautzer
Aight ill gonna ask jorel,
but I have another problem, which i never had when I was using the old avisynth!!
During the encoding, when I go off the internet.. my computer reboots!!
That piss me off, cuz soemtime its right before the ende!!

Did anybody have a problem like that??

Thx guys

Plautzer
Sound like a setting in windows that when the computer is about to crash it will reboot instead.
Reply With Quote
  #31  
07-01-2003, 06:03 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
  #32  
07-01-2003, 06:14 PM
Grantman Grantman is offline
Free Member
 
Join Date: Sep 2002
Location: Northfield, IL
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Grantman Send a message via AIM to Grantman Send a message via MSN to Grantman Send a message via Yahoo to Grantman
I just made a test using the latest changes to the optimal script. I have a 21 second clip for testing. (It is the opening "couch" sequence from an episode of The Simpsons).

The end result is going to 352x240 but using the KVCD3 template. I only change the resolution.

The latest script as of Sunday produced a file size of 2,206KB. I ran the exact same project but with the changed script as of today and the file size was 2,384KB.

I did not notice an perceptable quality difference in VirtualDub or by playing them on my TV. (Using Nero and burning as VCD).

I understand the script is really optimized for DVD movies not animation. I just though the file size change was interesting.


Grantman
Reply With Quote
  #33  
07-01-2003, 06:47 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Grantman
The latest script as of Sunday produced a file size of 2,206KB. I ran the exact same project but with the changed script as of today and the file size was 2,384KB
Yes, that a logical result of the problem I mentioned just above : with my old suggestion, temporalcleaner works with only two values : 0 and 1. In other words : does'nt have a great impact.

Try with the ultimate modifications I did in my post of 12:03 am, and tell us.
Reply With Quote
  #34  
07-01-2003, 09:33 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 corrected. I guess I wasn't that tired after all earlier this morning, but I wasn't too awake
First I saw the error, then I thought It was me. As a rule, I shouldn't do math early in the morning

Thanks Phil
-kwag
Reply With Quote
  #35  
07-03-2003, 04:48 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@Dialhot,
I can't get it to work. Could you please look at my script and tell me what's wrong?

Quote:
nf = 0 # Current frame.

Mpeg2Source("D:\DVD Rips\Strange Days\Strange Days.d2v")

undot()
Limiter()
asharp(2, 4)
GripCrop(480, 480, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(1.50))
MergeLuma(blur(0.2))

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
temporalcleaner(fmin(3+nf,7),fmin(8+nf,15)) ")

#BlockBuster(method="noise", detail_min=1, detail_max=10, variance=0.7, seed=1) # For 352x encodes
BlockBuster(method="noise", detail_min=1, detail_max=10, variance=0.4, seed=1) # For 480x encodes

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

function fmin(int f1, int f2) {
return (f1<f2) ? f1 : f2
}
When I load this script in ToK and flip to the video tab it says:
Quote:
Script error: Invalid arguments to "fmin"
([ScriptClip], line 4)
And I have no clue to what that means.
__________________
AudioSlave
Reply With Quote
  #36  
07-03-2003, 05:28 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
The function fmin() is expecting only integer values. You are sending floating point values in the temporalcleaner function
You need to "round" the values in the function call. Just like in the "unfilter" line.

-kwag
Reply With Quote
  #37  
07-03-2003, 05:32 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Say what? Could you please show how the line is supposed to look? As I said earlier: I'm no programmer...
__________________
AudioSlave
Reply With Quote
  #38  
07-03-2003, 06:03 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
It should look like this:

Code:
temporalcleaner(fmin(round(3+nf), 7), fmin(round(8+nf), 15)) ")
-kwag
Reply With Quote
  #39  
07-03-2003, 06:12 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot kwag! I really wanted to try the MAS with TemporalCleaner but I couldn't figure out what was wrong. You're my hero! The Man, The Myth, The Legend - KWAG!
__________________
AudioSlave
Reply With Quote
  #40  
07-03-2003, 06:26 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
editing:

Phil post this lines and works fine,seems with more clean colors:

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) ")


ps:
i was posted only part of this lines,now are complete!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Optimal Script? Shibblet Avisynth Scripting 29 01-05-2005 04:57 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
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
Avisynth: Optimal Script Help Bigswaffo Avisynth Scripting 7 05-29-2003 04:17 PM

Thread Tools



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