meowmoriaoi

N40

Jun 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import vapoursynth as vs
  2. from vapoursynth import core
  3. import fvsfunc as fvf
  4. from naotools.naohelper import getar, geth
  5.  
  6. def geth2(w, h, target_w):
  7. arx, ary = getar(w, h)
  8. return geth(target_w, arx/ary)[1]
  9.  
  10. v = core.avisource.AVISource('spiderverse_PremiereProFrameserver.avi').std.AssumeFPS(fpsnum=24000, fpsden=1001)
  11. v = core.resize.Bicubic(v, format=vs.YUV420P16, matrix_s='709')
  12. v = v.std.Crop(0, 0, 276, 276)
  13.  
  14. v = core.resize.Spline36(v, 1920, geth2(v.width, v.height, 1920))
  15. v = core.f3kdb.Deband(v, 12, 45, 30, 30, 15, 0, output_depth=16)
  16. v = fvf.Depth(v, 10)
  17.  
  18. v.set_output()
Advertisement
Add Comment
Please, Sign In to add comment