JKP123

test

Jun 28th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. import vapoursynth as vs
  2. import mvsfunc as mvf
  3. import awsmfunc as awf
  4. import vsutil
  5. import fvsfunc as fvf
  6. import vsTAAmbk as taa
  7. import hysteria as hys
  8. from lvsfunc import*
  9. from nnedi3_rpow2 import *
  10. core = vs.get_core()
  11.  
  12.  
  13. path=r'D:\Sync\Demon Slayer -Kimetsu no Yaiba- Mugen Train Movie v3 2020 1080p BluRay REMUX AVC AC3 5.1 Dual Audio -ZR-.mkv'
  14. src=core.ffms2.Source(path)
  15. credits=src[161091:168024]
  16. src=src[0:161091]
  17. #src=core.resize.Bicubic(clip=src, width=1920, height=1080, format=vs.RGB24, matrix_in_s="709")
  18. #basic=core.bm3d.Basic(input=src,profile="fast")
  19. #src=mvf.BM3D(src, sigma=1, radius1=1)
  20. #src=core.bm3d.Final(input=src,ref=basic)
  21. #src=fvf.Depth(src, 32)
  22. #planes=vsutil.split(src)
  23. #src=core.std.ShufflePlanes(clips=src, planes=0, colorfamily=vs.GRAY)
  24. #h = 855
  25. #w=vsutil.get_w(h)
  26. #b, c = 1/5, 2/5
  27. #descaled=core.descale.Debicubic(planes[0],w,h,b,c)
  28. #upscaled = nnedi3_rpow2(descaled, 2).resize.Spline36(1920, 1080)
  29. #planes=[upscaled,planes[1],planes[2]]
  30. #src=vsutil.join(planes)
  31. #src=vsutil.depth(src,16)
  32. #y=vsutil.get_y(src)
  33. #t=core.tcanny.TCanny(y,planes=0).std.Maximum()
  34. #smooth = core.bilateral.Bilateral(t, sigmaS=6.4, sigmaR=0.009)
  35. #noise = core.std.MakeDiff(t, smooth) # subtract filtered clip from source leaving the filtered difference
  36. #t=core.std.MakeDiff(t, noise) # subtract diff clip to prevent clipping (doesn't apply to 32 bit)
  37. #aa=taa.TAAmbk(src, aatype=-3, preaa=-1, strength=0, mtype=2, opencl=True)
  38. #src=core.std.MaskedMerge(src,aa,y)
  39. #src=hys.Hysteria(src)
  40. #maxvalue=(1 << vsutil.get_depth(y)) - 1
  41. #w = [5]*3 + [-3]*5
  42. #weights = [w[-i:] + w[:-i] for i in range(4)]
  43. #c = [core.std.Convolution(y, (w[:4]+[0]+w[4:]), saturate=False) for w in weights]
  44. #c=core.std.Expr(c, 'x y max z max a max')
  45. #t=core.std.Minimum(t,coordinates=[1, 0, 1, 0, 0, 1, 0, 1])
  46. #ret=core.retinex.MSRCP(y, sigma=[50, 200, 350], upper_thr=0.005)
  47. #sobelx=core.std.Convolution(y,[-5,-4,0,4,5,-8,-10,0,10,8,-10,-20,0,20,10,-8,-10,0,10,8,-5,-4,0,4,5])
  48. #sobely=core.std.Convolution(y,[-5,-8,-10,-8,-5,-4,-10,-20,-10,-4,0,0,0,0,0,4,10,20,10,4,5,8,10,8,5])
  49. #smask=core.std.Expr([sobelx,sobely],'x dup * y dup * + sqrt').std.Maximum().std.Maximum().std.Maximum().std.Inflate()
  50. #mask=core.std.Expr([c,t],f'x y + {maxvalue} min')
  51. #deband1=core.neo_f3kdb.Deband(src,range=20,y=64,cb=48,cr=48)
  52. #deband2=core.neo_f3kdb.Deband(src,range=18,y=48,cb=32,cr=32)
  53. #deband1=core.std.MaskedMerge(deband1,src,mask)
  54. #deband2=core.std.MaskedMerge(deband2,src,smask)
  55.  
  56. src=awf.FrameInfo(src,"Source").set_output()
Advertisement
Add Comment
Please, Sign In to add comment