Advertisement
EvilAsh25

avisynth script

Dec 13th, 2016
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LoadPlugin("C:\avisynth\ColorMatrix.dll")
  2. LoadPlugin("C:\avisynth\ChromaShift.dll")
  3.  
  4. function colorcorrection(clip c)
  5. {
  6. c
  7. ChromaShift(U=-2)
  8. ConvertToYV24()
  9. MergeLuma(Crop(1,0,width-1,height).AddBorders(0,0,1,0))
  10. ConvertToYUY2(matrix="Rec.709")
  11. ColorMatrix(mode="Rec.709->Rec.601")
  12. Levels(0, 0.85, 255, 16, 235, coring=false)
  13. ColorYUV(levels="TV->PC")
  14. }
  15.  
  16. function captureNEW(clip c, float cx, float cy, float cw, int w, float s)
  17. {
  18. c
  19. Tweak(sat=1.05)
  20. ConvertToYV24()
  21. BicubicResize(512, 224, -0.6, 0.6, cx, cy, cw, 224)
  22. Sharpen(s, 0.1)
  23. BicubicResize(w, Height)
  24. ConvertToYUY2()
  25. PointResize(Width, Height*2)
  26. }
  27.  
  28. colorcorrection()
  29. captureNEW(38, 7, 644, 586, 0.2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement