Man / CODEC固有オプション / -x264encopts / subq


Man / CODEC固有オプション / -x264encopts / subq
2010-03-15 (月) 08:07:50更新
カテゴリ:x264

subq=<1−7>:subpel精製品質の調整。

原文''


Adjust subpel refinement quality. This parameter controls quality versus speed tradeoffs involved in the motion estimation decision process. subq=5 can compress up to 10% better than subq=1.

  • 1: Runs fullpixel precision motion estimation on all candidate macroblock types. Then selects the best type. Then refines the motion of that type to fast quarterpixel precision (fastest).
  • 2 :Runs halfpixel precision motion estimation on all candidate macroblock types. Then selects the best type. Then refines the motion of that type to fast quarterpixel precision.
  • 3 :As 2, but uses a slower quarterpixel refinement.
  • 4 :Runs fast quarterpixel precision motion estimation on all candidate macroblock types. Then selects the best type. Then finishes the quarterpixel refinement for that type.
  • 5 :Runs best quality quarterpixel precision motion estimation on all candidate macroblock types, before selecting the best type (default).
  • 6 :Enables rate-distortion optimization of macroblock types in I- and P-frames.
  • 7 :Enables rate-distortion optimization of motion vectors and intra modes. (best)
    In the above, "all candidates" does not exactly mean all enabled types: 4x4, 4x8, 8x4 are tried only if 8x8 is better than 16x16.

訳文

default=5

subpel精製品質の調整。 このパラメータは動き予測の過程で、品質と速度のトレードオフを取り扱う。 subq=5 はsubq=1よりも最大で10% 圧縮できる。

  • 1:最速:全てのマクロブロックタイプに対してフルピクセル精度で動き予測を行った後、ベストのタイプを選択し、そのタイプの動きを、高速な1/4ピクセル精度の動き予測に精製する。
  • 2:1に同じ。ただし、若干低速なフルピクセルサーチと若干低速な1/4ピクセル精度の動き予測精製を使う。
  • 3:全てのマクロブロックタイプに対して1/2ピクセル精度で動き予測を行った後、ベストの形式を選択し、1/4ピクセル精度の動き予測に精製する。
  • 4:全てのマクロブロック形式に対して高速な1/4ピクセル精度で動き予測を行った後、ベストの形式を選択し、1/4ピクセル精度の動き予測に精製する。
  • 5:デフォルト:ベストのマクロブロック形式を選択する前に、全てのマクロブロック形式に対して最高品質の1/4ピクセル精度で動き予測を行う。
  • 6:I、Pフレームのマクロブロックタイプにrate-distortion[1]最適化を行う。
  • 7:ベスト:モーションベクトルとイントラモードに rate-distortion[1]最適化を行う

ここまでに於いて、"all candidates"(すべての候補)とは、必ずしも全てのマクロブロックタイプを試すとは限らない:4x4,4x8,8x4は、8x8が16x16よりも良い結果だった場合にのみ試行される。

※注[1]:rate-distortionの意味不明。Bフレームにも使うにはbrdoを指定。Doom9/MPEG4-AVC情報の"RDO"も参照。
※注[2]:速度と品質への影響大。Doc/x264コデックでのエンコードも参照。

参考

  • subq=7は、x264 rev478以降。
  • MEncoder dev-CVS-060314-20:27-4.0.1 では最大6が「ベスト」。