Jump to content
  • Sign Up
Ravarage

dealing with very bad DVD and no better source is available

Recommended Posts

Ravarage

one of the anime that I love is NANA (2006),  only R2J DVD is available, those DVD suffer a lot of banding, dot noise, I used vapoursynth to fix interlace,and balance between banding and dithering

any suggestion for better encode or this ok

 

import vapoursynth as vs
import sys
import importlib
import functools
core = vs.get_core()
sys.path.append(r"C:\vs\VapourSynth64Portable\Scripts")
ASTDR = importlib.machinery.SourceFileLoader("ASTDR", r"C:\vs\VapourSynth64Portable\Scripts\ASTDR.py").load_module()
havsfunc = importlib.machinery.SourceFileLoader("havsfunc", r"C:\vs\VapourSynth64Portable\Scripts\havsfunc.py").load_module()
G41Fun = importlib.machinery.SourceFileLoader("havsfunc", r"C:\vs\VapourSynth64Portable\Scripts\G41Fun.py").load_module()
NRDB = importlib.machinery.SourceFileLoader("havsfunc", r"C:\vs\VapourSynth64Portable\Scripts\NRDB.py").load_module()
import mvsfunc as mvf
clip = core.ffms2.Source(r"F:\0\15short/13-002.mkv",fpsnum=30000, fpsden=1001)
clip = havsfunc.QTGMC(clip, Preset='Very Slow', SourceMatch=3, TR2=1,Rep2=1, Lossless=2, TFF=True,FPSDivisor=2,NoiseProcess=1, NoiseRestore=0.0, Denoiser="dfttest", DenoiseMC=True, NoiseTR=2, Sigma=4.0  )
clip = core.placebo.Resample(clip,width=864,height=480, filter = "ewa_lanczos", sx = 0.0, sy = 0.0, antiring = 0.0, lut_entries = 64, cutoff = 0.001, sigmoidize = 1, linearize = 1, sigmoid_center = 0.75, sigmoid_slope = 6.5, trc = 1)
clip = G41Fun.SuperToon(clip)
clip = core.dfttest.DFTTest(clip ,  ftype=0,  sigma=8.0,  sigma2=8.0,  pmin=0.0,  pmax=500.0,  sbsize=16,  smode=1,  sosize=12,  tbsize=3,  tmode=0,  tosize=0,  swin=0,  twin=7,  sbeta=2.5,  tbeta=2.5,  zmean=True,  f0beta=1.0,  nlocation=None,  slocation=None,  ssx=None,  ssy=None,  sst=None,  ssystem=0,  planes=[0, 1, 2],  opt=0)
clip = NRDB.NRDB(clip, deband="", db_Y=64, db_Cb=0, db_Cr=0, grainY=0, grainC=0, dynamic_grain=False, keep_tv_range=False, nr="", planes=[0], sigma=4.0, sigma2=4.0)
super =  core.mv.Super(clip,pel=2, rfilter =4 )
bv1 = core.mv.Analyse(super, isb = True, delta = 1, overlap=4)
fv1 = core.mv.Analyse(super, isb = False, delta = 1, overlap=4)
bv2 = core.mv.Analyse(super, isb = True, delta = 2, overlap=4)
fv2 = core.mv.Analyse(super, isb = False, delta = 2, overlap=4)
bv3 = core.mv.Analyse(super, isb = True, delta = 3, overlap=4)
fv3 = core.mv.Analyse(super, isb = False, delta = 3, overlap=4)
clip =  core.mv.Degrain3(clip,super,bv1,fv1,bv2,fv2,bv3,fv3,thsad=400)
clip = havsfunc.HQDeringmod(clip, nrmode=2, darkthr=3.0)
clip = havsfunc.FastLineDarkenMOD(clip, strength=48, protection=5, luma_cap=191, threshold=4, thinning=0)
clip.set_output()

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...