Advertisement
Guest User

JIVTC

a guest
Oct 8th, 2017
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. import vapoursynth as vs
  2. core = vs.get_core()
  3. import fvsfunc as fvf
  4. ###Step1: Use d2vwitch for the ts and then load your source
  5. src1 = core.d2v.Source(r"C:\Users\eXmendiC\Desktop\Zero kara Hajimeru Mahou no Sho - 06 (MX).ts.d2v").resize.Bicubic(1920,1080)
  6. c0 = fvf.JIVTC(src1, 0, draft=False, thr=15)
  7. c1 = fvf.JIVTC(src1, 1, draft=False, thr=15)
  8. c2 = fvf.JIVTC(src1, 2, draft=False, thr=15)
  9. c3 = fvf.JIVTC(src1, 3, draft=False, thr=15)
  10. c4 = fvf.JIVTC(src1, 4, draft=False, thr=15)
  11. #last = cY.std.Trim(X,X)+cY.std.Trim(X,X)+cY.std.Trim(X,X)+cY.std.Trim(X,X)
  12. ##X = the trims and Y = pattern (0,1,2,3,4)
  13. ###Step 2: Determine the pattern for the four parts (Intro+OP,PartA,PartB+ED,Preview/Endcard)
  14. c0.set_output()
  15. ##Start with c0 and raise the number as long as you see no interlace anymore. Keep in mind that even c0 is a possible pattern.
  16. ##For making sure you still can try out the other patters (when you think c2 is right for example).
  17. ##Note down the frames when previewing the video with the pattern. It has to be 23.976fps and not 29.970fps.
  18. ##Example: last = c3.std.Trim(941,4633)+c3.std.Trim(6312,19811)+c3.std.Trim(21250,37865)+c3.std.Trim(39305,39542)
  19. ##If you finished that, comment the "cY.set_output()" line and uncomment the "last" line.
  20.  
  21. ###Step 3: Load the second source and uncomment the four lines beneath.
  22. ###Optional, only if you want to splice the TV audio into a web source.
  23. ##Change the trims in last= above to match them with the second source here.
  24. #src2 = core.lsmas.LWLibavSource(r"C:\Users\eXmendiC\Desktop\zero06lossless.mkv").resize.Bicubic(1920,1080)
  25. #fix = src2.std.Trim(24,34070) ##Optional if your source has more blackframes than the other source
  26. #output = core.std.StackHorizontal([last,fix]) ##Use src2 instead of fix if you have no trims
  27. #output.set_output()
  28.  
  29. ###Step 4: Copy your last= trims into the trimsJIVTC.avs
  30. ##You also have to remove the last and .std. and add a second +
  31. ##Example: c4.trim(732,4326)++c3.trim(6006,16985)++c0.trim(18426,39930)
  32. ##Tthe JIVTC trim only works with Avisynth (so you have to change the syntax).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement