Xvid 视频压缩编码器设置指南 | 您所在的位置:网站首页 › xvid解码 › Xvid 视频压缩编码器设置指南 |
Xvid 视频压缩编码器设置指南
选择XVID编码器 配置XVID编码器 Profile Level Quantization type Adaptive Quantization Interlaced Encoding Quarter Pixel Global Motion Compensation B-VOPs Max consecutive BVOPs Quantizer ratio Quantizer offset Packed bitstream Level Aspect Ratio Encoding type Zone Advanced Options - Motion Motion search precision VHQ mode User VHQ for Bframes too Use chroma motion Turbo Frame drop ratio Maximum I-frame interval Advanced Options - Quantization Quantization restrictions Trellis quantization Advanced Options - Debug Performance optimizations FourCC used Output DebugString debug level Print debug info on each frame Display encoding status 参考文献 选择XVID编码器 配置XVID编码器 Profile Level 需要选择“AS@L5”,否则不能压缩720宽的图像。 Quantization typeH.263在比特率较小时较好,更柔和。 MPEG4边界更锐利,比特率较高时较好。 Adaptive Quantization对人眼不敏感的很黑或很亮的地方自适应处理。 Interlaced Encoding如果是交错的视频(没有混合场的一帧图像),则需要选择。 Quarter Pixel1/4像素,实现更精确的运动分析,对于分辨率小的图像更好。 Global Motion Compensation如果场景有很多移动目标,提供更好性能。 B-VOPsB-Frame (Bidirectional frames, 可提升视频质量)。 如果片源动态比较小,则可以适当开大一些,比如3、4;如果码率很充足或片源很复杂,包含大量大动态场景、运动不规则、场景切换频繁等等,则应减少BF用量,甚至不用BF。 Max consecutive BVOPs最大的连续B帧数,0关闭B帧,1缺省,2更好质量,3最大效果。 多少个BF连续出现,没有数量限制(你可以设置成1,也可以设置成1000)。具体用多少XVID自行判断,这个地方只设定最大值。 Quantizer ratio相对于P帧,B帧的量化倍数,越大则压缩率越高。 how many more times the B-frames should be compressed compared to P-frames. Quantizer offsetthe quantizer value to be added to B-frames compared to surrounding P-frames (so a setting of "1.00" would add "1.00" to the quantizer value of the B-frame, again the higher the quantizer, the more compression used). Packed bitstreamsetting allows for bitstreams that can be decoded without delay. This option was added to solve problems with choppy playback. 开启BF的XviD制作的avi,在播放时会延迟一帧(就是以前播放时画面第一帧的那个黑色画面,告诉你该视频使用了BF)(制作成ogm、mkv、mp4则不会)。而Packed bitstream选项的作用是解决这个问题。不过开启2个以上的连续BF并用到了Packed bitstream的时候,只有XviD的解码器可以正常解码。而用老版本的DivX/ffdshow解码,水平移动的画面会不顺畅(画面朝移动方向抖动)。 Level Aspect Ratio Encoding type实时压缩只能选择Single Pass。 Zone不同时间段选择不同的压缩参数,如字幕可以选择不同的算法。 Advanced Options - Motion Motion search precision运行搜索精度,越高质量越好,但是速度越慢。 VHQ mode许可更精确搜索,但是速度很慢。 User VHQ for Bframes tooB帧也使用VHQ模式,更慢。 Use chroma motion降低速度5%-10%,但是减少大块的方块效果(reducing macro blocks.) Turbo进行速度优化,以损失很少的质量为代价。 Frame drop ratio大于0将允许编码器抛弃帧。 Maximum I-frame interval最大的关键帧间隔,防止场景不变,总是不插入关键帧,导致播放的时候无法前进后退(需要首先定位关键帧) Advanced Options - Quantization Quantization restrictions把所有Min设置为2(1仅仅增加文件大小,不会增加质量),其他可以让编码器自动处理。 Trellis quantization降低编码速度和质量,但是可以减小文件大小。 Advanced Options - Debug Performance optimizations优化 FourCC usedXVID即可 Output DebugString debug level输出调试信息的等级,取0。 Print debug info on each frame在每一帧上附加调试信息,不选。 Display encoding status显示压缩状态,不选。 参考文献【1】 http://www.dgwxx.net:81/nds/index.php?a81afWHZpRF9tYW51YWw%3D 【2】 http://forum.doom9.org/archive/index.php/f-52.html |
CopyRight 2018-2019 实验室设备网 版权所有 |