Pフレームの量子化値を固定。I/Bフレームの量子化値は --ipratio と --pbratio の指定値を元にここから計算される。XviDでは量子化値が低いほど画質が良かったが、XviDのQP2はx264のQP18に相当するので注意が必要だ。これはH.264規格が対数尺(*logarithmic scale*)を使っているから。概算の換算式は、QP AVC qp = 12 + 6*log2(ASP qp)。0でロスレスになる。
*1パス画質固定エンコードにはCRFの方が向いている。
http://aflux.deltaanime.net/Zero1/MP4/x264.html#rate-control
--qp
Usage: --qp <integer> (default=26) [1 - 51] (0 = Lossless)
This sets a constant P-frame quantizer. The quantizer for I and B-frames are then calculated by the QP factor set in --ipratio and --pbratio. As with XviD, the lower the quantizer, the higher the quality, but this one of the features that I warned you about. QP 2 in x264 is NOT like QP 2 in XviD, in fact the equivalent to XviD's QP 2 in x264, is QP 18. This is owing to H.264 using a logarithmic scale. The formula to find the approximate equivalent QP is as follows: QP AVC qp = 12 + 6*log2(ASP qp). x264 is also capable of lossless encoding, to enable this mode set the QP to 0.
・default値のQ値には少し不満が出る。
過去のコーダ同様に、少しビットレートを増やす程度に変更すると、納得いくかもしれない。
画質と容量とを、自分の用途にあわせて煮詰め、Q値を設定したい。
30より大きい数字は、劣化具合がカナリ強くなる傾向になる。気をつけよう。