Quantcast Avisynth: Some Assistance on Optimal Script? - digitalFAQ.com Forums [Archives]
  #1  
07-04-2003, 01:15 AM
Bud Bud is offline
Free Member
 
Join Date: Apr 2002
Location: Hawaii
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Bud
I have been following the optimal scripts and would like to try but you guys are way ahead of me. Would someone please tell me what and where I should put the "Opitmal Script". Below is what I have been using. As you can see it's very basic. I just run Moviestacker and TOK with the basic stuff. Feel free to be critical and cut and pasite as you please. Is In oder to use this should I swtich to the most recent AviSynth? Thanks in advance


#==============================================#
# -= AviSynth script by MovieStacker v1.1.1 =- #
#==============================================#

LoadPlugin("C:\MyEncoding\MovieStacker\Filters\MPE G2Dec.dll")
LoadPlugin("C:\MyEncoding\MovieStacker\Filters\Tem poralCleanerOld.dll")
LoadPlugin("C:\MyEncoding\MovieStacker\Filters\Gri pFit_preview.dll")
LoadPlugin("C:\MyEncoding\MovieStacker\Filters\Dus tV5.dll")
LoadPlugin("C:\MyEncoding\MovieStacker\Filters\Leg alClip.dll")

Mpeg2Source("C:\THEY\VIDEO_TS\They.d2v")
LegalClip()
GripCrop(528, 480, overscan=2)
GripSize(resizer="BilinearResize")
SpaceDust()
TemporalCleaner()
GripBorders()
LegalClip()
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-04-2003, 01:32 AM
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
Hello Bud

First of all, you should install the new AviSynth 2.52. Then cut&paste the new adaptive script to notepad. This one:

Code:
## DLL Section ## 
# 
LoadPlugin("C:\Filters25\MPEG2Dec3.dll") 
LoadPlugin("C:\Filters25\GripFit_YV12.dll") 
LoadPlugin("C:\Filters25\STMedianFilter.dll") 
LoadPlugin("C:\Filters25\asharp.dll") 
LoadPlugin("C:\Filters25\unfilter.dll") 
LoadPlugin("C:\Filters25\undot.dll") 
# 
#### 

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

## Main section and static filters ### 
# 
Mpeg2Source("Your_D2V_Source_Here") 
# 
undot() 
Limiter() 
asharp(2, 4) 
GripCrop(Your_GripCrop_Parameters_Here) 
GripSize(resizer="BicubicResize") 
STMedianFilter(8, 32, 0, 0 ) 
MergeChroma(blur(MaxTreshold)) 
MergeLuma(blur(0.2)) 
# 
# 

## 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: 

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

# 
# 
# 

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

# 
# 
## Functions ### 

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

# 
####
Now the only thing you need to do is use MovieStacker to open your .d2v file, and after you set your resolution, Overscan blocks, etc, you copy and paste the mpeg2source line, the gripcrop line and the letterbox line (if you need it) and paste the lines in your script in notepad. And save it. Now your .avs is ready

-kwag
Reply With Quote
  #3  
07-04-2003, 01:36 AM
Bud Bud is offline
Free Member
 
Join Date: Apr 2002
Location: Hawaii
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Bud
Kwag,

Many thanks...I will give this a try....all the reviews I have seen say the movie comes out great. Will let you know. thanks again.

Bud
Reply With Quote
  #4  
07-04-2003, 01:53 AM
Bud Bud is offline
Free Member
 
Join Date: Apr 2002
Location: Hawaii
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Bud
Kwag

Had one proble. Which Mpeg2dec should I use and where should I put it. I see there are about three different versions of this. Thank you

Bud
Reply With Quote
  #5  
07-04-2003, 02:02 AM
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
Use MPEG2DEC3.dll and it goes right at the top, just like in the script I posted

-kwag
Reply With Quote
  #6  
07-04-2003, 03:18 AM
Bud Bud is offline
Free Member
 
Join Date: Apr 2002
Location: Hawaii
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Bud
Kwag

Success...after I worked my through all the TMPGEnc errors on the filters, got all the required new filters. I got it to work. I have a HP P4 2.66Ghz 1GB Ram system now and here is the TOK log for my process. Looks great, thank you for your time.
Bud

================================================== ===========
ToK Log: C:\THEY\VIDEO_TS\They.avs
================================================== ===========

Resolution (fps):528x480 (23.976 fps)
Total Frames: 128964
Total Time : 01:29:39
-------------------------------------------------------------

Audio Size: 75,305,326
Required Video Size: 736,455,727

Factor: 59.940
Desired Sample Size: 12,286,548

-------------------------------------------------------------
New Faster Prediction
-------------------------------------------------------------

Full Sample
Next CQ: 70.000. Sample Size: 220,348
Small Sample
Next CQ: 70.000
Cancelling.... Sample Size: 20,919
Predicting...
Total Time (all operations): 00:00:20

Cancelled

Audio Size: 75,305,326
Required Video Size: 736,455,727

Factor: 59.940
Desired Sample Size: 12,286,548

-------------------------------------------------------------
New Faster Prediction
-------------------------------------------------------------

Full Sample
Next CQ: 70.000. Sample Size: 6,401,630
Small Sample
Next CQ: 70.000. Sample Size: 599,250
Predicting...
NextCQ: 134.350 >=90, so check is needed
Next CQ: 90.000
Sample Size: 12,417,805

Next CQ: 89.049. Sample Size: 12,402,443
Next CQ: 66.625. Sample Size: 6,283,244
Next CQ: 83.230. Sample Size: 11,847,486
Next CQ: 86.987. Sample Size: 12,371,837
Next CQ: 85.742. Sample Size: 12,354,253
Next CQ: 84.946. Sample Size: 12,344,051

Exit Condition: 0.500 % reached ! yahoo !
Tries : 7


Final CQ: 84.946
Total Time For Predicition: 00:04:59


-------------------------------------------------------------
Encoding C:\THEY\VIDEO_TS\They.avs
-------------------------------------------------------------

Encoding... CQ : 84.946
Final Encoded Size: 711,483,714
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: Next changes to optimal script. kwag Avisynth Scripting 21 06-27-2003 12:31 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 02:49 PM  —  vBulletin © Jelsoft Enterprises Ltd