Quantcast Avisynth: Pretty Good Script? - digitalFAQ.com Forums [Archives]
  #1  
08-22-2003, 06:26 PM
Steel Steel is offline
Free Member
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
heres my script for dvd rips and whatnot. anyone that has ideas for how to get it better, please let me know. but remember i prefer quality over size.

Code:
LoadPlugin("C:\Filters25\MPEG2Dec3.dll") 
LoadPlugin("C:\Filters25\GripFit_YV12.dll") 
LoadPlugin("C:\Filters25\asharp.dll") 
LoadPlugin("C:\Filters25\unfilter.dll") 
LoadPlugin("C:\Filters25\undot.dll") 
LoadPlugin("C:\Filters25\VagueDenoiser.dll")
LoadPlugin("C:\Filters25\Deen.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\temporalCleaner.dll")
LoadPlugin("C:\Filters25\DCTFilter.dll")
LoadPlugin("C:\Filters25\decomb.dll")

MaxTreshold = 1.50 
nf =  0 # Current frame. 

Mpeg2Source("C:\Documents and Settings\owner\Desktop\File.d2v") 

undot() 
Telecide(guide=1)
deen()
asharp(0, 7) 
STMedianFilter(8,32,0,0)
GripCrop(528, 480, source_anamorphic = true, Dest_Anamorphic = false) 
GripSize(resizer="BicubicResize") 
MergeChroma(blur(1.58)) 
MergeLuma(blur(0.3)) 

SwitchThreshold = (Width<=528) ? 4 : (Width<=528) ? 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).VagueDenoiser(Threshold=1.5,method=1,nsteps=6,chroma=True,Filter=7)")



GripBorders()
DCTFilter(1, 1, 1, 1, 1, 1, 0.5, 0)


function fmin( int f1, int f2) { 
  return ( f1<f2 ) ? f1 : f2 
}
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  
08-22-2003, 06:38 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
very best scripts used in kvcd forum:
http://www.kvcd.net/forum/viewtopic.php?t=3483

remember,if you don't have problems with final size,
use 704x480 and encode for 2 or 3 cds...the result will be fantastic
....but the size too big!
Reply With Quote
  #3  
08-22-2003, 06:46 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 script is basically what we suggested back in April: http://www.kvcd.net/forum/viewtopic.php?t=4817
It takes too long to encode, with barely any visual quality from the regular script. VagueDenoiser works better without all the overhead of the other filters, and that makes it faster too. This script will probably be useable in 2004 or 2005, with Pentiums running ~4Ghz, or if Vague is further optimized for today's CPUs
That's why Vague is not included in the optimal script

-kwag
Reply With Quote
  #4  
08-22-2003, 07:59 PM
Steel Steel is offline
Free Member
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
yeah i see what you mean kwag... takes bout an hour to predict, and 20 hours to encode my movie so i ditched that (for now ) bit im still wondering what you guys have to say about deen, the high luma blur, and dctfilter... i read in another post that those thing can really help.

Code:
LoadPlugin("C:\Filters25\MPEG2Dec3.dll") 
LoadPlugin("C:\Filters25\GripFit_YV12.dll") 
LoadPlugin("C:\Filters25\asharp.dll") 
LoadPlugin("C:\Filters25\unfilter.dll") 
LoadPlugin("C:\Filters25\undot.dll") 
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\temporalCleaner.dll")
LoadPlugin("C:\Filters25\DCTFilter.dll")
LoadPlugin("C:\Filters25\deen.dll")

MaxTreshold = 1.50 
nf =  0 # Current frame. 

Mpeg2Source("C:\Documents and Settings\owner\Desktop\SomeMovie.d2v") 

Deen()
undot() 
asharp(0, 7) 
STMedianFilter(8,32,0,0)
GripCrop(528, 480, source_anamorphic = true, Dest_Anamorphic = false) 
GripSize(resizer="BicubicResize") 
MergeChroma(blur(1.58)) 
MergeLuma(blur(0.3)) 

SwitchThreshold = (Width<=528) ? 4 : (Width<=528) ? 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()
DCTFilter(1, 1, 1, 1, 1, 1, 0.5, 0)


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

and i know i said i prefer quality, but i wouldnt want to go over 2 discs... just in case i were to share it with a friend over the net
Reply With Quote
  #5  
