版面规则
提问时请注意:尽量详细描述操作过程、AVS脚本内容等,最好能写出片名,只贴图有时无法看出问题原因。
提示:发布原创内容请尽量使用附件上传。使用网盘会出现过期失效的问题,请注意。
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

TAA v1.6.2 & MCAA v1.3 - "aatype"调整,速度大幅优化,mask模式增加

3重AA,daa式的preaa,传统的aa(eedi2/nnedi3/sangnom三种模式),soothe的postaa(用于对付post-sharpening可能导致的alising)
三种post-sharpening,通过sharp的值自动选择:Contra-sharpening、HighQualitySharpen、lsfmod(lsfmod有三种defaults选择方式,其中sharp>1的方式与LimitedSharpenFaster的速度和效果相同)
最后一重edge masking做边缘处理
想EP的可以放到LSharpAAF里面去继续处理(拖……
YV12 input

Download
TAA_v1.6.2+MCAA_v1.3.7z:NMMMediaFire

TAA_v1.6.2+MCAA_v1.3+Requirements.7z(包含TAA 1.6.2、MCAA v1.3及所需插件):NMMMediaFire
► 显示剧情透露 所需插件/脚本:
► 显示剧情透露 MCAA说明:
► 显示剧情透露 TAA说明:
Taroの「寂しい男の戯言」

俺寫doc水平真爛
{:cat_11}
因為懶,還沒加error_msg,所以使用前還是先把這極爛的doc看下……
AVSPmod還不支持/* xxxx */的註釋語法高亮真鬱悶
AVS的function沒法設定成private繼續鬱悶= =
上次由 06_taro 在 2012-02-17 11:34,总共编辑 38 次。
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
头像
dgwxx
管理猿
帖子: 771
注册时间: 2010-09-19 20:42
联系: 网站

Re: TAA v1.2 - 某个不快不慢的AA脚本

taro去NMM Doc文档库开个条目吧 XDDD
日常推 @dgwxx: 基本没什么技术的话题,欢迎没事看看消遣。
► 显示剧情透露 平庸的rip
► 显示剧情透露 “不知道”的五大理由
头像
-o-o-304-o-o-
超级版主
帖子: 640
注册时间: 2010-10-10 20:00
来自: US
联系: 网站

Re: TAA v1.2 - 某个不快不慢的AA脚本

顶taro大
► 显示剧情透露 En Taro 06!Taro Pie NC Fanclub project始动!聊天用Q群开放中
► 显示剧情透露 胸中有万言,退敌无一策,是谓书生误国"
► 显示剧情透露 前辈们的信念
► 显示剧情透露 妇联招新广告,走过路过可以看看撒
► 显示剧情透露 香芋派,后期菊苣们的一致选择
► 显示剧情透露 众菊苣喜评香芋派
► 显示剧情透露 聊天用工具
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: TAA v1.2 - 某个不快不慢的AA脚本

dgwxx 写了:taro去NMM Doc文档库开个条目吧 XDDD
等明天考完试回来吧
{:cat_6} 这东西效果还在测试中
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
264768502
核心会员
核心会员
帖子: 402
注册时间: 2010-09-23 17:38

Re: TAA v1.2 - 某个不快不慢的AA脚本

=。= 在公司没办法试,有无效果预览图之类的呢
头像
nuomi
帖子: 197
注册时间: 2010-09-25 12:59

Re: TAA v1.2 - 某个不快不慢的AA脚本

taro大大看成tora了,掩面(逃.
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: TAA v1.3 - 比v1.2稍微快些,aa方式有较大修改

v1.3更新,默认值里把没必要的默认参数略降,弱化preaa及后处理的post-sharpen(原来默认的Contra-sharpening方式细节还原太强了反而导致在强锯齿情况下aa效果不够高,其实现在的lsf+masking细节还原已经基本够了),添加了速度极快的HQSharpen(by Didée)供仍然嫌慢的人使用,添加soothe做postaa对付后处理中可能导致的二次aliasing,部分代码整修了一下提高运行效率,总体来讲现在的默认参数比原来在效率和效果上更平衡了。添加error提示,修改英文doc(原来的太乱了……)
上次由 06_taro 在 2011-03-22 21:58,总共编辑 1 次。
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
头像
ikamusume
帖子: 77
注册时间: 2011-03-02 23:13

Re: TAA v1.3 - 比v1.2稍微快些,aa方式有较大修改

taro大… 你那載點 下載完成之後 解壓發生未知錯誤
之前用的1.2版都不錯 現在有1.3版真想快點用
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

MCAA.avsi

囧……压缩时忘了改成LZMA,用的是LZMA2,重打包重传,地址已更新,顺便把某个bug修掉……

顺便丢个从SharpAAMCmod里面挖出来的MC脚本--MCAA.avsi,我自己是用这个来做MC补偿的,一直懒得放出来……

用法同SharpAAMCmod,将aatype换成aafilter,aafilter="aa滤镜",概念上类似于MCAnyTempDenoiser,
譬如
aafilter="AAA().AAA().AAA().AAA().AAA()",
另外后处理的sharpener换成了LimitedSharpenFaster加速,相应地加了个sharptype参数,默认为"lsf"即LimitedSharpenFaster,"lsfmod"为lsfmode

突然脑中冒出一句话叫“批量EP,方便搅基”(拖……

代码: 全选

###
### Use any anti-aliasing filter with motion-compensated post processing
###
### Based on Didée's MC script, Mystery Keeper's SharpAAMC and thetoof's SharpAAMCmod (in his AnimeIVTC)
### (http://forum.doom9.org/showthread.php?t=140031)
###
### Modified by 06_taro(astrataro@gmail.com)
###
### +---------+
### |  USAGE  |
### +---------+
###
### Use it in the same way as SharpAAMCmod, except for
### 1. use aafilter="yourAAFilters" instead of aatype
### 2. add "sharptype" which allows you to choose LimitedSharpenFaster as post-sharpening
###       sharptype[string, Default "lsf"]:
###       -"lsf", Use LimitedSharpenFaster
###       -"lsfmod", Use lsfmod
###
### MCAA(aafilter="Sangnom().TurnLeft().Sangnom().TurnRight()")
### or
### MCAA(aafilter="AAA()")
###
### +----------------+
### |  REQUIREMENTS  |
### +----------------+
###
### -> Toon									[for dark>0]
### -> aWarpSharp2					[for thin>0]
### -> MaskTools2
### -> MaskTools
### -> MVTools
### -> LimitedSharpenFaster	[for sharptype="lsf"]
### -> lsfmod								[for sharptype="lsfmod"]
### -> taa									[or any other anti-aliasing filters matching your "aafilter" setting]
###

function MCAA(clip orig, float "dark", int "thin", int "sharp", int "smooth", bool "stabilize", int "tradius", int "aapel", int "aaov", int "aablk", string "aafilter", string "sharptype")
{
dark	= default ( dark,     0.2 ) # strokes darkening strength
thin	= default ( thin,      10 ) # Presharpening
sharp	= default ( sharp,    150 ) # Postsharpening
smooth	= default ( smooth,    -1 ) # Postsmoothing
stabilize= default ( stabilize,false ) # Use post stabilization with Motion Compensation
Tradius	= default ( Tradius,    2 ) # 2 = MDegrain2 / 3 = MDegrain3 
aapel	= default ( aapel,      1 ) # accuracy of the motion estimation (Value can only be 1, 2 or 4. 1 means a precision to the pixel. 2 means a precision to half a pixel, 4 means a precision to quarter a pixel, produced by spatial interpolation (better but slower).)
aaov	= default ( aaov,       (orig.width>1100) ? 8 : 4 ) # block overlap value (horizontal). Must be even and less than block size. (Higher = more precise & slower)
aablk	= default ( aablk,      (orig.width>1100) ? 16 : 8 ) # Size of a block (horizontal). It's either 4, 8 or 16 ( default is 8 ). Larger blocks are less sensitive to noise, are faster, but also less accurate.
aafilter	= default ( aafilter, "taa(aatype=1, preaa=-1, sharp=0.2, mtype=0)" )
sharptype	= default ( sharptype, "lsf" ) # Use lsfmod or lsf for postsharpening

w=width(orig)
h=height(orig)
m=mt_logic( orig.DEdgeMask(0,255,0,255,"5 10 5 0 0 0 -5 -10 -5", divisor=4,Y=3,U=3,V=3)
 \       ,orig.DEdgeMask(0,255,0,255,"5 0 -5 10 0 -10 5 0 -5", divisor=4,Y=3,U=3,V=3)
 \       ,"max").mt_lut("x 128 / 0.86 ^ 255 *")
preaa=(thin==0 && dark==0) ? orig :
      \ (thin==0) ? orig.Toon(dark) :
      \ (dark==0) ? orig.awarpsharp2(depth=thin) :
      \ orig.Toon(dark).awarpsharp2(depth=thin)
aa = Eval("preaa."+aafilter)
postsh=(sharp==0 && smooth==0) ? aa :
       \ (sharptype=="lsf") ? aa.LimitedSharpenFaster(edgemode=1,strength=sharp,overshoot=1,soft=smooth) :
       \ (sharptype=="lsfmod") ? aa.lsfmod(edgemode=1,strength=sharp,overshoot=1,soft=smooth) :
       \ blankclip(pixel_type="YV12").subtitle("Please use lsf or lsfmod for sharptype")
merged=mt_merge(orig,postsh,m,Y=3,U=3,V=3)

sD=mt_makediff(orig,merged)

origsuper= orig.MSuper(pel=aapel)
sDsuper  = sD.  MSuper(pel=aapel, levels=1)


fv3 = tradius==3 ? origsuper.MAnalyse(isb=false,delta=3,overlap=aaov,blksize=aablk) : nop()
fv2 = tradius>=2 ? origsuper.MAnalyse(isb=false,delta=2,overlap=aaov,blksize=aablk) : nop()
fv1 = tradius>=1 ? origsuper.MAnalyse(isb=false,delta=1,overlap=aaov,blksize=aablk) : nop()
bv1 = tradius>=1 ? origsuper.MAnalyse(isb=true, delta=1,overlap=aaov,blksize=aablk) : nop()
bv2 = tradius>=2 ? origsuper.MAnalyse(isb=true, delta=2,overlap=aaov,blksize=aablk) : nop()
bv3 = tradius==3 ? origsuper.MAnalyse(isb=true, delta=3,overlap=aaov,blksize=aablk) : nop()
sDD = tradius==1 ? sD.MDegrain1(sDsuper,bv1,fv1) : tradius==2 ? sD.MDegrain2(sDsuper,bv1,fv1,bv2,fv2) : sD.MDegrain3(sDsuper,bv1,fv1,bv2,fv2,bv3,fv3)

reduc = 0.4
sDD = mt_lutxy(sD,sDD,"x 128 - abs y 128 - abs < x y ?").mergeluma(sDD,1.0-reduc)

return stabilize ? orig.mt_makediff(sDD,U=2,V=2) : merged
}
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: TAA v1.4 & MCAA 1.1 - 默認下大幅加速,bugfix,正式增加MCAA

更新
其实比较tricky,默认参数都改了,加速什么的其实可比性不强囧……
不过现在的默认参数副作用也不算大,所以基本上就这样吧……
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。

回到 “AviSynth”