mawen1250

Fate/Zero BD Ultimate by mawen1250

Mar 20th, 2012
448
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(192)
  6.  
  7. src="H:\remux\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00000.m2ts"
  8. cf = src + ".ffindex"
  9. FFIndex(src, cachefile=cf, demuxer="lavf")
  10. FFVideoSource(src, cachefile=cf, seekmode=-1, threads=1)
  11.  
  12. ### prefetch: 8, 4
  13. ### lock threads to cores
  14.  
  15. ### ###
  16.  
  17. ### platform: win32
  18.  
  19. SetMemoryMax(1536)
  20.  
  21. src=last
  22. #nr=src.FFT3DFilter(sigma=3.2,sigma2=2.4,sigma3=1.6,sigma4=0.8,bw=16,bh=16,ow=8,oh=8,plane=4,bt=3)
  23. nr=src.MCTD(settings="medium", radius=2, sigma=8, limit=-1, limit2=0, chroma=true, twopass=false, useTTmpSm=false,
  24. \pp=false, protect=false, deblock=false, useQED=true, enhance=false, GPU=false, fixband=false, sharp=false)
  25.  
  26. ### export clip: nr, src
  27.  
  28. ### prefetch: 8, 4
  29. ### lock threads to cores
  30.  
  31. ### ###
  32.  
  33. ### platform: win32
  34.  
  35. SetMemoryMax(512)
  36.  
  37.   rg17 = nr.removegrain(17,-1)
  38.   iOB  = src.mt_lut("x 64 >= x 0 ?",U=1,V=1)
  39.   mB   = mt_makediff(iOB,rg17,U=1,V=1).mt_binarize(144,upper=false,U=1,V=1).removegrain(5,-1)
  40.   lB   = mt_lutxy(nr,src,"x y - abs 4 <= x x y - 0 < y 4 - x ? ?",U=1,V=1)
  41.   pnr  = mt_merge(nr,lB,mB,U=2,V=2)
  42.  
  43. lumamask=src.mt_lut("x 96 > 255 x 64 > x 64 - 3 << 64 x - 2 << ? ?",U=1,V=1).RemoveGrain(19, -1)
  44. anr=mt_merge(src,pnr,lumamask,luma=false,Y=3,U=4,V=4)
  45.  
  46. #mask=src.TEdgeMask( link=2, preblur=true, valon=-1 ).mt_lut("x 3 <= 0 x 2 - 5 << ?",Y=3,U=2,V=2).mt_lut("x 5 <= 0 x 3 - 5 << ?",Y=2,U=3,V=3)
  47. mask=src.tcanny(sigma=1.5, mode=1, plane=7).mt_lut("x 4 <= 0 x 3 - 5 << ?",Y=3,U=2,V=2).mt_lut("x 8 <= 0 x 4 - 5 << ?",Y=2,U=3,V=3).mt_deflate(Y=3,U=3,V=3)
  48.  
  49. ### export clip: anr, src, mask
  50.  
  51. ### prefetch: 8, 4
  52. ### lock threads to cores
  53.  
  54. ### ###
  55.  
  56. SetMemoryMax(1536)
  57.  
  58. db=anr.GradFun3( smode=1, thr=0.15, elast=2.5, ampn=0, radius=16, ampo=0.8, dthr=0.011, lsb=true, lsb_in=false, mask=0 ).f3kdb(range=16, Y=33, Cb=33, Cr=33, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
  59.  
  60. np=db.GrainFL(lsb_in=true, lsb=true, th1=16, th2=24, th3=64, th4=112, g1str=0, g2str=6, g3str=0, g1shrp=60, g2shrp=66, g3shrp=80, g1size=1.40, g2size=1.40, g3size=1.40, g1soft=3,g2soft=3,g3soft=3)
  61.  
  62. Dither_merge16_8(np, src.Dither_convert_8_to_16(), mask, luma=false)
  63. f3kdb(range=0, Y=0, Cb=0, Cr=0, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=2, output_depth=10)
  64.  
  65. """)
Add Comment
Please, Sign In to add comment