Advertisement
mawen1250

Simple Upscale

Oct 20th, 2012
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FFVideoSource("D:\Games\KEY\Little Buster! EX\MOV\op00.mpg")
  2.  
  3. src      = last
  4. src16    = last.Dither_convert_8_to_16()
  5.  
  6. edge     = src.nnedi3_rpow2(rfactor=2, nsize=0, nns=4, qual=2).Dither_convert_8_to_16().Dither_resize16(1440, 1080, -0.5, -0.5, kernel="Spline64")
  7.  
  8. flatlu   = src16.Dither_resize16(1440, 1080, kernel="Spline64", Y=3, U=1, V=1)
  9. flatch   = src16.Dither_resize16(1440, 1080, kernel="Bicubic", a1=0.5, a2=0.5, Y=1, U=3, V=3)
  10. flat     = flatlu.MergeChroma(flatch)
  11. db       = flat.f3kdb(16, 44, 36, 36, 0, 0, input_mode=1, output_mode=1)
  12. dbl      = db.Dither_limit_dif16(flat, thr=0.25, Y=3, U=3, V=3)
  13.  
  14. prewittm = edge.DitherPost(mode=0).mt_edge("prewitt", 18, 255, 10, 255, Y=3, V=3, U=3)
  15. emask    = mt_hysteresis(prewittm.RemoveGrain(4, 4), prewittm, U=3, V=3).RemoveGrain(22, 22).RemoveGrain(11, 11).RemoveGrain(20, 0)
  16.  
  17. Dither_merge16_8(dbl, edge, emask, luma=false, Y=3, U=3, V=3)
  18.  
  19. Down10(stack=false, dither=-2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement