Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. Ep = "1"
  2. Pass = 3
  3.  
  4. AVCSource("00000.dga")
  5. AssumeTFF()
  6.  
  7. CleanClip = last
  8.  
  9. FrameCache(5)
  10. Destripe(360, 6, 4, 3).evenly720(2, 20)
  11. tfm(order=1,pp=4,clip2=nnedi3(field=1,nns=4, pscrn=false),ovr="ovr" + Ep + ".txt",display=false)
  12.  
  13. pass == 2 ? nnedi3_rpow2(rfactor=2, nsize=0, nns=4, pscrn=false, cshift="spline64resize").Spline64Resize(1920, 1080, 4, 4, -8, -4) : Spline64Resize(3840, 1440).Spline64Resize(1920, 1080, 4, 4, -8, -4)
  14.  
  15. FrameCache(10)
  16. RestoreTitle(last,CleanClip,0,104,50,0,0)
  17. RestoreTitle(last,CleanClip,120,224,144,0,0)
  18. RestoreTitle(last,CleanClip,240,344,265,0,0)
  19. RestoreTitle(last,CleanClip,360,465,386,0,0)
  20. RestoreTitle(last,CleanClip,480,584,495,220,680)
  21. RestoreTitle(last,CleanClip,595,700,620,0,0)
  22. RestoreTitle(last,CleanClip,716,821,794,0,0)
  23. RestoreTitle(last,CleanClip,936,1041,957,890,890)
  24. RestoreTitle(last,CleanClip,1056,1161,1082,630,480)
  25. RestoreTitle(last,CleanClip,1173,1259,1258,0,0)
  26. RestoreTitle(last,CleanClip,43757,44232,43764,0,0)
  27.  
  28. RestoreScroll(last,CleanClip,41659,43756,0,0)
  29.  
  30.  
  31. FrameCache(10)
  32. pass == 2 ? tdecimate(mode=5, batch=true, hybrid=2, vidDetect=2, expp=true, input="metric" + Ep + ".txt", mkvout="timecode" + Ep + ".txt").GradFun2DBmod(thr=1.15, str=0.6, strC=0.0, mode=3, temp=100) : last
  33. pass == 1 ? tdecimate(mode=4, output="metric" + Ep + ".txt") : last
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. function RestoreTitle(clip CDestripe, clip CClean, int StartFrame, int EndFrame, int MaskFrame, int ox, int oy)
  41. {
  42. ox = Default(ox, 0)
  43. oy = Default(oy, 0)
  44.  
  45. Title= CClean.tfm(order=1,pp=0).Spline64Resize(3840, 1440).Spline64Resize(1920, 1080, 4, 4, -8, -4)
  46. Mask= Title.mt_edge("prewitt",240,255,y=3,u=1,v=1,offx=ox,offy=oy)
  47. Mask= mt_lutxy(Mask.mt_lut("0",y=3,u=1,v=1),Mask,"y",y=3,u=1,v=1,offx=ox,offy=oy).Blur(1.5).mt_lut("x 150 < 0 x ?",y=3,u=1,v=1).mt_expand(y=3,u=1,v=1).mt_expand(y=3,u=1,v=1).mt_binarize(20,y=3,u=0,v=0).Blur(1.5).Trim(MaskFrame,MaskFrame)
  48.  
  49. StartFrame != 0 ? CDestripe.Trim(0, StartFrame - 1) + mt_merge(CDestripe,Title,Mask,luma=true).Trim(StartFrame, EndFrame) + CDestripe.Trim(EndFrame + 1, 0) : mt_merge(CDestripe,Title,Mask,luma=true).Trim(StartFrame, EndFrame) + CDestripe.Trim(EndFrame + 1, 0)
  50. }
  51.  
  52. function RestoreScroll(clip CDestripe, clip CClean, int StartFrame, int EndFrame, int ox, int oy)
  53. {
  54. ox = Default(ox, 0)
  55. oy = Default(oy, 0)
  56.  
  57. Title= CClean.nnedi3(field=1,nns=4, pscrn=false).Spline64Resize(3840, 1440).Spline64Resize(1920, 1080, 4, 4, -8, -4)
  58. Mask= Title.mt_edge("prewitt",240,255,y=3,u=1,v=1,offx=ox,offy=oy)
  59. Mask= mt_lutxy(Mask.mt_lut("0",y=3,u=1,v=1),Mask,"y",y=3,u=1,v=1,offx=ox,offy=oy).Blur(1.5).mt_lut("x 150 < 0 x ?",y=3,u=1,v=1).mt_expand(y=3,u=1,v=1).mt_expand(y=3,u=1,v=1).mt_binarize(20,y=3,u=0,v=0).Blur(1.5)
  60.  
  61. StartFrame != 0 ? CDestripe.Trim(0, StartFrame - 1) + mt_merge(CDestripe,Title,Mask,luma=true).Trim(StartFrame, EndFrame) + CDestripe.Trim(EndFrame + 1, 0) : mt_merge(CDestripe,Title,Mask,luma=true).Trim(StartFrame, EndFrame) + CDestripe.Trim(EndFrame + 1, 0)
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement