一、x264的参数设置
Bitstream profile:压缩时使用规格模式。可选项:Auto、Baseline、Main、High建议:选择Main
(注意:需要在PSP上播放的MP4-AVC必须选择Main,否则PSP无法播放!)
Bitstream level:--Level:表示编、解码等级
P frame Quantitizer:--qp:固定量化模式并设置使用的量化值。
Maximum interval between IDR-frames:--keyint:最大IDR帧间距。一般来说 压 制 动画时,可以增大该值。
默认值:250
Minimum interval between IDR-frames:--min-keyint:最小IDR帧间距。一般来说 压 制 动画时,可以减小该值。
默认值:25
Frames used as predictors in B and P frames:--ref:最大参考帧数,范围0-16。该参数对质量和压缩比都有提高。
建议:大于1
(注意:数值越高速度越慢!)
Maximum B frames between I and P frames:--bframes:在I帧与P帧之间可插 入 B 帧数量的最大值,范围0-16。
建议:大于1
(注意:数值越高速度越慢!)
Adaptive B-frame decision method:--b-adapt:自适应B帧判定模式。0:关闭;1:快速;2:优化。下拉菜单中:0-Off为:关闭,1-Fast为:快速,2-Optimal为:优化。默认值为:1-Fast。
建议:选择2-Optimal
(注意:当该选项选择为2时, Number of B-frames参数设置较高时,编码速度会下降!)。
B-frames used as for predicting:--b-pyramid:允许B帧做参考帧。
建议:选择No
Alpha parameter of deblocking filter:设置环路滤波的AlphaC的参数,范围-6-6。
默认值:0
Beta parameter of deblocking filter:设置环路滤波的Beta的参数,范围-6-6。
默认值:0
(注意:Alpha parameter of deblocking filter和Beta parameter of deblocking filter在X264中的参数为--deblock 0:0前一个0对应Alpha parameter of deblocking filter的参数值,后一个0对应Beta parameter of deblocking filter的参数值!)