Advertisement
mawen1250

Clannad AS BDrip EP02 by mawen1250

Jul 2nd, 2012
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MP_Pipeline("""
  2.  
  3. ### platform: win32
  4.  
  5. SetMemoryMax(400)
  6.  
  7. src = "I:\11\[KUNO-DIY][Love Again][BDMV][CLANNAD AFTER STORY][Blu-ray BOX Disc 1-5 Fin]\CLANNAD_AFTER_STORY_1\BDMV\STREAM\00001.m2ts"
  8. FFIndex(src, demuxer="lavf")
  9. FFVideoSource(src, seekmode=-1, threads=1)
  10. #DSS2(src)
  11.  
  12. emask   = last.tcanny(sigma=1.2, mode=1, plane=1)
  13.  
  14. ### export clip: emask
  15.  
  16. ### prefetch: 64, 8
  17.  
  18. ### ###
  19.  
  20. ### platform: win32
  21.  
  22. SetMemoryMax(1400)
  23.  
  24. src     = last
  25.  
  26. OP      = 3141
  27. OPa     = OP + 935
  28. OPb     = OP + 986
  29.  
  30. aacs    = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=1, thr=1, Tlimit=false, ss_w=1.50, ss_h=1.50, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
  31.  
  32. aamask  = emask.mt_lutxy(src.mt_deflate(U=1, V=1), "y 96 < x 32 <= 0 x 32 - 4 << ? x 64 <= 0 x 64 - 3 << ? ?", U=1, V=1).RemoveGrain(20, -1).mt_inflate(U=1, V=1)
  33. aaed8   = mt_merge(src, aacs, aamask, luma=false, U=2, V=2)
  34.  
  35. blksize = 4
  36. overlap = 2
  37.  
  38. b1super = aaed8.MSuper(hpad=8,vpad=8,pel=2,sharp=2,chroma=true)
  39.  
  40. f1V     = b1super.MAnalyse(delta=1, isb=false, chroma=false, truemotion=true, blksize=blksize, overlap=overlap, pelsearch=2, search=5, searchparam=2, DCT=0, global=true)
  41. b1V     = b1super.MAnalyse(delta=1, isb=true,  chroma=false, truemotion=true, blksize=blksize, overlap=overlap, pelsearch=2, search=5, searchparam=2, DCT=0, global=true)
  42.  
  43. Mbr     = MFlowBlur(b1super, b1V, f1V, blur=50, thSCD1=100, thSCD2=100)
  44.  
  45. part1   = DSS2("Clannad AS part1.avi").AssumeFPS(24000, 1001)
  46.  
  47. ConditionalSelect("pp", src, aaed8, Mbr)
  48. ConditionalReader("Clannad AS 02.CF.txt", "pp")
  49.  
  50. last.Trim(0, OPa-1)+part1+last.Trim(OPb+1, 0)
  51.  
  52. ### export clip: emask
  53.  
  54. ### ###
  55.  
  56. SetMemoryMax(1000)
  57.  
  58. aaed16  = last.U16
  59.  
  60. nr16    = aaed16.Dither_resize16(aaed16.width(), aaed16.height()/2, kernel="Gauss", a1=24, fh=-1, fv=-1, Y=3, U=1, V=1).MergeChroma(aaed16)
  61. noise   = Dither_makediff16(aaed16, nr16, Y=3, U=1, V=1)
  62.  
  63. db      = nr16.f3kdb(range=12, Y=40, Cb=36, Cr=36, grainY=0, grainC=0, input_mode=1, output_mode=1)
  64. dbl     = db.Dither_limit_dif16 (nr16, thr=0.25, elast=3.0, Y=3, U=3, V=3)
  65. dbed    = Dither_add16(dbl, noise, Y=3, U=2, V=2, dif=true)
  66.  
  67. dbmask  = emask.mt_lut("x 2 > x 2 - 6 << 0 ?", Y=3, U=1, V=1)
  68.  
  69. Dither_merge16_8(deband, aaed16, dbmask, luma=true)
  70. #Dither_y_gamma_to_linear(curve="709").Dither_resize16(1280, 720).Dither_y_linear_to_gamma(curve="709")
  71. Down10(stack=false)
  72.  
  73. #""")
  74.  
  75. /*
  76. #Clannad AS 02.CF.txt
  77. Type int
  78. Default 0
  79. R 0 173 0
  80. R 174 278 2
  81. R 279 362 1
  82. R 363 525 1
  83. R 526 644 0
  84. R 645 935 1
  85. R 936 956 0
  86. R 957 976 2
  87. R 977 1024 2
  88. R 1025 1222 2
  89. R 1223 1246 0
  90. R 1247 1297 1
  91. R 1298 1682 2
  92. R 1683 1763 2
  93. R 1764 1809 2
  94. R 1810 2037 1
  95. R 2038 2196 2
  96. R 2196 2232 0
  97. R 2233 2268 1
  98. R 2269 2388 2
  99. R 2389 2585 1
  100. R 2586 2822 2
  101. R 2823 2918 1
  102. R 2919 2960 2
  103. R 2961 3140 0
  104. R 3141 3287 0
  105. R 3288 3369 1
  106. R 3370 3452 0
  107. R 3453 3828 1
  108. R 3829 3985 0
  109. R 3986 4075 1
  110. R 4076 4127 0
  111. R 4128 4170 0
  112. R 4171 4786 1
  113. R 4787 4813 0
  114. R 4814 5179 1
  115. R 5180 5294 0
  116. R 5295 34799 1
  117. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement