Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ep = "1"
- Pass = 3
- AVCSource("00000.dga")
- AssumeTFF()
- CleanClip = last
- FrameCache(5)
- Destripe(360, 6, 4, 3).evenly720(2, 20)
- tfm(order=1,pp=4,clip2=nnedi3(field=1,nns=4, pscrn=false),ovr="ovr" + Ep + ".txt",display=false)
- 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)
- FrameCache(10)
- RestoreTitle(last,CleanClip,0,104,50,0,0)
- RestoreTitle(last,CleanClip,120,224,144,0,0)
- RestoreTitle(last,CleanClip,240,344,265,0,0)
- RestoreTitle(last,CleanClip,360,465,386,0,0)
- RestoreTitle(last,CleanClip,480,584,495,220,680)
- RestoreTitle(last,CleanClip,595,700,620,0,0)
- RestoreTitle(last,CleanClip,716,821,794,0,0)
- RestoreTitle(last,CleanClip,936,1041,957,890,890)
- RestoreTitle(last,CleanClip,1056,1161,1082,630,480)
- RestoreTitle(last,CleanClip,1173,1259,1258,0,0)
- RestoreTitle(last,CleanClip,43757,44232,43764,0,0)
- RestoreScroll(last,CleanClip,41659,43756,0,0)
- FrameCache(10)
- 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
- pass == 1 ? tdecimate(mode=4, output="metric" + Ep + ".txt") : last
- function RestoreTitle(clip CDestripe, clip CClean, int StartFrame, int EndFrame, int MaskFrame, int ox, int oy)
- {
- ox = Default(ox, 0)
- oy = Default(oy, 0)
- Title= CClean.tfm(order=1,pp=0).Spline64Resize(3840, 1440).Spline64Resize(1920, 1080, 4, 4, -8, -4)
- Mask= Title.mt_edge("prewitt",240,255,y=3,u=1,v=1,offx=ox,offy=oy)
- 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)
- 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)
- }
- function RestoreScroll(clip CDestripe, clip CClean, int StartFrame, int EndFrame, int ox, int oy)
- {
- ox = Default(ox, 0)
- oy = Default(oy, 0)
- Title= CClean.nnedi3(field=1,nns=4, pscrn=false).Spline64Resize(3840, 1440).Spline64Resize(1920, 1080, 4, 4, -8, -4)
- Mask= Title.mt_edge("prewitt",240,255,y=3,u=1,v=1,offx=ox,offy=oy)
- 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)
- 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)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement