mawen1250 写了:MPP的具体AVS贴出来
MP_Pipeline("""
SetMemoryMax(1500)
DGDecode_mpeg2source("D:\Temp\Baidu\[Leopard-Raws] Hi no Tori 2772 ~Ai no CosmoZone~ 1980 (1440x1080 MPEG2 AAC).d2v")
crop(0, 20, 0, -20)
trim(3905, 221688)
tfm(mode=1).tdecimate()
src=last
#pre=src.GSMC_sbr(r=2, lsb_in=false, lsb=false)
emask=src.RemoveGrain(11, 11).RemoveGrain(11, 11).TCannyMod(mode=1, sigma=1.2).mt_expand()
### export clip: src, emask
### prefetch: 32, 16
### lock threads to cores
### ###
SetMemoryMax(3500)
nr1=src.SMDegrain(tr=2, thSAD=400, RefineMotion=False, contrasharp=False, interlaced=False, plane=4, prefilter=1, chroma=True, lsb=true, lsb_in=False, lsb_out=true, Show=False, globals=2)
nr2=nr1.SMDegrain(tr=2, thSAD=400, RefineMotion=False, contrasharp=False, interlaced=False, plane=4, prefilter=0, chroma=True, lsb=true, lsb_in=true, lsb_out=true, Show=False, globals=1)
### export clip: nr2, emask, src
### prefetch: 16, 0
### lock threads to cores
### ###
SetMemoryMax(2000)
nr3=nr2.Dither_removegrain16(11, 8)
noise=nr2.Dither_sub16(nr3, y=3, u=3, v=3, dif=true)
db=nr3.f3kdb(range=8, Y=48, Cb=36, Cr=36, grainY=0, grainC=0, input_mode=1, output_mode=1)
db=db.f3kdb(range=15, Y=36, Cb=28, Cr=28, grainY=0, grainC=0, input_mode=1, output_mode=1)
db=db.Dither_limit_dif16(nr3, thr=0.3, elast=3, y=3, u=3, v=3)
db=db.Dither_add16(noise, y=3, u=3, v=3, dif=true)
flat=ALMerge(db, nr2, U=3, V=3)
Dither_merge16_8(flat, src.U16, emask, U=3, V=3)
nrdb=last
nrdb8=nrdb.BitDepth(input_depth=8, output_depth=8)
#nrdb8=nrdb.DitherPost(mode=6)
### export clip: nrdb, nrdb8
### prefetch: 16, 0
### lock threads to cores
### ###
SetMemoryMax(1500)
dbl=mt_merge(nrdb8.Deblock(quant=30), nrdb8, TcannyMod(simga=1.2).mt_expand(), U=3, V=3)
m_dbl=mt_lut(nrdb8, "x 70 >= 255 0 ?", U=2, V=2)
dbl8=mt_merge(nrdb8, dbl, m_dbl).FastLineDarkenMOD(strength=38)
difmask=mt_lutxy(nrdb8, dbl8, "x y = 0 255 ?")
Dither_merge16_8(nrdb,dbl8.U16, difmask, Y=3, U=3, V=3)
GrainFL(g1str=7, g2str=5, g3str=3, g1size=1.25, g2size=1.25, g3size=1.25, g1soft=3, g2soft=3, g3soft=3, th1=24, th2=64, th3=96, th4=160, lsb=true, lsb_in=true)
Down10(stack=false)
#Down10(8)
### prefetch: 32, 0
### lock threads to cores
### ###
""")
原AVS刚才已做修改放弃了deblock(deblock应该在deband前做吧...),
根据回忆恢复了一下。
现在的没有问题
MP_Pipeline("""
SetMemoryMax(1500)
DGDecode_mpeg2source("D:\Temp\Baidu\[Leopard-Raws] Hi no Tori 2772 ~Ai no CosmoZone~ 1980 (1440x1080 MPEG2 AAC).d2v")
crop(0, 20, 0, -20)
trim(3905, 221688)
tfm(mode=1).tdecimate()
src=last
#pre=src.GSMC_sbr(r=2, lsb_in=false, lsb=false)
emask=src.RemoveGrain(11, 11).RemoveGrain(11, 11).TCannyMod(mode=1, sigma=1.2).mt_expand
### export clip: src, emask
### prefetch: 32, 16
### lock threads to cores
### ###
SetMemoryMax(3500)
nr1=src.SMDegrain(tr=2, thSAD=400, RefineMotion=False, contrasharp=False, interlaced=False, plane=4, prefilter=1, chroma=True, lsb=true, lsb_in=False, lsb_out=true, Show=False, globals=2)
nr2=nr1.SMDegrain(tr=2, thSAD=400, RefineMotion=False, contrasharp=False, interlaced=False, plane=4, prefilter=0, chroma=True, lsb=true, lsb_in=true, lsb_out=true, Show=False, globals=1)
### export clip: nr2, emask, src
### prefetch: 16, 0
### lock threads to cores
### ###
SetMemoryMax(2000)
nr3=nr2.Dither_removegrain16(11, 8)
noise=nr2.Dither_sub16(nr3, y=3, u=3, v=3, dif=true)
db=nr3.f3kdb(range=8, Y=48, Cb=36, Cr=36, grainY=0, grainC=0, input_mode=1, output_mode=1)
db=db.f3kdb(range=15, Y=36, Cb=28, Cr=28, grainY=0, grainC=0, input_mode=1, output_mode=1)
db=db.Dither_limit_dif16(nr3, thr=0.3, elast=3, y=3, u=3, v=3)
db=db.Dither_add16(noise, y=3, u=3, v=3, dif=true)
flat=ALMerge(db, nr2, U=3, V=3)
Dither_merge16_8(flat, src.U16, emask, U=3, V=3)
GrainFL(g1str=7, g2str=5, g3str=3, g1size=1.25, g2size=1.25, g3size=1.25, g1soft=3, g2soft=3, g3soft=3, th1=24, th2=64, th3=96, th4=160, lsb=true, lsb_in=true)
Down10(stack=false)
#Down10(8)
### prefetch: 32, 0
### lock threads to cores
### ###
""")