Advertisement
tophf

PPD

Jul 3rd, 2011
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global DEBUG=!true
  2. import("!PPDlib.avs")
  3. DGDecode_mpeg2source("dvd5.d2v",info=3).trim(0,42857)
  4. ReplaceFramesSimple(overlay(freezeframe(0,frameCount,12712).crop(0,0,0,88),0,0,blankClip(last,color_yuv=$FF8080).mt_lut(y=0,u=-128,v=-128,offX=94,offY=40,w=458,h=38).crop(0,0,0,88)),mappings="[12690 14075]")
  5. ReplaceFramesSimple(overlay(freezeframe(0,frameCount,14082).crop(144,0,0,72),144,0,blankClip(last,color_yuv=$FF8080).mt_lut(y=0,u=-128,v=-128,offX=208,offY=32,w=386,h=30).crop(144,0,0,72)),mappings="[14076 15366]")
  6. ReplaceFramesSimple(overlay(freezeframe(0,frameCount,14082).crop(144,400,0,0),144,400,blankClip(last,color_yuv=$FF8080).mt_lut(y=0,u=-128,v=-128,offX=176,offY=418,w=462,h=38).crop(144,400,0,0)),mappings="[14076 15366]")
  7. v0=last
  8.  
  9. tfm(ovr="17.tfm",cthresh=2,mi=100,pp=4,display=!true,clip2=QTGMC(preset=DEBUG ? "super fast" : "medium",sourcematch=DEBUG ? 0 : 3,fpsdivisor=2).colorstripe())
  10.  
  11. fix()
  12. v0fix=v0.fix()
  13.  
  14. tdecimate()\
  15.         .ReplaceFramesSimple(stackvertical(v0fix.crop(0,0,0,80).tfm().tdecimate(),stackhorizontal(v0fix.crop(0,80,592,0).tfm().tdecimate(),v0fix.crop(592,80,0,0).tfm().tdecimate())),mappings="[10152 11259]")\
  16.         .ReplaceFramesSimple(\
  17.             stackhorizontal(\
  18.                 v0fix.crop(0,0,144,0).tfm().tdecimate().dehalo_alpha_mt(2,2,0.1,1,50,100).yahrmask(),\
  19.                 stackvertical(\
  20.                     v0fix.crop(144,0,0,80).tfm().tdecimate(),\
  21.                     stackhorizontal(\
  22.                         v0fix.crop(144,80,480,320).tfm().tdecimate(),\
  23.                         v0fix.crop(624,80,0,320).tfm().tdecimate()\
  24.                     ),\
  25.                     v0fix.crop(144,400,0,0).tfm().tdecimate()\
  26.                 )\
  27.             ),\
  28.         mappings="[11261 12292]")
  29. DEBUG ? assumefps(6).histogram() : filter1("[720 2878] [13510 13520]")
  30.  
  31. function fix(clip c)
  32. {
  33.     c
  34.     ReplaceFramesSimple(daa().repair(last),mappings="[6243 6286] [7491 7521] [33773 33788] [35427 35442]")
  35.     ReplaceFramesSimple(cleanshit(),mappings=" [2368 2382] [2413 2536] [2612 2734]")
  36.     ReplaceFramesSimple(ytouv(utoy.spline64resize(width/3,height/3).maa.spline64resize(width/2,height/2),vtoy.spline64resize(width/3,height/3).maa.spline64resize(width/2,height/2),last),mappings="[3207 3245]")
  37.     freezeStillAreas(8097,true)
  38.     freezeStillAreas(8102)
  39.     freezeStillAreas(8122,true)
  40.     freezeStillAreas(8204)
  41.     freezeStillAreas(8209)
  42.     freezeOvr(8210,8211,0,0, 8,2,-8,0, zoom=0.996)
  43.     ReplaceFramesSimple(daarect(0,190,200,90).repair(last),mappings="8212")
  44.     ReplaceFramesSimple(daarect(0,0,80,0).repair(last),mappings="8222")
  45.     freezeOvr(12690,12691, 0,0, 0,104,0,230, fade=4)
  46.     freezeOvr(22472,22473, 0,1)
  47.     frametint(33774,33780,0.999,0.52,33800)
  48.     freezeframe(33781,33783,33784)
  49.     ReplaceFramesSimple(animate(33781,33783,"levels",0,1,255,0,245,false, 0,1,255,0,252,false),mappings="[33781 33783]")
  50.     remapframes(mappings="
  51.         2367 2366
  52.         22472 22473
  53.         28420 28419
  54.         32758 32759
  55.         36511 36512")
  56.     t_chibifix(5027,400,0,0,0,"[5027 5201]")
  57.     t_chibifix(5363,0,0,0,0,"[5363 5577]",baseframeclip=stackhorizontal(freezeframe(0,framecount,5363).crop(0,0,600,0),freezeframe(0,framecount,5577).crop(600,0,0,0)))
  58.     t_chibifix(7155,0,0,240,0,"[7155 7213]")
  59.     ReplaceFramesSimple(mt_merge(vCMAA,t_ellipse(40,0,110,216).t_ellipse(396,0,120,216,false).t_ellipse(592,32,120,200,false).t_ellipse(32,280,150,216,false).t_ellipse(532,280,120,216,false),true),mappings="[7691 7806]")
  60.     t_chibifix(12190,480,0,0,0,"[12190 12369]")
  61.     ReplaceFramesSimple(mt_merge(vCMAA,animate(15619,15626,"t_ellipse",700,200,110,300, 408,200,200,300),true),mappings="[15619 15946]")
  62.     ReplaceFramesSimple(mt_merge(vCMAA,animate(15755,15760,"t_ellipse",-50,200,200,300, 90,188,200,300),true),mappings="[15755 15946]")
  63.     t_chibifix(16176,0,0,200,0,"[16176 16306]")
  64.     t_chibifix(16408,480,0,0,0,"[16408 16575]")
  65.     t_chibifix(16655,480,0,0,0,"[16655 16722]")
  66.     t_chibifix(17816,0,0,0,0,"[17816 17846]")
  67.     t_chibifix(17992,0,0,0,0,"[17992 18047]")
  68.     t_chibifix(18494,0,0,0,0,"[18494 18619]",baseframeclip=stackhorizontal(freezeframe(0,framecount,18538).crop(0,0,280,0).overlay(freezeframe(0,framecount,18538).crop(104,0,8,248).bicubicresize(176,248),104,0),freezeframe(0,framecount,18538).crop(280,0,0,0)))
  69.     t_chibifix(20315,0,0,0,220,"[20315 20382]")
  70.     t_chibifix(20315,0,0,0,220,"[20315 20569]")
  71.     t_chibifix(24948,500,0,0,0,"[24948 25052]")
  72.     t_chibifix(26495,520,0,0,0,"[26495 26629]")
  73.     t_chibifix(31126,0,0,0,0,"[31126 31260]")
  74.     ReplaceFramesSimple(mt_merge(vCMAA,t_ellipse(72,-20,164,280).t_ellipse(240,0,180,250,false).t_ellipse(420,150,170,330,false),true),mappings="[31404 32314]")
  75.     ReplaceFramesSimple(mt_merge(vCMAA,t_ellipse(190,150,200,330),true),mappings="[31404 31835]")
  76.     ReplaceFramesSimple(mt_merge(vCMAA,animate(31836,31847,"t_ellipse",180,150,220,400, 210,150,280,400),true),mappings="[31836 31861]")
  77.     ReplaceFramesSimple(mt_merge(vCMAA,animate(31862,31877,"t_ellipse",144,120,208,400, 100,120,240,400),true),mappings="[31862 31891]")
  78.     ReplaceFramesSimple(mt_merge(vCMAA,animate(31892,31907,"t_ellipse",180,140,220,400, 210,140,240,400),true),mappings="[31892 31921]")
  79.     ReplaceFramesSimple(mt_merge(vCMAA,animate(31922,31937,"t_ellipse",144,120,208,400, 100,120,240,400),true),mappings="[31922 31951]")
  80.     ReplaceFramesSimple(mt_merge(vCMAA,animate(31952,31967,"t_ellipse",180,140,220,400, 210,140,240,400),true),mappings="[31952 31981]")
  81.     ReplaceFramesSimple(mt_merge(vCMAA,animate(31982,31997,"t_ellipse",144,120,208,400, 100,120,240,400),true),mappings="[31982 32003]")
  82.     ReplaceFramesSimple(mt_merge(vCMAA,t_ellipse(24,220,140,280),true),mappings="[33312 33442]")
  83.     t_chibifix(31403,40,216,300,240,"[32004 32314]",ellipsemask=true)
  84.     t_chibifix(35615,0,0,0,0,"[35615 36156]")
  85.     ReplaceFramesSimple(animate(36156,36182,"t_chibifix",35615,0,30,0,0,"[36157 36182]", 35615,0,446,0,0,"[36157 36182]"),mappings="[36157 36182]")
  86.     ReplaceFramesSimple(mt_merge(vCMAA,animate(36209,36261,"t_ellipse",690,40,80,200, -40,40,80,200),true),mappings="[36209 36261]")
  87.     ReplaceFramesSimple(mt_merge(vCMAA,animate(36300,36366,"t_ellipse",-56,230,120,240, 686,230,120,240),true),mappings="[36300 36366]")
  88.     t_chibifix(36905,46,234,200,240,"[36905 37036]",ellipsemask=true)
  89.     t_chibifix(37069,500,0,0,0,"[37069 37261]")
  90.     t_chibifix(37504,0,0,0,0,"[37504 37705]")
  91.     t_chibifix(37904,480,120,240,400,"[37904 37979]",ellipsemask=true)
  92.     t_chibifix(38085,560,0,0,0,"[38085 38202]")
  93.     t_chibifix(38641,0,0,0,0,"[38641 38778]")
  94.     ReplaceFramesSimple(checkmate().repair(last),mappings="[33503 33772] [42408 42857] [3246 3356]")
  95.     t_freezeSCtonext("17sc30fps.txt")
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement