Advertisement
mawen1250

Simple Denoise AVS Script

Jun 20th, 2012
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MP_Pipeline("""
  2.  
  3. ### platform: win32
  4.  
  5. XXXSource("xxx.xxx")
  6.  
  7. ### prefetch: 32, 16
  8. ### ###
  9.  
  10. ### platform: win32
  11.  
  12. SetMemoryMax(1536)
  13.  
  14. #是否对chroma降噪
  15. chroma = false
  16.  
  17. src = last
  18. nr  = src.MCTD(settings="low", chroma=chroma, radius=2, sigma=4, limit=-1, limit2=0, twopass=false, useTTmpSm=true, GPU=true, fixband=true, pp=true, useMMask=true, protect=true, deblock=false, useQED=true, sharp=false, stabilize=false, enhance=false)
  19.  
  20. nr.Repair(src, 3, chroma ? 3 : 0)
  21.  
  22. ### export clip: src
  23. ### prefetch: 16, 0
  24. ### ###
  25.  
  26. SetMemoryMax(768)
  27.  
  28. #是否对chroma做deband
  29. chroma = true
  30.  
  31. MCTD_PP(source=src, settings="low", chroma=chroma, useMMask=false, AA=false, edgeclean=false, sharp=true, ssource=true, strength=200, Tlimit=false, enhance=true,
  32. \dbF="f3kdb(range=16, Y=48, Cb=chroma?48:0, Cr=chroma?48:0, grainY=0, grainC=0, input_mode=0, output_mode=1).Dither_limit_dif16(TTc.U16, thr=0.30, elast=3.0, Y=3, U=chroma?3:1, V=chroma?3:1)")
  33.  
  34. #设置输出位深
  35. output_depth = 10
  36.  
  37. output_depth == 8 ? DitherPost(mode=6) : Down10(output_depth, stack=false)
  38.  
  39. """)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement