View difference between Paste ID: jcfDpcdz and 7pjy7zNj
SHOW: | | - or go back to the newest paste.
1-
# ASTDR DeRainbow function v1.3
1+
# ASTDR DeRainbow function v1.4
2
 
3-
  function ASTDR(clip input, int "strength", float "blstr", int "tht")
3+
  function ASTDR(clip input, int "strength", int "tempsoftchr", float "blstr", int "tht")
4
  {
5-
  strn         = Default(strength, 5)
5+
  strn          = Default(strength, 5)
6
  blstr         = Default(blstr, 1)
7
  tht           = Default(tht, 255)
8
  tschrth       = Default(tempsoftchr, 255)
9
  
10
  momask    = input.tweak(sat=1.1).mt_motion(thc2=1,thc1=1,thy2=1,thy1=1,y=3,v=3,u=3,tht=tht)
11-
11+
12-
  filtered_uv = input.DeCross(ThresholdY=15, Noise=100, Margin=1).FluxSmoothST(75,75).awarpsharp2(depth=4,chroma=6).hqdn3d(cs=strn*3/5,ct=strn)
12+
13-
              \ .temporalsoften(2,5,15,3,2).aWarpSharp2(depth=-1,chroma=2).blur(blstr).aWarpSharp2(depth=4,chroma=6).fft3dfilter(sigma=1,sigma3=4,plane=3,degrid=1)
13+
  filtered_uv = input.DeCross(ThresholdY=15, Noise=100, Margin=1).FluxSmoothST(75,75).Mergeluma(input).awarpsharp2(depth=4,chroma=6).hqdn3d(ls=0,lt=0,cs=strn*3/5,ct=strn)
14
              \ .temporalsoften(10,0,tschrth,5,2).blur(blstr).Mergeluma(input).aWarpSharp2(depth=4,chroma=6).fft3dfilter(sigma=1,sigma3=4,plane=3,degrid=1)
15
 
16
  filtered = mt_merge(filtered_uv, input, momaskinv,y=2,u=3,v=3,luma=true)
17
  
18
  mt_merge(input, filtered, momask.mt_expand(mode="both", y=3,u=3,v=3).mt_inflate(y=3,u=3,v=3),y=2,u=3,v=3)
19
  }