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

Re: flash3kyuu_deband 1.4.2 x86/x64 [2011-11-10]

SAPikachu 写了:output_mode=2输出的数据格式目前据我所知除了f3kdb无任何常用滤镜支持,output_mode=1有部分滤镜支持(如dither系列)。
記得dither工具內有一部分函數支持interleaved msb/lsb輸入,譬如DitherPost……
つまんねー事聞くなよ!

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日。
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: flash3kyuu_deband 1.4.2 x86/x64 [2011-11-10]

06_taro 写了:
SAPikachu 写了:output_mode=2输出的数据格式目前据我所知除了f3kdb无任何常用滤镜支持,output_mode=1有部分滤镜支持(如dither系列)。
記得dither工具內有一部分函數支持interleaved msb/lsb輸入,譬如DitherPost……
我错了,原来新版本已经支持了么orz 不过一般需要16bit处理的话还是得用stacked 16bit,支持的滤镜更多。
T: @SAPikachu
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

f3kgrain v0.2 - f3kdb based grain generator

-- f3kdb based grain generator
-- luma adaptive
-- temporal stabilization modifiable

Download: f3kgrain_v0.2.avsi
OR
[syntax lang="avisynth" lines="f" filename="f3kgrain_v0.2.avsi"]###################################################
### ###
### f3kgrain ###
### ###
### by 06_taro - astrataro@gmail.com ###
### ###
### v0.2 - 14 March 2012 ###
### ###
###################################################
###
### Fast luma-adaptive grain generator
###
### Temporal soften strength of grain is changeable ( it can only be set on/off in f3kdb )
###
###
### +---------+
### | USAGE |
### +---------+
###
### f3kgrain()
###
### See below for explanation of parameters
###
### +----------------+
### | REQUIREMENTS |
### +----------------+
###
### -> f3kdb [v1.5.0]
### -> MaskTools2 [v2.0a48]
### -> RemoveGrain [v1.0pre]
###
### +-----------+
### | CHANGELOG |
### +-----------+
###
### v0.2 - 14 March 2012
### - Synchronize argument names with parameter names of f3kdb v1.5.0
###
### v0.1 - 02 Mar 2012
### - First release
###

Function f3kgrain(clip input, int "luma", int "chroma", int "mode", int "temp", int "adapt"){

luma = Default(luma, 64) # Luma grain strength
chroma = Default(chroma, 64) # Chroma grain strength
mode = Default(mode, 1) # random_algo_dither mode
temp = Default(temp, 50) # Temporal stabilization for grain (the higher, the more calm) [0=nervous,...,100=static]
adapt = Default(adapt, 64) # Brightness threshold for adaptative grain mask [-1=off, 0=input, 1...254, 255=invert]
# The higher, the less grain in dark areas & the more grain in bright areas

Assert( temp>=0 && temp<=100, "f3kgrain: invalid value for temp(0~100)!" )
Assert( adapt>=-1 && adapt<=255, "f3kgrain: invalid value for adapt(-1~255)!" )

Y = luma==0 ? 2 : 3
U = chroma==0 ? 2 : 3
V = chroma==0 ? 2 : 3

Lmask = adapt==0 ? input.RemoveGrain(19, -1)
\ : adapt==255 ? input.mt_invert(U=1, V=1).RemoveGrain(19, -1)
\ : input.mt_lut("x "+string(adapt)+" - abs 255 * "+string(adapt)+" 128 - abs 128 + /", U=1, V=1).RemoveGrain(19, -1)

ad = input.f3kdb(Y=0, Cb=0, Cr=0, grainY=luma, grainC=chroma, dynamic_grain=true, random_algo_grain=mode)
grain = mt_makediff(ad, input, Y=Y, U=U, V=V)

gsoft = (luma!=0 && chroma!=0) ? grain.TemporalSoften(1, 255, 255, scenechange=255, mode=2)
\ : luma!=0 ? grain.TemporalSoften(1, 255, 0, scenechange=255, mode=2)
\ : chroma!=0 ? grain.TemporalSoften(1, 0, 255, scenechange=255, mode=2)
\ : grain


gmerge = (temp == 0) ? grain
\ : (temp == 100) ? gsoft
\ : (luma!=0 && chroma!=0) ? Merge(grain, gsoft, temp/100.)
\ : luma!=0 ? MergeLuma(grain, gsoft, temp/100.)
\ : chroma!=0 ? MergeChroma(grain, gsoft, temp/100.)
\ : grain

adsoft = mt_adddiff(input, gmerge, Y=Y, U=U, V=V)

return adapt==-1 ? adsoft : mt_merge(adsoft, input, Lmask, luma=chroma!=0, Y=Y, U=U, V=V)
}
[/syntax]
上次由 06_taro 在 2012-03-14 9:08,总共编辑 3 次。
つまんねー事聞くなよ!

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日。
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: flash3kyuu_deband 1.5.0 x86/x64 [2012-03-12]

1.5.0发布。此版本无新功能,只修改了部分参数以减少混淆。感谢虾巨巨(@dgwxx)及其他各位巨巨的建议。
T: @SAPikachu
头像
ikamusume
帖子: 77
注册时间: 2011-03-02 23:13

Re: flash3kyuu_deband 1.5.0 x86/x64 [2012-03-12]

精靈球收下 {:cat_17}
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

Re: flash3kyuu_deband 1.5.1 x86/x64 [2012-04-07]

请问我在AVS中加载f3kdb(Y=0,Cb=0,Cr=0,ditherY=0,ditherC=0,keep_tv_range=true,precision_mode=3,input_mode=1,output_depth=16,output_mode=2,output_depth=16)
提示dithery错误
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: flash3kyuu_deband 1.5.1 x86/x64 [2012-04-07]

1.5.0开始参数名修改了
ditherY -> grainY
ditherC -> grainC
precision_mode -> dither_algo
上次由 06_taro 在 2012-04-12 9:57,总共编辑 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日。
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

Re: flash3kyuu_deband 1.5.1 x86/x64 [2012-04-07]

还有,有时候压制出来的视频全是色块。不知道那里用的不对
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: flash3kyuu_deband 1.5.1 x86/x64 [2012-04-07]

你的解码器不支持10bit解码?
つまんねー事聞くなよ!

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日。
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

Re: flash3kyuu_deband 1.5.1 x86/x64 [2012-04-07]

f3kdb(Y=0,Cb=0,Cr=0,ditherY=20,ditherC=0,keep_tv_range=true,precision_mode=3,input_mode=1,output_depth=10,output_mode=2,output_depth=10)
在AVS中加载,出现没有找到名字 dithery

回到 “AviSynth”