ほぼMEncoderの-x264encoptsのコマンドと対応している為、訳さず、リンクを貼るに止めます。
性質:
ffmpegX0.0.9u,1passの例(gpac込みでビルドされているので.mp4出力可能)
$ ffmpeg -i XXX.mpeg -an -f yuv4mpegpipe \ -croptop 0 -cropbottom 0 -cropleft 0 -cropright 0 -s 640x480 \ -r 29.97 - | x264 -v -A i4x4 -b 1 --trellis 1 --qpmin 22 qpmax 51 -B 1024 \ --me hex --threads 2 --level 51 --fps 29.97 -o XXX.mpeg.ff.video.mp4 -640x480
ffmpegX0.0.9u同梱版よりも新しい為、効かないオプションや動作が異なる可能性があります。
$ x264 x264 core:44 svn-426 Syntax: x264 [options] -o outfile infile [widthxheight] Infile can be raw YUV 4:2:0 (in which case resolution is required), or AVI or Avisynth if compiled with AVIS support (no). Outfile type is selected by filename: .264 -> Raw bytestream .mkv -> Matroska .mp4 -> MP4 if compiled with GPAC support (no)
ヘルプの表示
最大GOPサイズ [250]
最小GOPサイズ[25]
上記以外のI-framesを入れる際の判断基準(閾値) [40]
I-P間に挟むB-frame数 [0]
Quality-based VBR (nominal QP)
画質ベースVBR(名目上のQP)
(svn-483)
adaptive B-frame のオフ
Bフレームを使う頻度を増やす(負の値にすると減らす) [0]
Keep some B-frames as references
CABACオフ
参照フレーム数[1]
loop filterオフ
Loop filterのパラメータ。AlphaC0 と Beta [0:0]
Set QP (0=lossless) [26]
Set bitrate
Quality-based VBR (nominal QP)
Set min QP [10]
Set max QP [51]
Set max QP step [4]
Allowed variance of average bitrate [1.0]
Initial VBV buffer occupancy [0.9]
QP factor between I and P [1.40]
QP factor between P and B [1.30]
QP difference between chroma and luma [0]
Enable multipass ratecontrol:
- 1: First pass, creates stats file
- 2: Last pass, does not overwrite stats file
- 3: Nth pass, overwrites stats file
Filename for 2 pass stats ["x264_2pass.log"]
Ratecontrol equation ["blurCplx^(1-qComp)"]
QP curve compression: 0.0 => CBR, 1.0 => CQP [0.60]
Reduce fluctuations in QP (before curve compression) [20.0]
Reduce fluctuations in QP (after curve compression) [0.5]
Tweak the bitrate of some regions of the video
Each zone is of the form
<start frame>,<end frame>,<option>
where <option> is either
q=<integer> (force QP)
or
b=<float> (bitrate multiplier)
Partitions to consider ["p8x8,b8x8,i8x8,i4x4"]
- p8x8, p4x4, b8x8, i8x8, i4x4
- none, all
(p4x4 requires p8x8. i8x8 requires --8x8dct.)
Direct MV prediction mode ["temporal"]
- none, spatial, temporal
Weighted prediction for B-frames
Integer pixel motion estimation method ["hex"]
- dia: diamond search, radius 1 (fast)
- hex: hexagonal search, radius 2
- umh: uneven multi-hexagon search
- esa: exhaustive search (slow)
Maximum motion vector search range [16]
Subpixel motion estimation and partition
decision quality: 1=fast, 6=best. [5]
RD based mode decision for B-frames. Requires subme 6.
Decide references on a per partition basis
Ignore chroma in motion estimation
Jointly optimize both MVs in B-frames
Adaptive spatial transform size
Trellis RD quantization. Requires CABAC. [0]
- 0: disabled
- 1: enabled only on the final encode of a MB
- 2: enabled on all mode decisions
Disables early SKIP detection on P-frames
Noise reduction [0]
Preset quant matrices ["flat"]
- jvt, flat
Read quant matrices from a JM-compatible file
Overrides any other --cqm* options.
Set all 4x4 quant matrices Takes a comma-separated list of 16 integers.
Set all 8x8 quant matrices
Takes a comma-separated list of 64 integers.
Set both luma and chroma quant matrices
Set individual quant matrices
VUI設定はエンコーダが使うものではなく、再生機器に情報提供するだけのもの。詳細はdoc/vui.txt参照。自己責任で使う事。
Specify Sample Aspect Ratio
*SARの指定値はガーベラ 趣味の花束ブログ参照。
Specify crop overscan setting ["undef"]
- undef, show, crop
Specify video format ["undef"]
- component, pal, ntsc, secam, mac, undef
Specify full range samples setting ["off"]
- off, on
Specify color primaries ["undef"]
- undef, bt709, bt470m, bt470bg
smpte170m, smpte240m, film
Specify transfer characteristics ["undef"]
- undef, bt709, bt470m, bt470bg, linear,
log100, log316, smpte170m, smpte240m
Specify color matrix setting ["undef"]
- undef, bt709, fcc, bt470bg
smpte170m, smpte240m, GBR, YCgCo
Specify chroma sample location (0 to 5) [0]
Specify level (as defined by Annex A)
Specify framerate--デフォルトは25
First frame to encode
Maximum number of frames to encode
Specify output file
Parallel encoding (uses slices)
Disable all CPU optimizations
※x86のアセンブラで書かれた部分を使わない。
Disable PSNR computation
Quiet Mode--エンコード中にターミナルに表示を出さない
Print stats for each frame--エンコード中にターミナルに各フレームのエンコード状況を出す
Show a progress indicator while encoding--エンコード中にターミナルに進捗状況を出す
Show MB types overlayed on the encoded video
エンコードされた映像上にマクロブロック・タイプをオーバーレイ表示する。
Use access unit delimiters