SHARE
TWEET

Avisynth Script

TheSabin Jul 6th, 2017 (edited) 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Original Script by EvilAsh25
  2. LoadPlugin("%FolderWhereMPCIsInstalled%\LAVFilters\ColorMatrix.dll")
  3. LoadPlugin("%FolderWhereMPCIsInstalled%\LAVFilters\ChromaShift.dll")
  4. #
  5. function colorcorrection(clip c)
  6. {
  7. c
  8. ChromaShift(C=0, U=-2, V=-2, L=0)6
  9. ConvertToYV24()
  10. MergeLuma(Crop(0,0,width-1,height).AddBorders(0,0,1,0))
  11. # Convert back so we are working in the correct colorspace
  12. ConvertToYUY2(matrix="Rec.709")
  13. # Convert to the SD colorspace, the PEXHDCAP captures in the HD colorspace
  14. # ColorMatrix(mode="Rec.709->Rec.601")
  15. # Adjust Gamma to more closely match a CRT TV and clamp the color levels to what the PEXHDCAP captures (16-235)
  16. # Levels(0, 0.85, 255, 16, 235, coring=false)
  17. # Convert the Gamma from the TV spec to the PC spec
  18. # ColorYUV(levels="TV->PC")
  19. }
  20. # This function is for capturing 240p video
  21. # cx = cropping px from the left side
  22. # cy = cropping px from the top
  23. # cw = width of game, used for cropping right side
  24. # w = final width to size to
  25. # s = amount to sharpen the width
  26. ######################
  27. function capture(clip c, float cx, float cy, int cw, int w)
  28. {
  29. c
  30. # Separate Fields, this creates 60fps video with half height
  31. ComplementParity.SeparateFields()
  32. # Double the Height to get back to original
  33. PointResize(Width, Height*2)
  34. # Crop and resize
  35. PointResize(cw, 448 , cx, cy, cw, 448)
  36. # Set the width
  37. BicubicResize(w, Height)
  38. # These can be adjusted to your liking, look them up on the Avisynth Wiki
  39. Tweak(sat=1.00, bright=1, cont=1)
  40. Sharpen(0.2, .1)
  41. }
  42. #
  43. ######################
  44. # This is the main area where you adjust things.
  45. # Generally I copy/paste a new function then adjust cropping for that new game.
  46. # These functions assume the final game height is 448px.
  47. #####################
  48. #
  49. colorcorrection()
  50. capture(45, 14, 640, 586)
  51. #histogram()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top