View Full Version : Can someone please help to get this source looking better with avisynth.


killerteengohan
12th July 2015, 23:13
This source looks pretty bad or blurry for a DVD thats for sure.

Can anyone make a script suggestion or help me make this look better please?

Here are 2 sample videos.

https://mega.co.nz/#!V55gXCja!qpAWLQAeqVpdMoGSu4Cxm1lfKNdwOmqsM6YjDdIHl8I

https://mega.co.nz/#!wo4CUThQ!S1SmlNQwxQTYXYs8WM3mUtBW-Yi20BrNN0rkFo5AC8Q



The current script I am trying is this but its not doing as well as I had hoped.


LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\????\Desktop\Phantom 2040\Season 1\Disc 1\Episode 1\VTS_02_1.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\MeGui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
QTGMC(preset="fast")
srestore(25)
assumefps(24000,1001)
crop( 12, 4, -12, -4)
LanczosResize(640,480) # Lanczos (Sharp)
deen("c3d", 0, 3, 2)
maa()
aWarpSharp(depth=7.5, blurlevel=1)
LimitedSharpenFaster(ss_x=2.0, ss_y=2.0, strength=180, overshoot=0, undershoot=0, soft=0, edgemode=0)

Mounir
13th July 2015, 14:11
try something like this (for the blends i don't know):

MPEG2Source(VTS_03_13.demuxed.d2v", cpu=0,info=3)
SetMTMode(2,4)
c=last
#even fields
# Motion compensation on frames -2...+2
even = c.separatefields().SelectEven()
super_even=even.MSuper()
vf2 = super_even.MAnalyse (isb=false, delta=2, overlap=4)
vf1 = super_even.MAnalyse (isb=false, delta=1, overlap=4)
vb1 = super_even.MAnalyse (isb=true, delta=1, overlap=4)
vb2 = super_even.MAnalyse (isb=true, delta=2, overlap=4)
cf2 = MCompensate (even, super_even, vf2, thSAD=400)
cf1 = MCompensate (even, super_even, vf1, thSAD=400)
cb1 = MCompensate (even, super_even, vb1, thSAD=400)
cb2 = MCompensate (even, super_even, vb2, thSAD=400)
# dfttest on motion-compensated clip
Interleave (cf2, cf1, even, cb1, cb2)
#SetMTMode(2,4)
finesharp # mettre au début pour sharper les vrais détails
dfttest (sigma=8, sigma2=8, tbsize=3, lsb=true)
SelectEvery (5, 2)
# Gradient smoothing
presmooth = last
SmoothGrad (radius=10, thr=0.15)
SmoothGrad (radius=5, thr=0.25, ref=presmooth)
# Back to 8 bits, ordered dithering
DitherPost ()
filtered_even=last
#odd fields
# Motion compensation on frames -2...+2
odd = c.separatefields().SelectOdd()
super_odd=odd.MSuper()
vf2 = super_odd.MAnalyse (isb=false, delta=2, overlap=4)
vf1 = super_odd.MAnalyse (isb=false, delta=1, overlap=4)
vb1 = super_odd.MAnalyse (isb=true, delta=1, overlap=4)
vb2 = super_odd.MAnalyse (isb=true, delta=2, overlap=4)
cf2 = MCompensate (odd, super_odd, vf2, thSAD=400)
cf1 = MCompensate (odd, super_odd, vf1, thSAD=400)
cb1 = MCompensate (odd, super_odd, vb1, thSAD=400)
cb2 = MCompensate (odd, super_odd, vb2, thSAD=400)
# dfttest on motion-compensated clip
Interleave (cf2, cf1, odd, cb1, cb2)
#SetMTMode(2,4)
finesharp # mettre au début pour sharper les vrais détails
dfttest (sigma=8, sigma2=8, tbsize=3, lsb=true)
SelectEvery (5, 2)
# Gradient smoothing
presmooth = last
SmoothGrad (radius=10, thr=0.15)
SmoothGrad (radius=5, thr=0.25, ref=presmooth)
# Back to 8 bits, ordered dithering
DitherPost ()
filtered_odd=last
Interleave(filtered_even, filtered_odd)
weave()
###############
SetMTMode(2,4)
QTGMC( Preset="fast", edithreads=4, SourceMatch=3, Lossless=1, Sharpness=0.2, TR0=2,TR1=2,TR2=2,Rep0=1,Rep1=1,Rep2=1,SubPel=4,SubPelInterp=2,ChromaNoise=true,DenoiseMC=true,NoiseTR=2,truemotion=true,MatchEnhance=0.6)
SetMTMode(6,1)
assumefps(60000,1001)
srestore(24000.0/1001.0)
SetMTMode(2,4)
FastLineDarken()
aWarpSharp(depth=6,blurlevel=4,thresh=0.2,cm=1)
FastLineDarken()
aWarpSharp(depth=6,blurlevel=4,thresh=0.7,cm=1)