Guest User

DBZ Special TV2 Bluray

a guest
Apr 13th, 2022
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.22 KB | None | 0 0
  1. from vapoursynth import core
  2. import vapoursynth as vs
  3. from vscomparevideos import comparevideos
  4. core = vs.core
  5.  
  6. #Filenames in root path
  7. pathfile1 = r"Dragon Ball Z - TV Special 2 [1080p] [x264] [GYAO].ts"
  8. pathfile2 = r"00006.m2ts"
  9.  
  10. #Loading file using LSmash
  11. video1 = core.lsmas.LWLibavSource(pathfile1).std.AssumeFPS(fpsnum=30000,fpsden=1000)
  12. video2 = core.lsmas.LWLibavSource(pathfile2).std.AssumeFPS(fpsnum=24000,fpsden=1001)
  13.  
  14. #change matrix
  15. video1 = core.fmtc.resample(clip = video1, css="444")
  16. video1 = core.fmtc.matrix(clip = video1, mats = "709", matd = "601", bits = 16)
  17. video1 = core.fmtc.resample(clip = video1, css="420")
  18. video1 = core.fmtc.bitdepth(clip = video1, bits = 8)#, fulls=True, fulld=False)
  19.  
  20. #video1 = core.fmtc.resample(clip = video1, css="444")
  21. #video1 = core.fmtc.matrix(clip = video1, mat="709", col_fam=vs.RGB)
  22. #video1 = core.fmtc.bitdepth(clip = video1, bits = 8)#, fulls=False, fulld=True)
  23.  
  24.  
  25. #IVTC/Deinterlace
  26. video1 = core.tivtc.TDecimate(video1,mode=7,rate=23.976,dupThresh=0.9, display=False,maxndl=5)
  27. video1 = core.grain.Add(video1,var=6.9, uvar=0.0, constant=True)
  28.  
  29. #Force fps
  30. video1 = video1.std.AssumeFPS(fpsnum=24000,fpsden=1001)
  31. video2 = video2.std.AssumeFPS(fpsnum=24000,fpsden=1001) #video2[0]*47+  video2[0]*24+
  32.  
  33. #Crooping
  34. video1 = video1.std.Crop(left=240,right=240)
  35. video2 = video2.std.Crop(left=240,right=240)
  36.  
  37. #Metrics adjustment
  38. last_frame_v2=video2.num_frames+1
  39.  
  40. #Initial crop for webdl
  41. video1 = video1[360:]
  42.  
  43. #Eyecatchs
  44. eyecatch1 = video1[17400:17699]
  45. eyecatch2 = video1[33240:33540]
  46. eyecatch3 = video1[49440:49739]
  47.  
  48. video2 = video1[0:67] + video2
  49. video2 = video2[0:2760] + video1[2760:2766] + video2[2760:]
  50. video2 = video2[0:17400] + eyecatch1 + video2[17400]*7 +video2[17400:]
  51. video2 = video2[0:33240] + eyecatch2 + video1[33540:33546]+ video2[33240:]
  52. video2 = video2[0:49440] + eyecatch3 + video2[49440]*4 + video2[49440:]
  53. video2 = video2[0:66676] + video2[66675] + video2[66676:69119]
  54.  
  55. subtitles = False
  56.  
  57. if subtitles:
  58.     video1= core.sub.Subtitle(video1,"WEBDL")
  59.     video2= core.sub.Subtitle(video2,"BD")
  60.  
  61. stack = False
  62.  
  63. if stack:
  64.     video = core.std.StackHorizontal([video1, video2])
  65.  
  66.     video.set_output()
  67.    
  68.     exit()
  69.  
  70. video2.set_output()
Advertisement
Add Comment
Please, Sign In to add comment