digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Pretty Good Script? (http://www.digitalfaq.com/archives/avisynth/5156-avisynth-pretty-good.html)

Steel 08-22-2003 06:26 PM

Pretty Good Script?
 
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
}


jorel 08-22-2003 06:38 PM

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!
:wink:

kwag 08-22-2003 06:46 PM

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 :D
That's why Vague is not included in the optimal script :!:

-kwag

Steel 08-22-2003 07:59 PM

yeah i see what you mean kwag... takes bout an hour to predict, and 20 hours to encode my movie :D so i ditched that (for now :wink: ) 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 8) :wink:

fabrice 08-23-2003 02:48 AM

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

Dialhot 08-23-2003 12:14 PM

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 !

fabrice 08-23-2003 02:10 PM

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! :BangHead: :Drunk:

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

Steel 08-23-2003 03:01 PM

i used .3 on a dvdrip, and it was very watchable... ill probly lower it down to .2 though :oops: :?

kwag 08-23-2003 03:41 PM

:arrow: 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 8) :wink:

-kwag

Steel 08-23-2003 05:34 PM

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

Dialhot 08-23-2003 05:40 PM

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

Steel 08-23-2003 05:57 PM

i actually didnt use deen in the one i just did, so that may be why...

fabrice 08-24-2003 01:05 AM

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! :lol:

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

Steel 08-24-2003 04:08 PM

will do fabrice :!: :!: thanks for the help guys :D


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

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