JKP123

Cocolors .2017.QOS

Apr 21st, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. import vapoursynth as vs
  2. from adptvgrnMod import *
  3. import awsmfunc as awf
  4. import havsfunc as haf
  5. import vsutil
  6.  
  7.  
  8. core = vs.get_core()
  9.  
  10. video=core.lsmas.LWLibavSource(r'D:\Test\Cocolors 2017 1080p Blu-ray Remux AVC DTS-HD MA 5.1-E.N.D.mkv')
  11. video = core.std.CropRel(video, left=0, top=132, right=0, bottom=132)
  12. video2=video
  13. video = vsutil.depth(video, 16)
  14. video3=video
  15. mask = awf.bandmask(video3 , thr=120)
  16. deband = core.neo_f3kdb.Deband(video3, y=64, cb=0, cr=0, grainy=64, grainc=0, dynamic_grain=False, range=30, output_depth=16)
  17. src = core.std.MaskedMerge(video3, deband, mask)
  18. mask = core.std.Sobel(src, 0)
  19. luma = core.std.ShufflePlanes(mask, 0, colorfamily=vs.GRAY)
  20. mask_outer = vsutil.iterate(luma, core.std.Maximum, 2)
  21. mask_inner = vsutil.iterate(mask_outer, core.std.Minimum, 3)
  22. halos = core.std.Expr([mask_outer, mask_inner], 'x y -')
  23. dehalo = haf.DeHalo_alpha(src)
  24. src = core.std.MaskedMerge(src, dehalo, halos)
  25. src = vsutil.depth(src, 8, dither_type='error_diffusion')
  26. src.set_output()
  27.  
Advertisement
Add Comment
Please, Sign In to add comment