Advertisement
Guest User

RemoveDirtMC

a guest
Aug 29th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function RemoveDirtMC(clip c, int "clmodeY", int "clmodeU")
  2. {
  3.   clmodeY = Default(clmodeY, 2)
  4.   clmodeU = Default(clmodeU, 4)
  5.   super_c = MSuper(c)
  6.   bw_vec3 = MAnalyse(super_c, delta=3, truemotion=false, isb=true)
  7.   bw_vec2 = MAnalyse(super_c, delta=2, truemotion=false, isb=true)
  8.   bw_vec1 = MAnalyse(super_c, delta=1, truemotion=false, isb=true)
  9.   fw_vec1 = MAnalyse(super_c, delta=1, truemotion=true, isb=false)
  10.   fw_vec2 = MAnalyse(super_c, delta=2, truemotion=true, isb=false)
  11.   fw_vec3 = MAnalyse(super_c, delta=3, truemotion=true, isb=false)
  12.   bw_clp3 = MFlow(c, super_c, bw_vec3)
  13.   bw_clp2 = MFlow(c, super_c, bw_vec2)
  14.   bw_clp1 = MFlow(c, super_c, bw_vec1)
  15.   fw_clp1 = MFlow(c, super_c, fw_vec1)
  16.   fw_clp2 = MFlow(c, super_c, fw_vec2)
  17.   fw_clp3 = MFlow(c, super_c, fw_vec3)
  18.   newclip = Interleave(bw_clp3, bw_clp2, bw_clp1, c, fw_clp1, fw_clp2, fw_clp3)
  19.   clensed = Clense(newclip, reduceflicker=true)
  20.   cleaned = RemoveGrain(newclip, clmodeY, clmodeU)
  21.   restore = RestoreMotionBlocks(clensed, newclip, alternative=cleaned, \
  22.                                 gmthreshold=70, dist=1, dmode=2,       \
  23.                                 noise=10, noisy=12)
  24.   return SelectEvery(restore, 7, 3)
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement