Guest User

Luma-mask

a guest
Sep 28th, 2011
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ffmpegsource2("filtrado_lossless.mkv")
  2.  
  3. #SMDegrain(tr=3,thsad=160,blksize=8,overlap=2)
  4.  
  5. Spline36Resize(1280,688) # encode mais rápido
  6.  
  7. source=last
  8.  
  9. bright = source.dfttest(sigma = 3, tbsize=3)
  10. medium = source.dfttest(sigma = 1, tbsize=3)
  11. dark   = source.dfttest(sigma = 0.5, tbsize=3)
  12.  
  13. th_low  = 20
  14. th_med  = 50
  15. th_high = 100
  16.  
  17. mmask = medium.levels(th_med, 1.0, th_high, 255, 0, false)
  18. dmask = medium.levels(th_low, 1.0, th_med,  255, 0, false)
  19.  
  20. bright.mt_merge(medium, mmask, U=3, V=3, luma=true)
  21.  \  .mt_merge(dark, dmask, U=3, V=3, luma=true)
  22.  
  23. SelectRangeEvery(2000,100) # encode mais rápido
  24.  
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment