搜索 社区服务 统计排行 帮助
  • 4220阅读
  • 10回复

[原创]AVS Filter ColorMatrix之使用

楼层直达
级别: 工作组
注册时间:
2003-12-14
在线时间:
1小时
发帖:
2188
BLOG地址:http://falconia.ca/blog/read.php/15.htm

压OTOHiME 15时不幸眼尖看到看到小横线...
翻看尝试TIVTC 4h后无果 接着尝试Decomb和IT 发现仍有类似现象 直接手动却没有
最后终发现一切皆为ColorMatrix所造成

ColorMatrix直接放在之前的话会在画面产生意外的小短线 (不是我刻意这样 MeGUI这么干的 orz...)
解决办法就是放在后面或者加interlaced=true参数(没测试),就是如此简单


看下图:

  1. Mpeg2source("G:\HIME\OTO15\OTOHiME_15.d2v",info=3)
  2. ColorMatrix(hints=true)
  3. tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
  4. #ColorMatrix(d2v="G:\HIME\OTO15\OTOHiME_15.d2v")




  1. Mpeg2source("G:\HIME\OTO15\OTOHiME_15.d2v",info=3)
  2. #ColorMatrix(hints=true)
  3. tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
  4. ColorMatrix(d2v="G:\HIME\OTO15\OTOHiME_15.d2v")




之后翻看DOOM9 翻到最后一页赫然写着
引用
When I was working on FLCL, I actually got small horizontal line artifacts in a few frames using Colormatrix before IVTC. Calling Colormatrix after IVTC fixed it.

URL: http://forum.doom9.org/showthread.php?p=834767#post834767



既然如此就顺便介绍参数
mode-
ColorMatrix(clip, mode="Rec.709->Rec.601")
ColorMatrix(clip, mode="Rec.601->Rec.709")
(Default) Rec.709->Rec.601
interlaced -
ColorMatrix(clip, interlaced=false)
源为交错时需要开启
(Default) false
opt -
ColorMatrix(clip,opt=3)
0 - force c routine
1 - force mmx routine
2 - force sse2 routine
3 - auto detect
(Default) 3
hints -
ColorMatrix(clip, hints=false)
检测d2v颜色,根据mode判断是否需要转换
需要在mpeg2source里打开info=3,且紧接mpeg2source
不能与d2v同时使用
(Default) false
d2v -
ColorMatrix(clip, d2v="FA.d2v")
作用与hints相同,不能与hints同时使用
(Default) null
debug -
ColorMatrix(clip, debug=false)
(Default) false


ColorMatrix 1.10
[file]http://www.geocities.com/wilbertdijkhof/ColorMatrix_v110.zip[/file]
[separator]



注:
1) I709(ITU-R BT.709) = Rec.709 coefficients
2) FCC (almost the same as Rec.601)
3) I470(ITU-R BT.470-2) = Rec.601 coefficients [an updated version of Rec.470-6, but coefficients are exactly the same]
4) S170(SMPTE 170M) = exactly the same as Rec.601
5) S240(SMPTE 240M) = almost the same as Rec.709

For ColorMatrix we assume I709 = S240 and I470=FCC=S170, because the error will be very small.


注2:
QuEnc无须使用
QuEnc -> fcc coefficients ~ Rec.601 coefficients


注3:
Anything -> Mpeg-4
------------------------
Source Colorimetry--------ColorMatrix
ITU-R BT.470-----------------No
ITU-R BT.601-----------------No
ITU-R BT.709-----------------Yes
SMPTE 170 M-----------------No
SMPTE 240 M-----------------Yes


注4:
如源为VFAPI,并不会因为RGB24转换影响使用
  1. TMPsource("FA.tpr")
  2. ConvertToYV12()
  3. ColorMatrix(d2v="FA.d2v")


注5:
TIVTC vfr 2pass时提示
TFM: crc32 in input files does not match that of current clip...
这是因为TFM在2pass是做crc32检测两次pass是否相同
解决办法是禁止检查(不会 orz...) 或者删除stats文件开头的"crc="
引用
It's a special function of the tfm 2-pass file, it errors out if you don't use exactly the same filters before tfm as you did on the first pass. tdec has the same check. Colormatrix should have no effect, but tfm's trying to protect against random changes that render the stats useless.

To disable the check, all you have to do is remove the "crc=" section from the beginning of the stats files. (Leave the other info though!)

Colormatrix will still have an effect where it is now, though. It just won't be able to use hints to decide when it actually needs to be used, it'll just affect every frame (which is usually correct).

URL: http://forum.doom9.org/showthread.php?p=822415#post822415



此文大量参考[acronym=27th December 2005]v1.10[/acronym]所带文档及Doom9.org,一切以其为准
http://forum.doom9.org/showthread.php?t=82217

                        
Please call me "小沙"  ^^ | FalconIA's BASE | BLOG (自家用)                    


级别: 工作组
注册时间:
2005-04-23
在线时间:
0小时
发帖:
4259
只看该作者 10楼 发表于: 2006-08-28
引用
最初由 Boss_02fj 发布
那x264有这个问题么?

tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
是什么意思?

X264AVS读入的,一律都用bt.601来解
所以avs读入bt.709的,还是要加
DIVX和XVID的话,bt.709才用
WMVA不清楚……啊不清楚

后一个问题你去看tivtc的说明书好了

Lux Aeterna

过去一直去,未来一直来...
级别: 工作组
注册时间:
2003-10-27
在线时间:
0小时
发帖:
1529
只看该作者 9楼 发表于: 2006-08-28
咱在考虑要不要下次加个看看- -0


----------------------------------------
无论是黑底白字的TAB 还是白底黑字的TAB 大家 大家 齐心协力 组成了108键大家族 新新的TAB 一直处在幸福之中 被按坏的TAB 郁闷地眯上了眼睛 要好的TAB们手牵着手 围成了一个TABURISS 在PS2接口上 发出了信号 大家相视而笑
级别: 工作组
注册时间:
2003-11-07
在线时间:
1小时
发帖:
7032
只看该作者 8楼 发表于: 2006-08-28
不一样.
dreamland的精华区里有N某人的mpeg色彩空间帖,看看里面的对比图片就知道了.如果过于"601",红色会偏黄,绿色会变成暗绿;如果过于"709",红色会偏枣红,绿色更亮

青空が眩しい 君がいる風景は
幸せのオーラ 溢れ出すの とまらないよ
駅前の噴水 虹を作っているよ
君を待つ時間さえも かけがえない プレシャスな時

=========================

FANSUB的历史,又翻过了新的一页
级别: 工作组
注册时间:
2005-05-03
在线时间:
0小时
发帖:
2914
只看该作者 7楼 发表于: 2006-08-28
coloryuv(levels="tv->pc")
那么这个语句的功能是不是一样的呢?
级别: 工作组
注册时间:
2003-11-07
在线时间:
1小时
发帖:
7032
只看该作者 6楼 发表于: 2006-08-28
引用
最初由 Boss_02fj 发布
tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
是什么意思?


汝把它理解成"decomb().decimate()"即可

青空が眩しい 君がいる風景は
幸せのオーラ 溢れ出すの とまらないよ
駅前の噴水 虹を作っているよ
君を待つ時間さえも かけがえない プレシャスな時

=========================

FANSUB的历史,又翻过了新的一页
级别: 新手上路
注册时间:
2004-01-13
在线时间:
0小时
发帖:
658
只看该作者 5楼 发表于: 2006-08-28
那x264有这个问题么?

tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
是什么意思?

羊骑车…[/KH]
级别: 工作组
注册时间:
2003-12-14
在线时间:
1小时
发帖:
2188
只看该作者 4楼 发表于: 2006-08-28
引用
最初由 taburiss4869 发布
FA先告诉我下COLORMATRIX是干吗的- -0

ColorMatrix corrects the colors of MPEG-2 streams of dvds. More correctly, many MPEG-2 streams use slightly different coefficients (called Rec.709) for storing the color information than AviSynth's color conversion routines or the XviD/DivX decoders (called Rec.601) do, with the result that DivX/XviD clips or MPEG-2 clips encoded by TMPGEnc/QuEnc are displayed with slighty off colors (which looks like a small difference in brightness). This can be checked by opening the MPEG-2 stream directly in VDubMod.

大意:
ColorMatrix纠正了DVD MPEG-2的数据流流的颜色. 更确切的说,多数MPEG2数据流存储颜色信息使用的系数(叫Rec.709),与avs颜色转换程序或DivX/XviD编码器(叫Rec.601)有些微不同的,结果是颜色显示出来有些微不同(看起来亮度有些不同). 这可以通过用VDM直接打开MPEG-2流验证.

                        
Please call me "小沙"  ^^ | FalconIA's BASE | BLOG (自家用)                    


级别: 工作组
注册时间:
2005-04-23
在线时间:
0小时
发帖:
4259
只看该作者 3楼 发表于: 2006-08-28
引用
最初由 taburiss4869 发布
FA先告诉我下COLORMATRIX是干吗的- -0

…………
http://forum.doom9.org/showthread.php?t=82217

Lux Aeterna

过去一直去,未来一直来...
级别: 工作组
注册时间:
2003-10-27
在线时间:
0小时
发帖:
1529
只看该作者 2楼 发表于: 2006-08-28
FA先告诉我下COLORMATRIX是干吗的- -0


----------------------------------------
无论是黑底白字的TAB 还是白底黑字的TAB 大家 大家 齐心协力 组成了108键大家族 新新的TAB 一直处在幸福之中 被按坏的TAB 郁闷地眯上了眼睛 要好的TAB们手牵着手 围成了一个TABURISS 在PS2接口上 发出了信号 大家相视而笑
级别: 工作组
注册时间:
2005-04-23
在线时间:
0小时
发帖:
4259
只看该作者 1楼 发表于: 2006-08-28
前几天刚看过,又来这推销- -

Lux Aeterna

过去一直去,未来一直来...
快速回复

限150 字节
上一个 下一个