Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vapoursynth as vs
- from adptvgrnMod import *
- import awsmfunc as awf
- import havsfunc as haf
- import vsutil
- core = vs.get_core()
- video=core.lsmas.LWLibavSource(r'D:\Test\Cocolors 2017 1080p Blu-ray Remux AVC DTS-HD MA 5.1-E.N.D.mkv')
- video = core.std.CropRel(video, left=0, top=132, right=0, bottom=132)
- video2=video
- video = vsutil.depth(video, 16)
- video3=video
- mask = awf.bandmask(video3 , thr=120)
- deband = core.neo_f3kdb.Deband(video3, y=64, cb=0, cr=0, grainy=64, grainc=0, dynamic_grain=False, range=30, output_depth=16)
- src = core.std.MaskedMerge(video3, deband, mask)
- mask = core.std.Sobel(src, 0)
- luma = core.std.ShufflePlanes(mask, 0, colorfamily=vs.GRAY)
- mask_outer = vsutil.iterate(luma, core.std.Maximum, 2)
- mask_inner = vsutil.iterate(mask_outer, core.std.Minimum, 3)
- halos = core.std.Expr([mask_outer, mask_inner], 'x y -')
- dehalo = haf.DeHalo_alpha(src)
- src = core.std.MaskedMerge(src, dehalo, halos)
- src = vsutil.depth(src, 8, dither_type='error_diffusion')
- src.set_output()
Advertisement
Add Comment
Please, Sign In to add comment