View difference between Paste ID: Unjy2RCx and UjZ36rAq
SHOW: | | - or go back to the newest paste.
1-
DSS2("VTS_01_CHAPTER_01_1.VOB").AssumeFPS(30000, 1001)
1+
#MP_Pipeline("""
2
3
### platform: win32
4
5-
up = last.nnedi3_rpow2(rfactor=2, qual=2)
5+
SetMemoryMax(600)
6
7-
emask = up.tcanny(sigma=0.8, mode=1, plane=1)
7+
src = "VTS_01_CHAPTER_01_1.VOB"
8
9-
edgeclean = up.YAHR().Dehalo_Alpha_mt(darkstr=0.8,brightstr=1.2,rx=2.2,ry=2.2,highsens=100,lowsens=30)
9+
DSS2(src).AssumeFPS(30000, 1001)
10
11-
blurc = edgeclean.Gaussianblur(nthreads=2,varY=0.50,varC=0.30,gfunc=1,gfuncc=1,pcr=1,pcrc=2,Y=3,U=3,V=3)
11+
12
13
nnedi3_rpow2(rfactor=2, qual=2)
14
15
emask = last.tcanny(sigma=0.8, mode=1, plane=1)
16
17
### export clip: emask
18-
sh = eced.LSFmod(defaults="slow",Smode=5,Smethod=3,Lmode=4,strength=80,preblur="OFF",secure=true,edgemode=0,soft=-2,soothe=true,ss_x=1.00,ss_y=1.00)
18+
19
### prefetch: 32,16
20
21-
deband = sh16.f3kdb(range=20, Y=52, Cb=42, Cr=42, grainY=0, grainC=0, dither_algo=3, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
21+
### ###
22
23
### platform: win32
24
25
SetMemoryMax(1000)
26
27
up = last
28
29
edgeclean = up.YAHR().Dehalo_Alpha_mt(darkstr=1.0,brightstr=1.4,rx=2.4,ry=2.4,highsens=100,lowsens=30)
30-
Down10(10, tvRange=true, stack=false)
30+
#\.dfttest(Y=true, U=true, V=true, threads=2, sigma=32, sigma2=32, sbsize=60, sosize=9, tbsize=1, dither=1, lsb_in=false, lsb=false)
31
blurc = edgeclean#.Gaussianblur(nthreads=2,varY=0.50,varC=0.30,gfunc=1,gfuncc=1,pcr=1,pcrc=2,Y=3,U=3,V=3)
32
33
ecsh = ContraSharpen(blurc, up, chroma=true, preblur=false, limit=true, RGmode=20, RGmodeU=11, Repmode=13, RepmodeU=13)
34
35
ecmask = emask.mt_expand(mode=mt_square(2)).mt_lutxy(emask.mt_inpand(mode=mt_square(1)), "x y -").mt_lut("x 16 < x x 2 << ?")
36
eced = mt_merge(up, ecsh, ecmask, luma=true, Y=3, U=3, V=3)
37
38
#nr = eced.MCTD(settings="low", radius=3, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=false, GPU=false, fixband=true, 
39
#\pp=true, protect=true, deblock=false, useQED=true, enhance=false, sharp=false).Repair(eced,3,0)
40
41
last = eced
42
43
### export clip: emask
44
45
### prefetch: 16,8
46
47
### ###
48
49
SetMemoryMax(1200)
50
51
eced = last
52
53
sharpmask = emask.mt_lut("x 48 < 0 x 144 >= 399 x - x 2 << 188 - ? ?", U=1, V=1)
54
sh = eced.LSFmod1(defaults="slow",Smode=5,Smethod=3,Lmode=4,strength=80,sharpmask=sharpmask,preblur="OFF",secure=true,edgemode=0,soft=-2,soothe=true,ss_x=1.00,ss_y=1.00)
55
sh16 = sh.U16()
56
57
deband = sh16.f3kdb(range=20, Y=64, Cb=56, Cr=56, grainY=0, grainC=0, dither_algo=3, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
58
59
dbmask = emask.mt_lut("x 4 > x 4 - 6 << 0 ?",Y=3,U=1,V=1)
60
Dither_merge16_8(deband, sh16, dbmask, luma=true)
61
62
Dither_y_gamma_to_linear(curve="170")
63
Dither_resize16(1280, 714, 4, -0.5, 1432, 960, kernel="Spline36", Y=3, U=3, V=3)
64
Dither_y_linear_to_gamma(curve="170")
65
66
Down10(10, tvRange=true, stack=false)
67
68
#Interleave(up.Spline36Resize(1280,714, 4, -0.5, 1432, 960), last)
69
70
#""")