I have been working on a new avs 2.5 script, and I came to a conclusion on this one, its a little slower, but it actually compresses it a lot more. I encoded a source that is animation and a littlie noisy, the clip is 24 mins long. The new filtering I used was strong and not motion adaptive so Kwag please take a look at this, so you can make it more suitable for speed/quality. This it the old script with little optimization for being an animation.
Code:
MaxTreshold = 1.50
nf = 0
Mpeg2Source("I:\GOD1\VIDEO_TS\kenshin E1.d2v")
b = DGBob(FOrder(),mode=1,thresh=255)
SeparateFields()
SmartDecimate(bob=b,noise=0.80,tel=0.25)
FieldDeinterlace()
Undot()
Limiter()
Asharp(1,4)
BicubicResize(496, 320, 0, 0.6, 2, 9, 716, 462)
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.25))
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 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) ")
AddBorders(24, 80, 24, 80)
Limiter()
function FOrder(clip c) {
fo= GetParity(c)? 1:0
return fo
}
function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
It took 32:34 and was 202mbs and is the same CQ and quality level.
The one I created is a slower, simpler, but a lot more compressed.
Code:
MaxTreshold = 1.50
nf = 0
Mpeg2Source("I:\GOD1\VIDEO_TS\kenshin E1.d2v")
b = DGBob(FOrder(),mode=1,thresh=255)
SeparateFields()
SmartDecimate(bob=b,noise=0.80,tel=0.25)
FieldDeinterlace()
Limiter()
BicubicResize(496, 320, 0, 0.6, 2, 9, 716, 462)
VagueDenoiser(threshold=1.2,method=3,nsteps=6,chroma= true)
unfilter(-65,-65)
deen("a3d",3,13,20,5)
AddBorders(24, 80, 24, 80)
Limiter()
function FOrder(clip c) {
fo= GetParity(c)? 1:0
return fo
}
This clip took me 48:49 and was the size of 191mbs.
I need someone to take a look at these scripts cause I can't trust my eyes enough. Also beware of gripcrop, it will give you green/black lines in the outer boarder, because of VagueDenoiser.
P.S.I used a Athlon XP 2800+ processor
P.S.S.I most likely missed a lot of stuff I said and missed said a lot of stuff, but I wanted to give this script out so when I come back from school I maybe have some results