Skip to content

Instantly share code, notes, and snippets.

@alemonmk
Last active September 5, 2016 06:38
Show Gist options
  • Select an option

  • Save alemonmk/a37fc11734a7179bca3b to your computer and use it in GitHub Desktop.

Select an option

Save alemonmk/a37fc11734a7179bca3b to your computer and use it in GitHub Desktop.
My VapourSynth filter combination
import vapoursynth as vs
import vsTAAmbk as taa
import havsfunc as hav
core = vs.get_core()
#vsrc = core.lsmas.LWLibavSource(srcpath)
vsrc = core.raws.Source(source=srcpath, width=1920, height=1080, fpsnum=24000, fpsden=1001, src_fmt='YUV420P8')
ubd = core.fmtc.bitdepth(clip=vsrc, bits=16)
aa = taa.TAAmbk(input=ubd, aatype=-3, sharp=-1, mtype=1, cycle=2, lsb=True)
gsmc = hav.GSMC(input=aa, p=hav.SMDegrain(input=aa, tr=3, RefineMotion=True, contrasharp=False, chroma=True), radius=2, adapt=8)
db = core.f3kdb.Deband(clip=gsmc, range=8, y=20, cb=10, cr=10, grainy=0, grainc=0, sample_mode=2, blur_first=True, dynamic_grain=True, dither_algo=3, keep_tv_range=True, output_depth=10)
db.set_output()
@alemonmk
Copy link
Author

Dumped LWLibavSource() because the libav decoder it used fucks up with some stream and rendered output useless.
Tuned down the processing to avoid causing too much loss in quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment