Nandub 设置全释: V1.0
这是一个旧文档,文档的内容可能已经失去时效性,信息仅供参考。
<br /><p style="margin: 12px; text-indent: 24px" align="left">Nandub 设置全释: V1.0(中文版) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">Last updated 25.06.2001. </p><p style="margin: 5px 16px; text-indent: 24px" align="left">0. 关于这个文档 本文由 Koepi 建立并维护, 始建于 2001年5月12日。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">1. 简介 本文着力解释NanDub中关于SBC的所有设定的实际意义。 </p><p align="center"><SImg>448|middle</SImg></p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">上图位置是进入NanDUB的主要SBC设定界面。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2. [Video] -> [SBC Options] -> [SBC Setting] -> [DivX – Options]: </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.1 Codec(编码解码平台)的选择 在此处你可以选择DivX;-)(M$MPEG4v3的非法黑客版本)或免费(合法)的MPEG4v2两种Codec。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">对于DivX;-),到目前为止NanDUB只工作在DivX;-) 3.11 alpha版的Codec。任何例如“VKI”的“改进”版DivX;-) Codec都会造成NanDub的混乱和错误——崩溃或无法正确计算文件大小。 </p><p align="center"><SImg>449|large</SImg></p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">而MPEG4v2是过时的Codec,尽管任何MS-Windows操作系统都可以顺利的播放,但在同样的码流设定下,画面质量会更差。这一点需要注意 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.2 BitRate(码流) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">在此设定标准的码流,NanDUB的bitrate calculator(码流计算器)计算出的码流也会自动填入此处。NanDUB会进行计算,以使输出文件尽量接近此码流。</p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.3 Keyframe interval(最大关键桢距) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">这里设定最大允许的关键桢距离。例如设定为1,即意为“每1秒至少有一个关键桢”。 建议设定值是10到12左右。设定的数值越小,占用的空间越大;设定的数值越大,播放时寻址越慢。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.4 Minimum allowable bitrate(最低码流允许值) 引用 yaz : “首先nandub计算下一桢、压缩、运动补偿...之后检查码流最低允许值。意即如果NanDUB计算出的压缩码流低于码流最低允许值,便直接使用码流最低允许值压缩下一桢。 因此,由于码流最低允许值 忽略了对平均码流的计算,所以有可能会使最终的输出文件超出预定的大小。(在NanDUB的输出图示界面将只显示计算的码流,而不会特别显示码流最低允许值)</p><p style="margin: 5px 16px; text-indent: 24px" align="left">使用 350 或 400 或许是合适的。设定为更低将会降低输出画面的质量。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.5 Internal SCD(内置场景变换检测) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">如 yaz 指出的,internal SCD(内置场景变换检测) 的工作基于画面的运动。如果画面运动的差值指数(例如已达最大值299)大于已给定的设定值,NanDUB就在此插入关键桢。当然这会在大动态场景下插入大量的关键帧。 引用他的话:“在亮度变化较小的情况下,内置场景变换检测提供了较精确的结果。建议设定值不低于98%,例如99%。” 设定值如为100%即相当于关闭这个功能。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.6 Space KFs(最小关键帧距) 默认的 24帧 看来工作的不错,可以减少过量的使用关键帧的情况。如果设定值太高似乎就体现不了SBC的作用了。 如果使用了AntiShit ,也可以忽略此处。AntiShit已经可以防止SCD(场景变换检测)使用过量的关键帧。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.7 Anti-shit =)(防错处理) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">AntiShit =) (防错处理) 会解压已编码的帧并将之与编码前的帧相比较。 在AntiShit =) (防错处理)决定重新对某帧再次编码的时候,如下设置将起作用: (同样的内容也可以在NanDUB的readme中找到) 注:需要将码流控制的比较低时,应考虑使用AntiFreeze选项 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.7.1 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">Shit dB(极差画面处理) 当开启时(值不为0),解压已编码的帧并将之与编码前的帧相比较。其画面差距值会被评判为0到大约95db。如果此值低于设定值(画面差距太大),将会在此处强制插入关键帧。而后再次比较,直到达到满意的画面。 推荐值为16。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.7.2 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">Min quality dB (较差画面处理) 建议此处设定值为0(关闭)或为大约28-30。 当画面差距值低于设定值(画面差距较大),Nandub会降低压缩级别(提高码流),重新压缩此帧,但并不像“Shit db”中那样改为关键帧。 In the debug ouput, you should see 2 new values : PSNR=aa.aa(ww.ww) aa.aa is the average PSNR of the frame, ww.ww the measure of its worst block. "AntiShit" and "Min Quality" both use the ww.ww measure. </p><p style="margin: 5px 16px; text-indent: 24px" align="left">2.7.3 Motion Modulation (运动平衡) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">这个新的参数,会依据对运动画面的检测,细微的调整AntiShit 和 Min Quality的实际设定。如果画面运动变大,便相应调整降低一定百分比的AntiShit 和 Min Quality的实际设定。 当Motion Modulation (运动平衡)设定为50%时: with motion = 0 : AntiShit=16, Min Quality=30 with motion =150 : AntiShit=12, Min Quality=22 with motion = 300 : AntiShit=8, Min Quality=15 当Motion Modulation (运动平衡)设定为25%时: with motion = 0 : same with motion =150 : AntiShit=14, Min Quality=26 with motion = 300 : AntiShit=12, Min Quality=22 3. The Video -> SBC-Options -> Bitrate Curve: 3.1 Motion based curve Modulation(基于运动检测的码流调控) 这是一个非常优秀的运算法则——根据运动来调控压缩码流。 设定为 20%-30% 时工作的不错。建议30%。 </p><p align="center"><SImg>450|large</SImg></p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.2 Curve Compression (码流再压缩) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">symertric (均衡的再压缩) 此处设定是将First-Pass中确定的码流曲线,按一定比例压缩。平滑的降低码流,以减小输出文件所占用的空间。 此处设定值如果过高,会大幅降低画面品质,特别是大动态画面会处理的很难看。因此建议值为20-35%左右。 如果你是使用“calc”按钮,就需要手动设定一下[Option] – [Preference...] – [SBC] 项目下的Crosspoint值。Crosspoint值使用280 看来相当不错。 asymertric (不均衡的再压缩) 新的asymmetrical curve compression(不均衡的再压缩)功能似乎工作的更好。 此处可以分别设定静态(Low)和动态(High)场景下的再压缩比例。例如Low 25%;high 15%,将会保留更多大动态场景下的信息。不过,建议值是Low 15;High 25。 注意:此设定工作的不错,但也有可能使中等运动的场景丢失过多的信息。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.3 Luma Correction(亮度调整) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">默认值工作的很好。工作原理如下: "在First-Pass中,每一帧会被分析其中的’ Luma Noise亮度噪音’。在整个场景中亮度比较一致的情况下此值较小,当对比度高时则值较大。亮度比较一致的情况下,也就是’ Luma Noise亮度噪音’较低的情况下,画面更难被压缩,压缩比也会成倍降低。因此需要’ Luma Correction(亮度调整)’"</p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.4 End Credits Start Frame(制作人名单起始帧) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">在此输入影片结尾制作人名单开始处,所在的帧数。 影片结尾制作人名单会耗费意想不到的大量空间,此设定可以避免这种浪费。</p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.5 End Credits Rate(制作人名单压缩比) 此处设定影片结尾制作人名单的压缩码流。其他例如“min kbps”的设定不会影响此处。建议设定值,我认为是越低越好。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.6 High-pass / Low-pass (动态/静态场景码流平衡) High-pass平衡压缩码流使用的最小值,Low-pass反之。工作原理如下: "简单地说,低于High-pass设定值的码流部分会平均使用在其他帧的压缩上。高于Low-Pass设定值的码流部分会平均自其他帧的压缩上提取。以达到最佳的压缩平衡。"</p><p style="margin: 5px 16px; text-indent: 24px" align="left">建议设定值为 high-pass = 270 (默认值),在目标输出文件大于1(2CD)时low-pass设定为 2500-3000为佳。在目标输出文件小于650M(1CD)时low-pass设定为2000-2500为佳。过高的Low-pass设定值可能会造成在有些系统上播放不良。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.7 Bitrate redistribution(码流再分配) Bias是老式的码流再分配方式——它为每一帧分配固定的值。proportional 分配方式则较为灵活——较小的帧分配较少的码流、较大的帧分配较多的码流。 推荐设为proportional。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">3.8 Smoother(码流曲线平滑) 建议不调整,或是设定为3% - 5%。 此设定避免每一帧压缩等级过多的变化而耗费过多的系统资源。例如设定为5%时,如有连续3帧分别准备以95、100、105kbps压缩,通过Smoother(码流曲线平滑)调整,最终他们都会以100kbps压缩。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">4. The Video -> SBC-Options -> Motion-Detection - Options: </p><p style="margin: 5px 16px; text-indent: 24px" align="left">4.1 Span (画面检测跨度) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">感谢 Maras 此处的设定值设定了NanDUB检测画面运动时,进行互相比较的连续的前后帧数。 The rule is the same for sensitivity, but each frame in span scope has different weigth. For Span=3 weigths goes like 1,2,3,7,6,5,4. </p><p> </p><p align="center"><SImg>451|large</SImg></p><p>默认值是 8 ,工作的很好。据 rmatei 所说,设定值过高的话,时间较短的动态画面可能会无法被检测出来,结果也会较难看。当然压缩时间也会更长。 </p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">4.2 Sensitivity (敏感度) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">再次感谢 Maras 此处设定值,判断达到多少关键区块变化下,运动检测判定为最大值的299。(how many keyblocks in a deltaframe should be different to make the frame considered to be at motion maximum (299)) 例如设定为10,如有10个以上关键区块变化,运动检测判定为最大值的299;如有5个关键区块变化,运动检测判定为150。 10是极限值,即使设定为100也与设定是10相同。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">4.3 Fast/Low Motion sliders(Fast/Low Motion开关滑块) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">如设定值均为300,则表示关闭在high-motion DivX;-) 和 low-motion-DivX;-) 编码之间的切换。 使用较低值则使编码在high-motion DivX;-) 和 low-motion-DivX;-) 编码之间的切换。例如设定fast motion = 285、low-motion = 265,则当First-Pass时运动检测大于285的场景使用DivX;-) high motion编码。当First-Pass时运动检测小于265的场景使用DivX;-) low motion编码。 不要使用这个开关!会不必要的降低动态场景下的画面质量,或出现丢帧、死帧情况。 在后面使用 bitrate reservoir modulation (码流量化调控)和 DRFs(细节移除因子控制) 完全可以替代Fast/Low Motion开关滑块的功能,并拥有更好的效率。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">4.4 Crispness modulation (碎片调控) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">碎片调控的功能是控制编码中的画面碎化级别。意味着大动态画面下将画面碎化级别设定为100至当前设定值。 推荐值为 20-30%。 4.5 Enable Bits Reservoir modulation(开启码率调控) 引用 Demi9OD:</p><p style="margin: 5px 16px; text-indent: 24px" align="left">"功用是在大动态画面下提高DRFs (细节移除因子控制)以降低实际码流。</p><p style="margin: 5px 16px; text-indent: 24px" align="left">This drops the actual bitrate under the first pass curve and adds to the gauge. These bits are then distributed into scenes with less motion. If you have your gauge set from 25-70, it should make no difference if BRm is on or off, file size should end up close to target."</p><p style="margin: 5px 16px; text-indent: 24px" align="left">缺点是画面质量大幅下降,不推荐使用。 5. The SBC-Options -> Gauge Control - Options:(标尺控制面板)</p><p style="margin: 5px 16px; text-indent: 24px" align="left">5.1 Payback Delay (码流补偿延迟) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">此处设定一些“超量”使用码流压缩的场景后,多少时间内将“超量”的码流“赔偿”回输出影片。 Nandub is using it for the span of time you enter here to "compensate for bits overused by the gauge min limit" (according to Maras ).</p><p style="margin: 5px 16px; text-indent: 24px" align="left">默认值45 seconds工作的很好。而使用最大值120更适合那些持续大动态高码流的影片。</p><p style="margin: 5px 16px; text-indent: 24px" align="left">5.2 Corrections on low-bitrate conditions(低码流修正) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">如果同时使用 “minKbps”功能很可能导致画面停顿。不推荐使用。 但若使用此功能,应同时选择 Modulated 可以允许使用更多的码流以避免画面停顿。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">5.3 Gauge(标尺)</p><p style="margin: 5px 16px; text-indent: 24px" align="left">标尺影响 质量/大小 的比例。与 DRF 等其他设定互相联系。 设定为 min=30 start=35 max=80似乎不错。 标尺会影响码流控制。 If the codec runs out of bits, the less bits for the next frame encoded are used until the frame is dropped. Gauge min is the minimal level the bitrate reservoir gets reset to if it drops below this level, it prevents the codec from using a too high compression on a frame. A good rule to get oversized movies is to set a high min. gauge and a low max DRF.Gauge max is limiting the upper bitrate reservoir border, if it gets too big it may introduce too low compression levels. </p><p style="margin: 5px 16px; text-indent: 24px" align="left">5.4 KF Boost(关键帧控制) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">The amount of this value is added to the bitrate reservoir at insertation of a keyframe. 推荐值5%,但很多人使用0% 工作的也很好。设定值太高会使输出文件大小难以控制,最大在5%以内为宜。 鉴于新的 "Keyframe DRF" 功能,建议使用 5%. </p><p align="center"><SImg>452|large</SImg></p><p>5.5 Freeze 不要调整此处的值。 只对First-Pass起效用。 </p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">6. The Video - SBC-Options - Compression Levels(压缩级别控制) </p><p align="center"><SImg>453|large</SImg></p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">DRF "Detail Removal Factor" (细节移除因子控制)使减少画面细节,提高压缩能力的功能。会使画面粗糙。一般使用2x (min) 、5x(max)较好。在特殊需要下可以适当提高max的级别。最大为16,例如2x (min) 、16x(max)。 低 max DRF = 细致画面 — 较大输出文件;高 max DRF = 粗糙画面 — 较小输出文件。 新的 Keyframes quality 参数。推荐设定为2 或 3。可以较以往大幅提高影片的压缩效率和制作质量。 </p><p style="margin: 5px 16px; text-indent: 24px" align="left">8. The SBC Options -> Bitrate Calculator(码流计算) </p><p style="margin: 5px 16px; text-indent: 24px" align="left">填入你希望输出文件的Final Size,音频的码流后点击“Calculate”。软件就会计算出合适的码流,并会自动将结果填入SBC Setting的设定中。 </p><p align="center"><SImg>454|middle</SImg></p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">9. The Options -> Preferences - Options </p><p style="margin: 5px 16px; text-indent: 24px" align="left">9.0,5 The Main - tab </p><p style="margin: 5px 16px; text-indent: 24px" align="left">此处设定运算时的处理器优先权。 </p><p align="center"><SImg>455|large</SImg></p><p>9.1 The Scene - tab Yaz 解释这个alternate SCD(替代场景变换检测)工作依据: 亮度变化 (其他参阅 internal SCD). 当亮度变化超过限定值,则加入关键帧。引用他的话来说: "默认设定大部分情况下工作的不错。但对于比较按色调的影片(例如"matrix", "dark city") 可以设定得偏低一些,但不要低于30%。 (33% - matrix) 。“ 备注: 原始的SCD似乎可以被放弃,因为很难确定一个可以放之皆准的标准。 </p><p> </p><p align="center"><SImg>456|large</SImg></p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">推荐保持 Interframe cut and fade SCD的原始设定。 (或就使用alternate SCD(替代场景变换检测),真的工作的不错)。 9.2 The AVI - tab </p><p style="margin: 5px 16px; text-indent: 24px" align="left">Hehehe, vV_nn inserted an "I"m the stupidest man on earth :P" option</p><p style="margin: 5px 16px; text-indent: 24px" align="left">You may check this if you want to have a confirmation-dialogue before overwriting a stats-file. </p><p align="center"><SImg>457|large</SImg></p><p>9.3 The SBC - tab 目前没有关于 crosspoint 设定的依据标准。请参阅Curve Compression (码流再压缩)中相应的部分。 推荐使用 230-280 (<600M或 1 CD); 350-460(>1G 2 CD)。 参阅NanDUB相关文档可以了解crosspoint的工作原理。 <SImg>458|large</SImg></p><p>10. General things / FAQ 5. Question: 如何控制输出文件大小?</p><p> </p><p style="margin: 5px 16px; text-indent: 24px" align="left">Answer: rmatei suggests:</p><p style="margin: 5px 16px; text-indent: 24px" align="left">如果输出文件过小:</p><p style="margin: 5px 16px; text-indent: 24px" align="left">除了控制bitrate,anti-shit处改为anto-freeze或none外</p><p style="margin: 5px 16px; text-indent: 24px" align="left">降低DRF, 升高 min & max gauge, 使用 bicubic做Resize, 提高输出分辨率。降低Crosspoint</p><p style="margin: 5px 16px; text-indent: 24px" align="left">如果输出文件过大:</p><p style="margin: 5px 16px; text-indent: 24px" align="left">别忘了关于credits的选项, 升高DRF, 降低 min & max gauge, 使用bilinear做Resize, 降低输出分辨率,提高Crosspoint</p><p style="margin: 5px 16px; text-indent: 24px" align="left">1. Question: Do I need to use all the filters (resize, deinterlace, smoothers,..) at the first pass as well?</p><p style="margin: 5px 16px; text-indent: 24px" align="left">Answer: Yes. Every filter that is changing the quality of the movie is affecting the "compressability" of it as well. For a good looking movie after second pass the first pass has to be _precise_, that"s how nandub works. You will get an overcompressed movie if you don"t use e.g. the smoother filters in the first pass as nandub decides about the compression of a frame by looking how big it was after the first pass. I tried it once or twice to not use the same filters in the first pass and the movies looked like shit after that as the frames were compressed too high.</p><p style="margin: 5px 16px; text-indent: 24px" align="left">2. Question: I did all you wrote above and the result is all odd - blocky and jerky. What to do?</p><p style="margin: 5px 16px; text-indent: 24px" align="left">Answer: You may have a problem with too many keyframes produced by AntiShit. Try disabling it by setting it to 0 and see if it works! Disable minQuality as well. Else, set the min gauge lower and the max DRF higher.</p><p style="margin: 5px 16px; text-indent: 24px" align="left">3. Question: Which resize filter method should I use in nandub?</p><p style="margin: 5px 16px; text-indent: 24px" align="left">Answer: If you"re going to do 1 CD rips then use precise bilinear, as it smoothers the picture a little and makes it better compressable. For 2 CD rips, use precise bicubic, as it sharpens the picture a bit and thus enforces the codec to use more bits as it doesn"t "like" sharp edges.</p><p style="margin: 5px 16px; text-indent: 24px" align="left">4. Question: What"s with the end credits? Nandub always makes them _huge_ in bitrate/size!</p><p style="margin: 5px 16px; text-indent: 24px" align="left">Answer: Well... encode them manually. Take a pencil and a papersheet and then search your input video for the beginning of the end credits. In the statusbar of nandub you can see the actual frame number. Write it down. Now go to "select range" in the video menu, enter start: 0, end: (your frame-number you wrote down). Do all the usual main setup for the movie, except for the end credits: leave them empty.</p><p style="margin: 5px 16px; text-indent: 24px" align="left">Do "save avi as" as this starts the second pass.</p><p style="margin: 5px 16px; text-indent: 24px" align="left">If this is ready, go to the range-settings again and enter start: (your downwritten number), end: last frame of the movie... you can get the number by moving the slider all to the right side before (maybe you should write downthat number as well ;) ). If you selected the credits range now, just go to the normal settings like DivX Bitrate etc and lower them to for example 200 kbps. Min Kbps to 150, Hi-Pass 150 as well, main DRFs 2x-16x,... and so on. Well, with nandub b0.24 the end credits solution should finally be done right. (I can"t confirm this yet.)</p><p style="margin: 5px 16px; text-indent: 24px" align="left"> The End This "nandub options explained"-document is (c)2001 by Koepi. </p><p style="margin: 5px 16px; text-indent: 24px" align="left">Thanks for everyone who is giving support at doom9"s forum ! Without all your help i couldn"t have compiled this document, so you are the real maintainers of this document!!! Treat it as public domain licensed, but if you use it for anything</p><p style="margin: 5px 16px; text-indent: 24px" align="left">please do me the favor for my ego to mention me ;-)
http://members.tripod.de/de_koepi/nandub_options_explained.html </p>