Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 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. Spline64Resize(1926,1084).Crop(2, 2, -4, -2)
  14. pass == 2 ? antialiasingSW(multipler=1.5,mY1=20,showmask=false) : last
  15.  
  16.  
  17. FrameCache(10)
  18. RestoreTitle(last,CleanClip,0,104,50,0,0)
  19. RestoreTitle(last,CleanClip,120,224,144,0,0)
  20. RestoreTitle(last,CleanClip,240,344,265,0,0)
  21. RestoreTitle(last,CleanClip,360,465,386,0,0)
  22. RestoreTitle(last,CleanClip,480,584,495,220,680)
  23. RestoreTitle(last,CleanClip,595,700,620,0,0)
  24. RestoreTitle(last,CleanClip,716,821,794,0,0)
  25. RestoreTitle(last,CleanClip,936,1041,957,890,890)
  26. RestoreTitle(last,CleanClip,1056,1161,1082,630,480)
  27. RestoreTitle(last,CleanClip,1173,1259,1258,0,0)
  28. RestoreTitle(last,CleanClip,43757,44232,43764,0,0)
  29.  
  30. RestoreScroll(last,CleanClip,41659,43756,0,0)
  31.  
  32. MYAppRange(41937,41985,"AddBorders(0, 8, 0, 0).eDeen().Crop(0, 8, 0, 0)")
  33.  
  34.  
  35. FrameCache(10)
  36. 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.8, strC=0.0, mode=3, temp=100) : last
  37. pass == 1 ? tdecimate(mode=4, output="metric" + Ep + ".txt") : last
  38.  
  39.  
  40.  
  41. function RestoreTitle(clip CDestripe, clip CClean, int StartFrame, int EndFrame, int MaskFrame, int ox, int oy)
  42. {
  43. ox = Default(ox, 0)
  44. oy = Default(oy, 0)
  45.  
  46. Title= CClean.tfm(order=1,pp=0).Spline64Resize(1926,1084).Crop(2, 2, -4, -2)
  47. Mask= Title.mt_edge("prewitt",240,255,y=3,u=1,v=1,offx=ox,offy=oy)
  48. 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)
  49.  
  50. 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)
  51. }
  52.  
  53. function RestoreScroll(clip CDestripe, clip CClean, int StartFrame, int EndFrame, int ox, int oy)
  54. {
  55. ox = Default(ox, 0)
  56. oy = Default(oy, 0)
  57.  
  58. Title= CClean.nnedi3(field=1,nns=4, pscrn=false).Spline64Resize(1926,1084).Crop(2, 2, -4, -2)
  59. Mask= Title.mt_edge("prewitt",240,255,y=3,u=1,v=1,offx=ox,offy=oy)
  60. 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)
  61.  
  62. 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)
  63. }
  64.  
  65. function MYAppRange(clip c, int start, int end, string thunk)
  66. {
  67. c
  68. filtered = Eval(thunk)
  69.  
  70. seg1 = c.Trim(0, start - 1)
  71. seg2 = filtered.Trim(start, end)
  72. seg3 =c.Trim(end + 1, 0)
  73.  
  74. seg1 + seg2 + seg3
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement