『漫游』酷论坛>『影音数码技术学习交流』>[原创]AVS Filter ColorMatri ..

[原创]AVS Filter ColorMatrix之使用

FalconIA@2006-08-28 11:06

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
引用

realsweet@2006-08-28 11:13

前几天刚看过,又来这推销- -
引用

taburiss4869@2006-08-28 11:20

FA先告诉我下COLORMATRIX是干吗的- -0
引用

realsweet@2006-08-28 11:36

引用
最初由 taburiss4869 发布
FA先告诉我下COLORMATRIX是干吗的- -0

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

FalconIA@2006-08-28 11:44

引用
最初由 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流验证.
引用

Boss_02fj@2006-08-28 17:37

那x264有这个问题么?

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

wolfsoft@2006-08-28 19:45

引用
最初由 Boss_02fj 发布
tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
是什么意思?


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

雷鸣@2006-08-28 19:47

coloryuv(levels="tv->pc")
那么这个语句的功能是不是一样的呢?
引用

wolfsoft@2006-08-28 21:17

不一样.
dreamland的精华区里有N某人的mpeg色彩空间帖,看看里面的对比图片就知道了.如果过于"601",红色会偏黄,绿色会变成暗绿;如果过于"709",红色会偏枣红,绿色更亮
引用

taburiss4869@2006-08-28 22:23

咱在考虑要不要下次加个看看- -0
引用

realsweet@2006-08-28 23:43

引用
最初由 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的说明书好了
引用

| TOP