08-23-2003, 02:48 AM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
Hi steel,
Quote:
Originally Posted by steel
im still wondering what you guys have to say about deen, the high luma blur, and dctfilter... i read in another post that those thing can really help.
The MA Script already have the high luma blur:
Code:
MaxTreshold = 1.50 
.
.
.
MergeChroma(blur(MaxTreshold))
If my memory is still good, the 1.58 values gave artifacts in some cases.

Quote:
Originally Posted by steel
and i know i said i prefer quality, but i wouldnt want to go over 2 discs... just in case i were to share it with a friend over the net
I'm just encoding Harry Potter and the chamber of secrets (2h30), at 704x576, and it fits in 2 CD, en dual, with CQ 71. Let's see the result in a few hours, but with MA script, it lasts 8 hours, and I'm sure the quality will be like a DVD!

Fabrice
Reply With Quote
  #6  
08-23-2003, 12:14 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 fabrice
The MA Script already have the high luma blur:
Code:
MaxTreshold = 1.50 
.
.
.
MergeChroma(blur(MaxTreshold))
Fabrice, this the Chroma blur, not luma. Luma is the line just after

@Steel : you blur a lot too much ! For sure it helps for shrinking the file size, but your movie will be unwatchable !
Reply With Quote
  #7  
08-23-2003, 02:10 PM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by dialhot
Fabrice, this the Chroma blur, not luma. Luma is the line just after
I know I should read more carefully!

For mi 0.3 is not a heavy blur!

I tried using this blur value in my last DVDRip, to get a higher CQ value, but I was visible on the TV (or I have to clean my glasses! )

I finally let 0.1, and increase the overscan value...


Fabrice
Reply With Quote
  #8  
08-23-2003, 03:01 PM
Steel Steel is offline
Free Member
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
i used .3 on a dvdrip, and it was very watchable... ill probly lower it down to .2 though
Reply With Quote
  #9  
08-23-2003, 03:41 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
Please read the disclaimer at the top of the forum
Quote:
Originally Posted by Steel
just in case i were to share it with a friend over the net
-kwag
Reply With Quote
  #10  
08-23-2003, 05:34 PM
Steel Steel is offline
Free Member
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
im just talking in theory... of course id never do it... so what do you guys think of deen? the end product seemed about the same with and without it, but then again i was doing a film thats over 2 hours, and i had to put it on 2 cd's
Reply With Quote
  #11  
08-23-2003, 05:40 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 Steel
im just talking in theory... of course id never do it... so what do you guys think of deen? the end product seemed about the same with and without it, but then again i was doing a film thats over 2 hours, and i had to put it on 2 cd's
Deen is good used alone. But there, I didn't test, but I think is too much. I'm surprised that you can watch movie produced by your script. Into my eyes, that should seem like seen throught londonian fog
Reply With Quote
  #12  
08-23-2003, 05:57 PM
Steel Steel is offline
Free Member
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
i actually didnt use deen in the one i just did, so that may be why...
Reply With Quote
  #13  
08-24-2003, 01:05 AM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I think Dialhot was speaking about blur(0.3). You actually don't see the fog, because you only watch this movie, but watch it after a DVD, and you'll see exactly what Dialhot say: Londonian fog!

And you don't have to put it on 2 CD: I just encode the 2h40 movie at 352x288, with a 73,77 CQ, min 300, and max 2000. Have to see if it's watchable! Just try it!

Fabrice
Reply With Quote
  #14  
08-24-2003, 04:08 PM
Steel Steel is offline
Free Member
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
will do fabrice thanks for the help guys
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: A good script for captures? the viking Avisynth Scripting 52 10-25-2004 02:40 PM
Is this a good Avisynth script for compression? Quality? Luciano Cabrera Avisynth Scripting 3 03-31-2004 04:53 PM
Avisynth: KVCDx3 video looks pretty bad fragmaster170 Avisynth Scripting 3 03-27-2004 12:24 PM
Avisynth: Good script for standard vcd? raphaelf Avisynth Scripting 3 09-14-2003 10:01 PM
good avs script for processing a tv capture? nicksteel Video Capturing / Recording 3 04-02-2003 11:52 AM

Thread Tools



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