现丑了,以下是转压avi压缩的有些边线噪声的rmvb用的,偶处理的片源不同注释掉某些行来组合,因为懒得每次改参数
#vol6_vol6_rmvb[prj].avs
#LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\mpasource.dll")
video = AviSource("[Projcet NGM][Magister_Negi_Magi][魔法先生][06][GB].avi",audio = false)
audio = DirectShowSource("[Projcet NGM][Magister_Negi_Magi][魔法先生][06][GB].avi",fps=29.970)
#audio= MPASource("魔法先生ネギま! 第01話(映像TX、音声D-TX、DivX5.11、120f、640×480).mp3", normalize = false)
op = Trim(video, 0, 3144)
main = Trim(video, 3145, 38955)
ed = Trim(video, 38956, 41652)
ed2 = Trim(video,41653,0)
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\Deen.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\eDeen.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\UnFilter.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\Convolution3dYV12.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\aWarpSharp.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\aSharp.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\mSharpen.dll")
LoadPlugin("F:\Program Files\VideoTools\AviSynth 2.5\plugins\mSmooth.dll")
#处理OP部分,轻度柔化
op = deen(op,"a2d",1,10,12)
#op = Levels(op,16, 1, 230, 0, 255)
op = aWarpSharp(op, 10.0, 2, 0.2, 1)
#main = video
#处理正片部分,柔滑+锐化
#main = deen(main,"a2d",1,6,15)
#syntax : edeen(r,ty,tuv,ly,luv,hqc) 7,14,21,2,3,true
#main = edeen(main,5,10,15,2,3,true)
#main = UnFilter(main,+50, +50)
#main = MSharpen(main, 6, 32, true, false, false)
#main = Levels(main,16, 1, 230, 0, 255)
#预校正
#Tweak(clip clip [, float hue 0] [, float sat 1] [, float bright 0] [, float cont 1] [, bool coring true] [, bool sse false])
main = Tweak(main, 4, 1.05, -8, 1.05, true)
main = deen(main,"a2d",1,6,8)
#main = aWarpSharp(main, 14.0, 2, 0.5, 1)
main = aWarpSharp(main, 12.0, 2, 0.25, 1)
#main.asharp(2.5,4.5,0.25,hqbf=true)
#main = Tweak(main, 0, 1, -16, 1.05, false)
main = MSharpen(main, 6, 16, true, false, false)
#main = MSharpen(main, 10, 75, true, false, false)
#main = MSmooth(main,strength=3)
#main = FluxSmoothT(main,7)
##main = deen(main,"a2d",1,6,8)
#syntax : edeen(r,ty,tuv,ly,luv,hqc) 7,14,21,2,3,true
#main = edeen(main,5,10,15,2,3,true)
#main = UnFilter(main,+50, +50)
##main = MSharpen(main, 10, 75, true, false, false)
#main = Levels(main,16, 1, 230, 0, 255)
##main = aWarpSharp(main, 10.0, 2, 0.3, 1)
#main = MSmooth(main,strength=3)
##main = FluxSmoothT(main,7)
#处理片尾部分,中度柔化降噪
##ed = Convolution3d(ed,preset="animeHQ")
#ed = deen(ed,"a2d",2,10,12)
#ed = edeen(ed,5,10,15,2,3,true)
##ed= FluxSmoothT(ed,7)
#ed = Levels(ed,0, 1.2, 255, 0, 255)
ed = aWarpSharp(ed, 10.0, 2, 0.3, 1)
video = op ++ main ++ ed ++ ed2
#video = main
video = AudioDub(video, audio)
video = Trim(video,1,1)++Trim(video,1,0)
return video
对于消除线条边缘的游走状粘稠冤念物,用awarpsharp是比较有效的,对于合并色块中的不和谐的怨念点,edeen的效果是最强烈的,但是会降速度,和命悬一线地降低细节,deen比较安全一些,用了多个滤镜以后,最好用Tweak调一下不然容易发生色彩或者亮度相对原片的变化.
awarpsharp会改变线条得形状,强度参数调的高一些,播放的时候会发现线条被他改的乱晃,哭着喊着都拦不住.慎用.
其他Cnr2基本可以deen取代,调完可以适当锐化一下,欺骗眼睛.
doom9上有人发了一个HiQDering的avs script,那个也是动画降噪的.
Undot可以免用了,这东西不是啥好人