Log in

View Full Version : LSF vs. SeeSaw on Black & White film source


EuropeanMan
30th April 2007, 20:45
I have a question in regards to using either of those filters on 'SOFT' black & white movies. My mission here is to convert my DVD9 movie into a 1CD xVid rip with mp3 sound.

Sample from DVD9: http://maxupload.com/B00C835A

Script I am currently using to improve upon DVD9 source:


DGDecode_mpeg2source("C:\Users\Farooq Malik\Desktop\testing - KPP\KKP Sample.d2v")
LoadPlugin("c:\program files\avisynth 2.5\plugins\MaskTools.dll")Import("C:\Program Files\Avisynth 2.5\plugins\cdeblend.avs")

SetMemoryMax(1024)

a = AssumeTFF()

# TMCBob
f = a.TomsMoComp(-1,5,0)
e = a.DoubleWeave().SelectOdd().TomsMoComp(-1,5,0)
Interleave(f,e).AssumeFrameBased()

Cdeblend(omode=1)
SelectOdd()
tdecimate(mode=1, cycleR=1, cycle=6)
AssumeFPS(25)

Crop(8, 6, -16, -2)

#~ coloryuv(autogain=true,autowhite=true)

Lanczos4Resize(640,480)
#here I think Lanczos4Resize SHOULD be instead LanczosResize(640,480) - farooq

d=last
e=d.RemoveGrain(mode=17).RemoveGrain(mode=1)
SeeSaw(d, e, NRlimit=2, NRlimit2=1, Sstr=1.4, Slimit=7, Spower=2, Sdamplo=8, SdampHi=10, Szp=16, bias=1, sootheT=8)
#I tried using LimitedSharpenFaster, but SeeSaw works better on this source - farooq
MT("SPresso(limit=2, limitC=2, bias=76, biasC=76, RGmode=4, RGmodeC=4)", threads=2)

greyscale()
#~ tweak(bright=2.9,cont=1.25)
# my tweak settings were at 1.5 & 1.1 (and it looked better to ME) - farooq, do NOT know why scorpio put '#' before his line....
YlevelsS(0,1.7,255,0,255)
removedirt()


function RemoveDirt(clip input, bool "_grey", int "repmode")
{
_grey=default(_grey, false)
repmode=default(repmode, 16)
clmode=17
clensed=Clense(input, grey=_grey, cache=4)
sbegin = ForwardClense(input, grey=_grey, cache=-1)
send = BackwardClense(input, grey=_grey, cache=-1)
alt=Repair(SCSelect(input, sbegin, send, clensed, debug=true), input, mode=repmode, modeU = _grey ? -1 : repmode )
restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode)
corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false, noise=10, noisy=12, grey=_grey)
return RemoveGrain(corrected, mode=clmode, modeU = _grey ? -1 : clmode )
}

function YlevelsS(clip clp, int a, float gamma, int b, int c, int d)
{ wicked="x "+string(a)+" - "+string(b)+" "+string(a)+" - / 1 "+string(gamma)+" / ^ "+string(d)+" "+string(c)+" - * "+string(c)+" + x 162,97466 / sin 255 * * x 255 x 162,97466 / sin 255 * - * + 255 /"
return( clp.YV12LUT(Yexpr = wicked, U=2,V=2) )
}


OUTPUT sample in .avi: http://maxupload.com/6DE52542

-- -- -- -- -- --

I have spoken with a few people and they, like me, do NOT like SeeSaw. From our vantage point and knowledge (as it is, in our humble opinion), we think that SeeSaw should be used on already sharp images to enhance that. Whereas LSF should be used in cases like this.

IF you like, please download the dvd9 .vob sample and see what you can advise as to a better/faster methodology.

Another script that I was working on, but takes TOO BLOODY LONG...is this one...and I am sure it is quite bulky and overtaxing on the CPU, though I did like the results.


DGDecode_mpeg2source("C:\Users\Farooq Malik\Desktop\testing - KPP\KKP Sample.d2v")
LeakKernelBob(order=1,threshold=10)
RePal()
greyscale()
crop( 12, 10, -18, -4)
LanczosResize(640,480) # Lanczos (Sharp)
DeGrainMedian(limitY=5,limitUV=5,mode=3,interlaced =false)
DeGrainMedian(limitY=2,limitUV=3,mode=2,interlaced =false)
coloryuv(autogain=true,autowhite=true) # Only for B&W Movies
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
a=last.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
b = a.fft3dfilter(sigma=3,plane=4,bw=32,bh=32,bt=3,ow= 16,oh=16)
SeeSaw(a,b, NRlimit=5, NRlimit2=6,Sstr=1.5, Slimit=8, Spower=8, Szp=16,soothet=80)

EuropeanMan
4th May 2007, 14:28
NOT ONE PERSON CAN HELP HERE PLEASE?

Come on guys...