JKP123

Rear.Window.1954

Apr 15th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #importing the 1080p remux
  2. a=import("D:\Sync\1080premux.avs")
  3. FFVideoSource("D:\Sync\Rear.Window.1954.2160p.UHD.BluRay.Remux.HDR.HEVC.FLAC.2.0-PmP.mkv")
  4. #Tonemapping the UHD HDR source
  5. ConvertYUVtoLinearRGB(Color=0,OOTF=false,OutputMode=2).ConvertLinearRGBtoYUV(Color=0,HDRMode=1,HLGLw=500,HLGColor=2,OOTF=false).ConvertYUVtoXYZ(Color=1).ConvertXYZtoYUV(pColor=1)
  6. ConvertBits(16).ConvertToStacked().SmoothLevels16(gamma=1.05).ConvertFromStacked(16)
  7. b=last
  8. #Removing black borders
  9. b=b.crop(126,0,-126,0)
  10. a=a.crop(66,0,-66,0)
  11. #Dithering the tonemapped UHD source to 8 bits
  12. b=b.ConvertBits(bits=8,dither=1.0)
  13. #Resizing the UHD source to 1080p
  14. b=b.z_Spline36Resize(1788,1080,dither="error_diffusion")
  15. #Converting the UHD HEVC source to AVC by overlaying it over 1080p source
  16. c=Overlay(a,b,opacity=1.0,mode="blend")
  17. #Cropping 1 px dirty line on the left from 1080p source
  18. a=a.crop(2,0,0,0)
  19. #Overlaying 1080p source over the UHD source shifted by 1 px
  20. d=Overlay(c,a,x=1,opacity=1.0,mode="blend")
  21. d=d.FillBorders(1,0,1,0,mode=2) #Fill Margining borders
  22. #fixing chroma bleeding
  23. e=d.mergechroma(d.aWarpSharp(depth=10, thresh=0.75, blurlevel=3, cm=1))
  24. e=e.turnright()
  25. e=e.mergechroma(e.aWarpSharp(depth=5, thresh=0.75, blurlevel=2, cm=1))
  26. e=e.turnleft()
  27. #Debanding
  28. f=d.f3kdb()
  29. #combining the debanded scenes, Chroma bleeding fixed scenes with the rest of the video
  30. g=d.trim(0,27)+f.trim(28,730)+e.trim(731,2280)+d.trim(2281,d.FrameCount()-1)
  31. g
Advertisement
Add Comment
Please, Sign In to add comment