<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FalconIA&#039;s BLOG &#187; avs</title>
	<atom:link href="https://falconia.org/blog/archives/tag/avs/feed" rel="self" type="application/rss+xml" />
	<link>https://falconia.org/blog</link>
	<description>FalconIA&#039;s Lazy Blog</description>
	<lastBuildDate>Tue, 02 Dec 2014 01:45:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>AVS Filter AAA()与LimitedSharpenFaster()的协作使用 以及对某些DVD质量的看法</title>
		<link>https://falconia.org/blog/archives/17</link>
		<comments>https://falconia.org/blog/archives/17#comments</comments>
		<pubDate>Mon, 28 Aug 2006 05:53:40 +0000</pubDate>
		<dc:creator><![CDATA[FalconIA]]></dc:creator>
				<category><![CDATA[压制相关]]></category>
		<category><![CDATA[avs]]></category>
		<category><![CDATA[前期处理]]></category>
		<category><![CDATA[压制]]></category>

		<guid isPermaLink="false">http://falconia.no-ip.org/blog/?p=17</guid>
		<description><![CDATA[今日拿到SchoolRumbel2 DVD 分析VOB发现其为 Hybrid FILM/NTSC... 且混杂程度很高，丝毫不下OTOHiME 且出现奇怪的锯齿 两幅均为静止画面的锯齿，可排除是场处理错误（事实上经手动验证后确非场处理错误） 这样的DVD是由VCD SimpleResize过来的吗... 无奈下只好使用AAA()，由于AAA()同时造成了画面的轻微柔化不得不携带Sharpen Filter，试验后LimitedSharpenFaster()的还原能力较好 于是决定使用AAA().AAA().LimitedSharpenFaster() 以下为改动后去掉unfilter的AAA 处理后如下： 可恶的是片中锯齿比比皆是...使人很难有耐心一段段找出来... 其直接结果就是从9fps狂跌到3fps 不过比起TMPEGEnc降噪貌似还是稍微快点 通常说Hybrid FILM/NTSC一般会出现在手绘与CG结合片子里 近期碰到几部片子却几乎全手绘的片子里，很是奇怪 经观察后猜测，DVD很像是先进行了interlace处理然后再进行剪辑作业 此编辑顺序真是不让人苟同... 且不说deinterlace会怎样，有时在TV上都能感到些微的异样... 更不说像SR2一样的静态大锯齿...更是显而易见... 使人联想到D商的VCD2DVD... 以上纯粹个人猜想，如有错误，请不吝赐教 那么就以“......”作为结束语吧 orz 转载请注明版权为FalconIA所有]]></description>
				<content:encoded><![CDATA[<p>今日拿到SchoolRumbel2 DVD<br />
分析VOB发现其为 Hybrid FILM/NTSC... 且混杂程度很高，丝毫不下OTOHiME<br />
且出现奇怪的锯齿<br />
<a href="/blog/wp-content/uploads/2009-bo/attachment/sr2-aliasing1.png" target="_blank"><img src="/blog/wp-content/uploads/2009-bo/attachment/sr2-aliasing1.png" class="insertimage"  border="0"   /></a><br />
<a href="/blog/wp-content/uploads/2009-bo/attachment/sr2-aliasing2.png" target="_blank"><img src="/blog/wp-content/uploads/2009-bo/attachment/sr2-aliasing2.png" class="insertimage"  border="0"   /></a><br />
两幅均为静止画面的锯齿，可排除是场处理错误（事实上经手动验证后确非场处理错误）<br />
这样的DVD是由VCD SimpleResize过来的吗...<br />
<span id="more-17"></span><br />
无奈下只好使用AAA()，由于AAA()同时造成了画面的轻微柔化不得不携带Sharpen Filter，试验后LimitedSharpenFaster()的还原能力较好<br />
于是决定使用AAA().AAA().LimitedSharpenFaster()</p>
<p>以下为改动后去掉unfilter的AAA</p>
<pre class="brush: avisynth; title: ; notranslate">
# AAA - AnimeAntiAliasing
#
# Thanks @ Didée, mf, Akirasuto, SpikeSpiegel &amp; ScharfisBrain...
#________________________________________________________________________________________
#
# Usage: AAA(Xres, Yres, Xshrp, Yshrp, Us, Ds, chroma)
#________________________________________________________________________________________
#
# Xres/Yres = The final resolution... InputSize = OutputSize is the default
#
# Xshrp/Yshrp = Unfilter strength... Settings of 15,15 are the defaults
#
# Us = Resizer for upsampling... 0 = PointResize (default) / 1 = Lanczos
#
# Ds = Resizer for downsampling... 0 = Bilinear (default) / 1 = Bicubic / 2 = Lanczos
#
# Chroma = Enable/disable chroma antialiasing... Disable = false (default) / enable = true
#________________________________________________________________________________________
#
# Example...
#
# Import(&quot;C:\Programme\AviSynth 2.5\plugins\AAA.avs&quot;)
#
# AAA(720,576,20,20,1,2,chroma=false)
#________________________________________________________________________________________



LoadPlugin(&quot;E:\WORK\Encoder\AviSynthPlugins\masktools.dll&quot;)
LoadPlugin(&quot;E:\WORK\Encoder\AviSynthPlugins\SangNom.dll&quot;)

function AAA(clip clp, int &quot;Xres&quot;, int &quot;Yres&quot;, int &quot;Xshrp&quot;, int &quot;Yshrp&quot;, 
 \       int &quot;US&quot;, int &quot;DS&quot;, bool &quot;chroma&quot;)
         {
         clp = clp.isYV12() ? clp : clp.ConvertToYV12()
         #clp = clp.ConvertToYV12()
         ox = clp.width
         oy = clp.height
         Xres  = default(Xres,  ox)
         Yres  = default(Yres,  oy)
         us  = default(us, 1)
         ds = default(ds, 2)
         Xshrp = default(Xshrp, 15)
         Yshrp = default(Yshrp, 15)
         chroma = default(chroma, false)
         
         us==0 ? clp.PointResize(ox*2,oy*2) : clp.LanczosResize(ox*2,oy*2)

         TurnLeft()
         SangNom()

         TurnRight()
         SangNom()

         ds==0 ? BilinearResize(Xres,Yres) : 
 \       ds==1 ? BicubicResize(Xres,Yres) : 
 \       LanczosResize(Xres,Yres)

         #Unfilter(Xshrp,Yshrp)

         chroma ? MergeChroma(clp.Lanczosresize(Xres,Yres)) : last

         }
</pre>
<p>处理后如下：<br />
<a href="/blog/wp-content/uploads/2009-bo/attachment/sr2-antialiasing2.png" target="_blank"><img src="/blog/wp-content/uploads/2009-bo/attachment/sr2-antialiasing2.png" class="insertimage"  border="0"   /></a></p>
<p>可恶的是片中锯齿比比皆是...使人很难有耐心一段段找出来...<br />
其直接结果就是从9fps狂跌到3fps 不过比起TMPEGEnc降噪貌似还是稍微快点</p>
<pre class="brush: avisynth; title: ; notranslate">
mpeg2source(&quot;F:\Compress\SchoolRumbel2\SR2_1.d2v&quot;,info=3)
#edeintted = SeparateFields().SelectEven().EEDI2(field=-1)
#tdeintted = TDeint(edeint=edeintted)
tfm().tdecimate(mode=1,hybrid=1)
ColorMatrix(d2v=&quot;F:\Compress\SchoolRumbel2\SR2_1.d2v&quot;)
crop( 10, 0, -10, -2)

LanczosResize(640,480) # Lanczos (Sharp)
Undot() # Minimal Noise

trim(0,7211)+trim(7212,7216).Blur(1.58).Blur(1.58)+trim(7217,0)
AAA().AAA().LimitedSharpenFaster()
</pre>
<hr/>
<p>通常说Hybrid FILM/NTSC一般会出现在手绘与CG结合片子里<br />
近期碰到几部片子却几乎全手绘的片子里，很是奇怪<br />
经观察后猜测，DVD很像是先进行了interlace处理然后再进行剪辑作业<br />
此编辑顺序真是不让人苟同...<br />
且不说deinterlace会怎样，有时在TV上都能感到些微的异样...<br />
更不说像SR2一样的静态大锯齿...更是显而易见...<br />
使人联想到D商的VCD2DVD...<br />
以上纯粹个人猜想，如有错误，请不吝赐教<br />
那么就以“......”作为结束语吧 orz</p>
<p><b>转载请注明版权为FalconIA所有</b></p>
]]></content:encoded>
			<wfw:commentRss>https://falconia.org/blog/archives/17/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AVS Filter ColorMatrix 1.x之使用</title>
		<link>https://falconia.org/blog/archives/15</link>
		<comments>https://falconia.org/blog/archives/15#comments</comments>
		<pubDate>Tue, 22 Aug 2006 10:34:13 +0000</pubDate>
		<dc:creator><![CDATA[FalconIA]]></dc:creator>
				<category><![CDATA[压制相关]]></category>
		<category><![CDATA[avs]]></category>
		<category><![CDATA[前期处理]]></category>
		<category><![CDATA[压制]]></category>

		<guid isPermaLink="false">http://falconia.no-ip.org/blog/?p=15</guid>
		<description><![CDATA[此文不适合ColorMatrix 2.x 请注意 压OTOHiME 15时不幸眼尖看到看到小横线... 翻看尝试TIVTC 4h后无果 接着尝试Decomb和IT 发现仍有类似现象 直接手动却没有 最后终发现一切皆为ColorMatrix所造成 ColorMatrix直接放在之前的话会在画面产生意外的小短线 解决办法就是放在后面或者加interlaced=true参数(没测试)，就是如此简单 看下图: 之后翻看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- &#160; &#160;ColorMatrix(clip, mode="Rec.709->Rec.601") &#160; &#160;ColorMatrix(clip, mode="Rec.601->Rec.709") &#160; &#160;(Default) [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span style="color: #FF0000;">此文不适合ColorMatrix 2.x 请注意</span></p>
<p>压OTOHiME 15时不幸眼尖看到看到小横线...<br />
翻看尝试TIVTC 4h后无果 接着尝试Decomb和IT 发现仍有类似现象 直接手动却没有<br />
最后终发现一切皆为ColorMatrix所造成</p>
<p><acronym title="不是我刻意这样 MeGUI这么干的 orz...">ColorMatrix直接放在<deinterlace>之前的话会在画面产生意外的小短线</acronym><br />
解决办法就是放在<deinterlace>后面或者加interlaced=true参数(没测试)，就是如此简单</p>
<p>看下图:</p>
<pre class="brush: avisynth; title: ; notranslate">
Mpeg2source(&quot;G:\HIME\OTO15\OTOHiME_15.d2v&quot;,info=3)
ColorMatrix(hints=true)
tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
#ColorMatrix(d2v=&quot;G:\HIME\OTO15\OTOHiME_15.d2v&quot;)
</pre>
<p><a href="/blog/wp-content/uploads/2009-bo/attachment/colormatrix_before_tfm.png" target="_blank"><img src="/blog/wp-content/uploads/2009-bo/attachment/colormatrix_before_tfm.png" class="insertimage"  border="0"   /></a></p>
<pre class="brush: avisynth; title: ; notranslate">
Mpeg2source(&quot;G:\HIME\OTO15\OTOHiME_15.d2v&quot;,info=3)
#ColorMatrix(hints=true)
tfm(mode=1,PP=6,display=true).tdecimate(mode=1,cycle=5,cycleR=1,display=false)
ColorMatrix(d2v=&quot;G:\HIME\OTO15\OTOHiME_15.d2v&quot;)
</pre>
<p><a href="/blog/wp-content/uploads/2009-bo/attachment/colormatrix_after_tfm.png" target="_blank"><img src="/blog/wp-content/uploads/2009-bo/attachment/colormatrix_after_tfm.png" class="insertimage"  border="0"   /></a></p>
<p><span id="more-15"></span></p>
<p>之后翻看DOOM9 翻到最后一页赫然写着</p>
<div class="quote">
<div class="quote-title"></div>
<div class="quote-content">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.</p>
<p>URL: http://forum.doom9.org/showthread.php?p=834767#post834767</p></div>
</div>
<p>既然如此就顺便介绍参数<br />
mode-<br />
 &nbsp; &nbsp;ColorMatrix(clip, mode="Rec.709->Rec.601")<br />
 &nbsp; &nbsp;ColorMatrix(clip, mode="Rec.601->Rec.709")<br />
 &nbsp; &nbsp;(Default) Rec.709->Rec.601<br />
interlaced -<br />
 &nbsp; &nbsp;ColorMatrix(clip, interlaced=false)<br />
 &nbsp; &nbsp;源为交错时需要开启<br />
 &nbsp; &nbsp;(Default) false<br />
opt -<br />
 &nbsp; &nbsp;ColorMatrix(clip,opt=3)<br />
 &nbsp; &nbsp;0 - force c routine<br />
 &nbsp; &nbsp;1 - force mmx routine<br />
 &nbsp; &nbsp;2 - force sse2 routine<br />
 &nbsp; &nbsp;3 - auto detect<br />
 &nbsp; &nbsp;(Default) 3<br />
hints -<br />
 &nbsp; &nbsp;ColorMatrix(clip, hints=false)<br />
 &nbsp; &nbsp;检测d2v颜色，根据mode判断是否需要转换<br />
 &nbsp; &nbsp;需要在mpeg2source里打开info=3，且紧接mpeg2source<br />
 &nbsp; &nbsp;不能与d2v同时使用<br />
 &nbsp; &nbsp; (Default) false<br />
d2v -<br />
 &nbsp; &nbsp;ColorMatrix(clip, d2v="FA.d2v")<br />
 &nbsp; &nbsp;作用与hints相同，不能与hints同时使用<br />
 &nbsp; &nbsp; (Default) null<br />
debug -<br />
 &nbsp; &nbsp;ColorMatrix(clip, debug=false)<br />
 &nbsp; &nbsp;(Default) false</p>
<p>ColorMatrix 1.10<br />
[file]http://www.geocities.com/wilbertdijkhof/ColorMatrix_v110.zip[/file]<br />
<!--more--><br />
ColorMatrix 2.0<br />
[file]http://bengal.missouri.edu/~kes25c/ColorMatrixv2.zip[/file]</p>
<p>注:<br />
1) I709(ITU-R BT.709) = Rec.709 coefficients<br />
2) FCC (almost the same as Rec.601)<br />
3) I470(ITU-R BT.470-2) = Rec.601 coefficients [an updated version of Rec.470-6, but coefficients are exactly the same]<br />
4) S170(SMPTE 170M) = exactly the same as Rec.601<br />
5) S240(SMPTE 240M) = almost the same as Rec.709</p>
<p>For ColorMatrix we assume I709 = S240 and I470=FCC=S170, because the error will be very small.</p>
<p>注2:<br />
QuEnc无须使用<br />
QuEnc -> fcc coefficients ~ Rec.601 coefficients</p>
<p>注3:<br />
Anything -> Mpeg-4<br />
------------------------<br />
Source Colorimetry--------ColorMatrix<br />
ITU-R BT.470-----------------No<br />
ITU-R BT.601-----------------No<br />
ITU-R BT.709-----------------Yes<br />
SMPTE 170 M-----------------No<br />
SMPTE 240 M-----------------Yes</p>
<p>注4:<br />
如源为VFAPI，并不会因为RGB24转换影响使用</p>
<pre class="brush: avisynth; title: ; notranslate">
TMPsource(&quot;FA.tpr&quot;)
ConvertToYV12()
ColorMatrix(d2v=&quot;FA.d2v&quot;)
</pre>
<p>注5:<br />
TIVTC vfr 2pass时提示<br />
TFM: crc32 in input files does not match that of current clip...<br />
这是因为TFM在2pass是做crc32检测两次pass是否相同<br />
解决办法是禁止检查(不会 orz...) 或者删除stats文件开头的"crc="</p>
<div class="quote">
<div class="quote-title"></div>
<div class="quote-content">It&#39;s a special function of the tfm 2-pass file, it errors out if you don&#39;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&#39;s trying to protect against random changes that render the stats useless.</p>
<p>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!)</p>
<p>Colormatrix will still have an effect where it is now, though. It just won&#39;t be able to use hints to decide when it actually needs to be used, it&#39;ll just affect every frame (which is usually correct).</p>
<p>URL: http://forum.doom9.org/showthread.php?p=822415#post822415</p></div>
</div>
<p>此文大量参考<acronym title="27th December 2005">v1.10</acronym>所带文档及Doom9.org，一切以其为准<br />
http://forum.doom9.org/showthread.php?t=82217</p>
<p><b>转载请注明版权为FalconIA所有</b></p>
]]></content:encoded>
			<wfw:commentRss>https://falconia.org/blog/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
