Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setmemorymax(1024)
- global DEBUG=!true
- DGDecode_mpeg2source("kenji.d2v",info=3)
- fix1()
- IVTC()
- fix2()
- fix3()
- tdecimate()
- crop(6,0,-10,0)
- #~ histogram().bilinearresize(1744,1116)
- DEBUG ? assumefps(6) : last
- function IVTC( clip c )
- {
- c
- vComb=CombMask(2,5).removegrain(4).binomialblur(2).mt_lut("256 x 8 << -").binomialblur(5)
- global vQ=QTGMC(DEBUG ? "super fast" : "medium",sourcematch=DEBUG ? 0 : 3,fpsdivisor=2,thSAD1=100,thSAD2=100)#.colorstripe()
- vTD=tdeint(tryWeave=true,AP=100,mthreshL=3).maa()
- v2=vQ.mt_merge(repair(vTD,vQ.asharp(),1),vComb,true)\
- .ReplaceFramesSimple(mt_merge(vTD,vComb.mt_invert(),true)/*.colorstripe($ff)*/,mappings="[84090 84104] [84262 84508] [90630 90671] [90699 90901] [94536 94795]")
- tfm(cthresh=1,mi=150,pp=4,clip2=v2,ovr="kenji.tfm",d2v="kenji.d2v",display=!true).trim(0,100987)
- }
- function fix1( clip c )
- {
- c
- crop(6,0,-10,0).addborders(6,0,10,0)
- t_checkmate(tfm(cthresh=1,mi=150,ovr="kenji.tfm",d2v="kenji.d2v"),mappings="[0 73382] [73387 76864] [76868 78264] [78267 79411] [79413 100987]")
- ReplaceFramesSimple(mergebycolor(checkmate(),$45655c,70),mappings="[7753 8899]")
- ReplaceFramesSimple(mergebycolor(checkmate(),$1b7ca1,70),mappings="[57672 58419]")
- ReplaceFramesSimple(checkmate().repair(last),mappings="[270 392] [532 690] [1190 1406] [1533 1666] [1667 1786] [1807 1830] [3167 3299] [4021 4177] [4464 4973] [7753 8899] [8900 8952] [9409 9782] [10493 11201] [11569 12001] [12524 12814] [13250 13443] [13777 13806] [17249 17428] [18199 18528] [23417 24008] [28048 28137] [28586 28704] [29693 30593] [31484 31586] [32096 32220] [33402 33593] [33594 33893] [34194 34673] [36091 36296] [36755 36819] [37000 37253] [37494 38156] [38502 38681] [38833 38864] [39194 39371] [39507 39716] [39963 40637] [40673 41535] [43738 44095] [44400 44768] [46464 46471] [47553 47848] [48851 49216] [49365 49390] [49956 50036] [50366 50383] [50484 50527] [50669 50808] [58327 58449] [69081 69808] [70574 70796] [71834 72013] [78087 78548] [78609 79253] [81454 82128] [82808 82943] [83064 83377] [83468 83939] [84090 84104] [84239 84277] [84458 84467] [84531 84537] [84792 84803] [84838 84915] [84946 84955] [84956 84980] [85005 85064] [85137 85158] [85207 86608] [89534 89663] [90418 90548] [90699 93359] [95081 95352] [96362 97146]")
- }
- function fix2( clip c )
- {
- c
- mt_merge(daa2(),mt_edge("sobel",2,3).blur(1.5).mt_invert()).repair(last)
- \ .ReplaceFramesSimple(last,mappings="[4232 4389] 10082 11345 [32040 32095] [39717 39837] [39963 40082] [40673 41535] [41538 41545] [41648 41822] 41879 41881 [42265 42966] [43083 43355] [43473 43737] [44935 45042] [45136 45299] [51455 51789] [54850 54938] [68862 68952] 82578 [82721 82737] [82774 82789] 83044 83050 83052 [84090 84104] [84455 84457] [84632 84647] [84957 84969] [87919 88023] [88516 88620] [95764 96040]")
- ReplaceFramesSimple(daa().repair(last),mappings="[32040 32095] [35776 36090] 41879 41881 [68862 68952] 82578 [82721 82737] [82774 82789] 83044 83050 83052 [84090 84104] [84455 84457] [84957 84969] [95764 96040]")
- ReplaceFramesSimple(mt_merge(daa(),mt_logic(mt_binarize(70).removegrain(4).blur(1.58),mt_binarize(140).removegrain(4).mt_inpand().mt_inpand().binomialblur(20),"xor"),true),mappings="[1916 1944]")
- ReplaceFramesSimple(daa(),mappings="9237 11291 11345 [31552 31584] 46433 84418 [97097 97127] [97128 97173]")
- ReplaceFramesSimple(lumayv12(int(16*float(240-16)/219-16),219.0/(240-16)),mappings=" [18199 18348] [41776 41822] [44096 44394] [52521 52820] [56516 56718] [77068 77121] [84531 84537] [84846 84865] [85390 85410] [96362 96481]")
- ReplaceFramesSimple(lumayv12(int(16*float(245-16)/219-16),219.0/(245-16)),mappings=" [7467 7572] [9327 9382] [10024 10072] [10082 10142] [12513 12518] [35432 35519] [78266 78323] [78609 79253] [79344 79412] [79736 79817] [85226 85256] [85457 85460] [85476 85478] [85491 85493] [85890 86067] [88182 88264]")
- ReplaceFramesSimple(lumayv12(int(16*float(255-16)/219-16),219.0/(255-16)),mappings=" [38970 39088] [68190 68237] [85065 85089]")
- ReplaceFramesSimple(animate(36448,36496,"lumayv12",int(16*float(245-16)/219-16),219.0/(245-16), int(16*float(236-16)/219-16),219.0/(236-16)),mappings="[36448 36496]")
- ReplaceFramesSimple(animate(45395,45408,"lumayv12",int(16*float(240-16)/219-16),219.0/(240-16), int(16*float(236-16)/219-16),219.0/(236-16)),mappings="[45390 45408]")
- ReplaceFramesSimple(animate(56719,56725,"lumayv12",int(16*float(240-16)/219-16),219.0/(240-16), int(16*float(236-16)/219-16),219.0/(236-16)),mappings="[56719 56725]")
- ReplaceFramesSimple(animate(86068,86071,"lumayv12",int(16*float(245-16)/219-16),219.0/(245-16), int(16*float(236-16)/219-16),219.0/(236-16)),mappings="[86068 86071]")
- ReplaceFramesSimple(overlaycropped(freezeframe(0,frameCount()-1,3300),0,394,0,0,fadetop=4),mappings="[3300 3403]")
- ReplaceFramesSimple(overlaycropped(freezeframe(0,frameCount()-1,3300),0,348,340,0,fadetop=4,faderight=4),mappings="[3300 3403]")
- crossfade(4147,4177)
- freezeStillAreas(10406)
- freezeStillAreas(11276,true).freezeStillAreas(11278).freezeStillAreas(11283)
- freezeStillAreas(11345,true)
- freezeOvr(11569,11570, 2,0, fadeleft=8)
- freezeOvr(11996,12000, 0,0, 320,220,100,60)
- vMM=mmask(manalyse(msuper(),isb=true,blksize=8),ml=1,kind=0,thscd1=9999,thscd2=255).bicubicresize(ceil(width/32)*4,ceil(height/32)*4).removegrain(4).bicubicresize(width,height)
- vMM=mt_logic(vMM,vMM.trim(0,-1)+vMM,"or")
- ReplaceFramesSimple(mt_merge(vQ,vMM,true),mappings="[15879 15991] 17694 17695")
- ReplaceFramesSimple(mt_merge(daa(),vMM,true),mappings="17193 17215 17216 17238 17644 17657 17658 17661 17674 17687 17688 20496 20497 28953 28954 [29026 29285] [30316 30317]")
- ReplaceFramesSimple(SeparateFields().selectEven().nnedi3_rpow2(2).spline64resize(width,height),mappings="[16340 16362] [32011 32013]")
- freezeStillAreas(48643,true).freezeStillAreas(48646,true).freezeStillAreas(48653).freezeStillAreas(48654,true).freezeStillAreas(48656).freezeStillAreas(48661,true).freezeStillAreas(48668).freezeStillAreas(48669,true).freezeStillAreas(48683).freezeStillAreas(48698).freezeStillAreas(48713).freezeStillAreas(48728).freezeStillAreas(49782).freezeStillAreas(49785).freezeStillAreas(49795)
- freezeOvr(49958,49957, 1,-1, fade=4)
- freezeOvr(49969,49968, -2,-1, fade=4)
- ReplaceFramesSimple(overlayCropped(freezeframe(50669,50669,50670),240,200,200,200),mappings="50669")
- ReplaceFramesSimple(overlayCropped(freezeframe(50670,50679,50679),500,0,160,360),mappings="[50676 50678]")
- ReplaceFramesSimple(overlaycropped(freezeframe(0,frameCount()-1,54850),464,0,0,0,fadeleft=8,fadetop=8),mappings="[54850 54938]")
- crossfade(70489,70502).crossfade(73668,73700).crossfade(73702,73730).crossfade(84418,84422).crossfade(84425,84430).crossfade(84432,84437).crossfade(84440,84445).crossfade(84447,84452)
- ReplaceFramesSimple(cleanshit().edeenaaa(),mappings="[68704 68757] 85479")
- ReplaceFramesSimple(overlay(last,-2,0,mode="chroma"),mappings="[48851 49216] [80080 80521] [82702 82736] [82755 82789] [88024 88181] [89010 89210] [95419 95612] [96152 96361] [95419 95612]")
- ReplaceFramesSimple(overlay(last,-1,0,mode="chroma"),mappings="[75495 76420] [94879 95352]")
- freezeovr(84618,84619, 0,-11, fadebottom=16)
- freezeovr(84620,84619, 0,11, fadetop=16)
- freezeovr(85890,85892, -2,0)
- freezeovr(85891,85892, -1,0)
- ReplaceFramesSimple(aaa().grainfactory3mod(20,15,10, 100,50,0, 1.5,1.3,1),mappings="[68704 68757] [84275 84508] [85479 85536]")
- }
- function fix3( clip c )
- {
- c
- remapframes(mappings="
- [31 134] 134
- 1328 1327
- 1338 1337
- 1918 1917
- 2325 2324
- 3302 3301
- 3305 3304
- 3307 3306
- 3309 3308
- 3312 3311
- 3314 3313
- 3317 3316
- 3319 3318
- 3321 3320
- 3324 3323
- 3326 3325
- 3329 3328
- 3331 3330
- 3333 3332
- 3336 3335
- 3338 3337
- 3340 3339
- 3343 3342
- 3345 3344
- 3348 3347
- 3350 3349
- 3352 3351
- 3355 3354
- 3357 3356
- 3360 3359
- 3362 3361
- 3364 3363
- 3367 3366
- 3369 3368
- 3371 3370
- 3374 3373
- 3376 3375
- 3379 3378
- 3381 3380
- 3383 3382
- 3386 3385
- 3388 3387
- 3391 3390
- 3393 3392
- 3395 3394
- 3398 3397
- 3400 3399
- 3402 3401
- 3702 3701
- 3703 3704
- 3706 3707
- 3708 3709
- 3711 3712
- 3713 3714
- 3716 3717
- 3718 3719
- 3721 3722
- 3723 3724
- 3726 3727
- 3728 3729
- 3731 3732
- 3733 3734
- 3736 3737
- 3738 3739
- 3741 3742
- 3743 3744
- 3746 3747
- 3748 3749
- 3751 3752
- 3753 3754
- 3756 3757
- 3758 3759
- 3761 3762
- 3763 3764
- 3766 3767
- 3768 3769
- 3771 3772
- 3773 3774
- 3776 3777
- 3778 3779
- 3781 3782
- 3783 3784
- 3786 3787
- 3789 3790
- 3791 3792
- 3794 3795
- 3796 3797
- 3799 3800
- 3801 3802
- [3804 3806] 3805
- [6375 6376] 6377
- [7753 7938] 7753
- [11223 11229] 11224
- 11288 11287
- 11293 11292
- 11997 11996
- 12004 12003
- [13164 13219] 13219
- 13249 13248
- [13777 13778] 13779
- 13781 13780
- [13782 13783] 13784
- 13786 13785
- [13788 13791] 13787
- [13792 13795] 13795
- [13796 13799] 13799
- [13800 13802] 13802
- [13803 13806] 13806
- 14840 14839
- [15779 15838] [15779 15838]
- 16312 16311
- 16316 16315
- 16317 16318
- 16320 16321
- 16324 16325
- 16326 16325
- 16327 16328
- 16329 16330
- 16331 16330
- 16332 16333
- 16334 16335
- 16336 16335
- 16337 16338
- 16339 16338
- 17638 17637
- 17668 17667
- 18529 18530
- 20441 20442
- 20448 20447
- 20451 20452
- 20454 20453
- 20455 20456
- 20457 20458
- 20459 20458
- 20462 20463
- 20489 20488
- 20499 20498
- 20503 20502
- 20504 20505
- 20506 20507
- 20508 20507
- 20511 20512
- 20522 20523
- 20524 20523
- 20527 20528
- 20541 20542
- 20577 20578
- 20579 20578
- 20582 20583
- 20587 20588
- 20589 20588
- 20622 20623
- 20624 20623
- 20632 20633
- 20635 20636
- 20637 20638
- 20764 20763
- 20767 20768
- 20772 20773
- 20809 20808
- 20813 20814
- 20817 20818
- 20820 20819
- 20828 20829
- 20832 20833
- 20835 20836
- 20837 20838
- 20839 20838
- 20840 20841
- 20842 20843
- 20845 20846
- 28137 28136
- 28980 28981
- [29408 29482] 29482
- 32620 32619
- 35435 35436
- 35482 35483
- 35519 35518
- 36091 36092
- 36160 36161
- 36165 36166
- 36170 36171
- 36175 36176
- 36180 36181
- 36185 36186
- 36190 36191
- 36195 36196
- 36200 36201
- 36204 36205
- 36210 36211
- 36214 36215
- 36219 36220
- 36225 36226
- 36229 36230
- 36230 36231
- 36240 36241
- 36242 36243
- 36255 36256
- 36260 36261
- 36269 36268
- 36270 36271
- 36274 36275
- 36285 36286
- 36292 36291
- 36580 36579
- 36600 36601
- 36605 36604
- 36610 36609
- 36620 36621
- 36626 36625
- 36630 36631
- 36640 36641
- 36650 36651
- 36661 36660
- 36670 36671
- 36681 36680
- 36691 36692
- 36701 36700
- 36711 36710
- 36721 36720
- 36731 36730
- 36741 36742
- 36751 36752
- [36820 36999] 36821
- [37000 37149] 37149
- [37150 37253] 37253
- [37254 37373] 37373
- 38403 38404
- 38414 38415
- 38418 38419
- 38429 38430
- 38433 38434
- 38444 38445
- 38448 38449
- 38459 38460
- 38463 38464
- 38474 38475
- 38478 38479
- 38489 38490
- 38493 38494
- [38682 38832] 38832
- 39506 39505
- 41823 41824
- 45303 45304
- 45314 45315
- 45318 45319
- 45329 45330
- 45333 45334
- 46836 46835
- 46839 46838
- 46841 46840
- 46842 46843
- [46845 46846] 46844
- 46848 46849
- 46877 46876
- [46878 46879] 46880
- 46881 46882
- 46887 46886
- 46888 46889
- [46890 46891] 46892
- 46893 46894
- 46896 46895
- 46897 46898
- 46898 46899
- 46901 46900
- 46902 46903
- 46907 46906
- 46909 46910
- [46913 46914] 46912
- 46916 46915
- 46917 46918
- 46919 46920
- 46921 46922
- 46925 46924
- [46927 46928] 46929
- 46930 46929
- [46933 46934] 46932
- [46940 46941] 46939
- 46942 46943
- 46945 46944
- [46946 46947] 46948
- 46950 46949
- [46951 46952] 46953
- 46955 46954
- 46956 46957
- [46958 46959] 46960
- 46962 46961
- [46965 46967] 46966
- 46969 46968
- [46970 46971] 46972
- 46974 46973
- 46976 46975
- [46977 46978] 46979
- 46981 46980
- 46982 46983
- [46984 46985] 46986
- 46988 46989
- 46991 46990
- 46994 46993
- 46996 46997
- 46999 47000
- 47001 47002
- 47005 47004
- 47008 47009
- 47012 47011
- 47014 47015
- 47018 47017
- 47019 47020
- 47022 47023
- 47025 47026
- 47027 47028
- 47031 47030
- 47033 47034
- 47037 47036
- 47038 47039
- 47042 47041
- 47044 47045
- 47048 47047
- 47050 47049
- 47052 47053
- 47056 47055
- 47058 47057
- 47061 47060
- 47063 47064
- 47065 47066
- [47067 47068] 47069
- 47071 47070
- 47073 47072
- 47075 47076
- [47078 47080] 47079
- 47081 47082
- 47083 47084
- 47086 47085
- 47088 47089
- [47090 47092] 47091
- 47093 47094
- 47095 47096
- [47097 47099] 47098
- 47100 47101
- 47103 47102
- 47105 47106
- 47108 47107
- 47110 47109
- 47111 47112
- 47113 47114
- 47117 47116
- 47119 47118
- 47122 47121
- 47124 47125
- 47158 47159
- 47162 47163
- 47167 47168
- 47172 47173
- 47177 47178
- 47182 47183
- 47184 47183
- 47187 47188
- 47192 47193
- 47197 47198
- 47202 47203
- 47204 47203
- 47207 47208
- 47209 47208
- 47212 47213
- 47214 47213
- 47217 47218
- 47219 47218
- 47222 47223
- 47224 47223
- 47227 47228
- 47229 47228
- 47230 47231
- 47232 47233
- 47234 47233
- 47237 47238
- 47239 47238
- 47240 47241
- 47242 47243
- 47244 47243
- 47245 47246
- 47247 47248
- 47249 47248
- 47252 47253
- 47254 47253
- 47257 47258
- 47259 47258
- 47262 47263
- 47264 47263
- 47267 47268
- 47269 47268
- 47272 47273
- 47274 47273
- 47277 47278
- 47279 47278
- 47282 47283
- 47284 47283
- 47287 47288
- 47289 47288
- 47292 47293
- 47294 47293
- 47297 47298
- 47299 47298
- 47302 47303
- 47304 47303
- 47307 47308
- 47309 47308
- 47312 47313
- 47322 47323
- 47327 47328
- 47332 47333
- 47337 47338
- 47339 47338
- 47342 47343
- 47347 47348
- 47349 47348
- 47352 47353
- 47357 47358
- 47359 47358
- 47362 47363
- 47367 47368
- 47372 47373
- 47374 47373
- 47377 47378
- 47379 47378
- 47382 47383
- 47384 47383
- 47387 47388
- 47389 47388
- 47392 47393
- 47397 47398
- 47399 47398
- 47400 47401
- 47402 47403
- 47404 47403
- 47407 47408
- 47409 47408
- 47412 47413
- 47414 47413
- 47415 47416
- 47417 47418
- 47419 47418
- 47420 47421
- 47422 47423
- 47424 47423
- 47427 47428
- 47429 47428
- 47432 47433
- 47434 47433
- 47435 47436
- 47437 47438
- 47442 47443
- 47447 47448
- 47452 47453
- 47454 47453
- 47457 47458
- 47459 47458
- 47460 47461
- 47462 47463
- 47464 47463
- 47467 47468
- 47469 47468
- 47472 47473
- 47474 47473
- 47477 47478
- 47479 47478
- 47482 47483
- 47484 47483
- 47487 47488
- 47489 47488
- 47492 47493
- 47494 47493
- 47497 47498
- 47499 47498
- 47502 47503
- 47504 47503
- 47507 47508
- 47509 47508
- 47512 47513
- 47517 47518
- 47522 47523
- 47524 47523
- 47527 47528
- 47532 47533
- 47537 47538
- 47542 47543
- 47547 47548
- 47549 47548
- 47553 47552
- 47853 47852
- 47858 47857
- 47933 47932
- 47943 47942
- 47976 47975
- 47979 47978
- 47981 47980
- 47986 47985
- 47991 47990
- 47996 47995
- 47997 47998
- 48001 48000
- 48006 48005
- 48011 48010
- [48613 48614] 48615
- 48622 48621
- 48626 48625
- 48627 48628
- 48630 48631
- 48634 48635
- 48641 48640
- 48769 48768
- 48776 48775
- 48777 48778
- 48784 48783
- 48791 48790
- 48792 48793
- 48799 48798
- 48806 48805
- 48807 48808
- 48814 48813
- 48821 48820
- 48822 48823
- 48829 48828
- 48830 48831
- 48837 48838
- 48844 48843
- 49153 49154
- 49156 49157
- 49159 49160
- 49162 49163
- 49165 49166
- 49168 49169
- 49171 49172
- 49174 49175
- 49177 49176
- 49180 49179
- 49183 49182
- 49186 49185
- 49189 49188
- 49192 49191
- 49195 49194
- 49198 49197
- 49201 49200
- 49204 49203
- 49207 49206
- 49209 49210
- 49212 49213
- 49215 49216
- 49254 49255
- 49263 49262
- 49265 49264
- 49267 49266
- 49269 49268
- 49271 49272
- 49273 49274
- 49275 49276
- 49277 49278
- 49391 49392
- 49734 49735
- 49736 49737
- 49741 49742
- 49745 49746
- 49750 49751
- 49753 49754
- 49755 49756
- 49761 49762
- 49765 49766
- 49765 49766
- 49789 49788
- 49799 49798
- 49921 49922
- 49961 49962
- [50073 50074] 50075
- 50078 50077
- 50081 50080
- 50089 50090
- 50093 50094
- 50097 50096
- 50101 50100
- 50109 50110
- 50113 50114
- 50117 50118
- 50121 50120
- 50133 50132
- 50137 50136
- 50141 50140
- 50145 50144
- 50153 50154
- 50157 50156
- 50161 50160
- 50165 50164
- 50176 50177
- 50180 50181
- 50184 50183
- 50384 50385
- 50390 50389
- 50394 50395
- 50401 50402
- 50406 50407
- 50411 50412
- 50414 50413
- 50635 50636
- 53092 53093
- [54075 54076] 54077
- [55143 55145] 55142
- [55146 55149] 55146
- [55151 55154] 55152
- 59809 59808
- 59811 59810
- 59814 59813
- 59816 59815
- 59819 59818
- 59821 59820
- 59824 59823
- 59826 59825
- 59829 59828
- 59831 59830
- 59834 59833
- 59836 59835
- 59838 59837
- 59841 59840
- 59844 59843
- 59846 59845
- 59848 59847
- 59851 59850
- 59852 59850
- 59853 59854
- 59856 59855
- [59857 59858] 59859
- [59861 59862] 59860
- [59863 59865] 59864
- [59866 59868] 59867
- 59871 59870
- [59872 59874] 59872
- [59875 59877] 59877
- 59878 59879
- 59881 59880
- 59883 59882
- 59886 59885
- 59888 59889
- 59891 59892
- 59893 59892
- 59896 59895
- 59898 59897
- 59899 59898
- 59901 59900
- 59903 59904
- 59906 59905
- 59908 59907
- 59911 59910
- 59913 59914
- 59916 59917
- 59918 59917
- 59921 59920
- 59923 59922
- 59926 59925
- 59927 59926
- 59928 59929
- 59931 59930
- 59933 59934
- 59936 59937
- 59938 59939
- 59941 59942
- 59943 59942
- 59946 59945
- 59948 59949
- 59951 59950
- 59953 59954
- 59956 59955
- 59958 59957
- 59961 59960
- 59963 59964
- 59966 59967
- 59968 59967
- 59970 59969
- 59973 59972
- 59975 59976
- 59978 59977
- 59980 59981
- 59983 59982
- 59985 59986
- 59988 59989
- 59990 59989
- 59993 59992
- 59995 59996
- 59998 59997
- 60000 60001
- 60003 60002
- 60005 60004
- 60008 60007
- 60010 60011
- 60013 60014
- 60015 60014
- 60018 60017
- 60020 60019
- 60022 60023
- 60023 60022
- 60025 60026
- 60028 60027
- 60030 60029
- 60033 60032
- 60035 60036
- 60038 60039
- 60040 60039
- 60043 60042
- 60045 60044
- 60048 60047
- 60050 60051
- 60053 60052
- 60055 60054
- 60058 60057
- 60060 60061
- 60063 60064
- 60065 60064
- 60068 60067
- 60070 60071
- 60073 60072
- 60075 60076
- 60078 60077
- 60080 60079
- 60083 60082
- 60085 60086
- 60088 60089
- 60090 60089
- 60093 60092
- 60095 60094
- 60098 60097
- 60100 60101
- 60103 60102
- 60105 60104
- 60107 60108
- 60110 60111
- 60112 60111
- #[60113 60212] 60113
- 36644 36643
- 36645 36646
- 52520 52519
- 68862 68863
- 70483 70482
- [70502 70573] 70503
- 70902 70903
- 70910 70909
- 70915 70916
- 70920 70921
- 70927 70926
- 70930 70931
- 70939 70938
- 70940 70941
- 70949 70950
- 70952 70953
- 70959 70960
- 70964 70965
- 70969 70970
- 70976 70977
- 70979 70978
- 70989 70988
- 77382 77381
- 78087 78088
- [78177 78178] 78179
- 81754 81755
- 82219 82220
- 82222 82223
- 82224 82225
- 82227 82228
- 82229 82230
- 82232 82233
- 82234 82235
- 82237 82238
- 82239 82240
- 82242 82243
- 82244 82245
- 82247 82248
- 82249 82250
- 82252 82253
- 82254 82255
- 82257 82258
- 82259 82260
- 82262 82263
- 82264 82265
- 82267 82268
- 82269 82270
- 82272 82273
- 82274 82275
- 82277 82278
- 82279 82280
- 82282 82283
- 82284 82285
- 82287 82288
- 82289 82290
- 82292 82293
- 82294 82295
- 82297 82298
- 82299 82300
- 82304 82305
- 82307 82308
- 82309 82310
- 82311 82310
- 82312 82313
- 82314 82315
- 82319 82320
- 82322 82323
- 82324 82325
- 82342 82341
- 82344 82345
- 82347 82348
- 82351 82352
- 82354 82355
- 82356 82357
- 82359 82360
- 82361 82362
- 82364 82365
- 82366 82367
- 82369 82370
- 82371 82372
- 82374 82375
- 82376 82377
- 82379 82380
- 82381 82382
- 82384 82385
- 82386 82387
- 82389 82390
- 82391 82392
- 82394 82395
- 82396 82397
- 82399 82400
- 82401 82402
- 82404 82405
- 82406 82407
- 82409 82410
- 82411 82412
- 82414 82415
- 82416 82417
- 82419 82420
- 82421 82422
- 82424 82425
- 82426 82427
- 82429 82430
- 82431 82432
- 82434 82435
- 82436 82437
- 82439 82440
- 82441 82442
- 82444 82445
- 82446 82447
- 82449 82450
- 82451 82452
- 82454 82455
- 82456 82457
- 82459 82460
- 82461 82462
- 82464 82465
- 82466 82467
- 82469 82470
- 82471 82472
- 82474 82475
- 84573 84574
- 84599 84600
- 84617 84618
- 84621 84622
- 84637 84636
- 84766 84765
- 84767 84768
- 84772 84773
- 84777 84778
- [84782 84783] 84784
- 84787 84786
- 84788 84789
- 84790 84791
- 85106 85107
- 85110 85109
- 85111 85112
- 85116 85117
- 85118 85119
- 85860 85861
- 86774 86775
- 1807 1808
- 86903 86902
- 86906 86907
- 86908 86907
- 86911 86912
- 86913 86912
- 86916 86917
- 86918 86917
- 87443 87444
- 89123 89124
- 90073 90074
- 90549 90550
- 90558 90559
- 90623 90622
- 90631 90632
- 90637 90638
- 90670 90671
- 94568 94567
- 94572 94573
- 94577 94578
- 94582 94583
- 94684 94683
- 94688 94687
- 94699 94698
- 94703 94702
- 94707 94708
- 94711 94712
- 94731 94732
- 94733 94732
- 94734 94735
- 94737 94738
- 94741 94742
- 94744 94743
- 94745 94746
- 94750 94751
- 94769 94768
- 94770 94771
- 94773 94774
- 94777 94778
- 94780 94779
- 94784 94783
- 96786 96785
- 1407 1408
- 5787 5788
- 11361 11362
- 14786 14787
- [15779 15780] 15781
- 15879 15880
- 16345 16346
- 16349 16348
- 16350 16351
- 16354 16353
- 16355 16356
- 16360 16361
- 16362 16363
- 16395 16396
- 16414 16415
- 16425 16426
- 26340 26341
- 15957 15958
- 15959 15960
- 16016 16017
- 20497 20498
- 20627 20628
- [73382 73384] 73381
- 73385 73386
- [76864 76865] 76863
- [76866 76867] 76868
- 78265 78264
- 78266 78267
- ")
- }
- function t_checkmate( clip c, clip "cTFM", string "mappings", int "blksize", bool "showmask")
- {
- mappings=default(mappings,"")
- blksize=default(blksize,8)
- showmask=default(showmask,false)
- vCM=c.checkmate().repair(c)
- vMaskSkipCombed=c.mt_lutxy(c.daa(),"x y - abs",chroma="128").coloryuv(autogain=true,autowhite=true)
- vMaskSkipCombed=vMaskSkipCombed.mt_lutf(vMaskSkipCombed,"avg","x 16 < 255 y - y ?").mt_expand().mt_expand(chroma="128").removegrain(4)
- vMaskSkipCombed=vMaskSkipCombed.mt_logic(vMaskSkipCombed.trim(1,0),"min")
- c.mt_merge(vCM,vMaskSkipCombed.mt_lutf(vMaskSkipCombed,"min","x",offx=8,offy=3,w=c.width-16).bilinearresize(c.width,c.height,8,3,c.width-16).mt_binarize(250),true)
- cTFM=default(cTFM,c.tfm(cthresh=1,mi=100)).crop(16,16,-16,-16).addborders(16,16,16,16)
- vMA=manalyse(msuper(cTFM),blksize=blksize)
- vSC=MSCDetection(cTFM,vMA)
- vMM=cTFM.t_motionmask(2,blksize,MA=vMA)
- vMMinv=vMM.mt_invert().mt_logic(vMaskSkipCombed,"min").bilinearresize(ceil(float(c.width)/blksize/8)*4,ceil(float(c.height)/blksize/8)*4).mt_inpand().bicubicresize(c.width,c.height)
- mt_merge(mt_merge(c.checkmate(100,50,50),vMMinv,y=2,u=4,v=4),vMMinv.mt_logic(c.linemask().mt_expand().binomialblur(5,u=1,v=1),"and"),true)
- mt_merge(trim(1,0),mt_logic(vSC,vMM,"and"),true)
- mt_merge(trim(0,-1)+last,mt_logic(vSC.trim(1,0),vMM,"and"),true)
- mappings=="" ? last : c.ReplaceFramesSimple(last,mappings=mappings)
- showmask ? overlay(mt_lut(y=-255,u=0,v=0),0,0,vMMinv,0.5,mode="chroma") : last
- }
Advertisement
Add Comment
Please, Sign In to add comment