x264 --fullhelp:https://gist.github.com/newfront/875122
x264-params関係:https://wiki.videolan.org/Documentation:Modules/x264/
zone:http://www.chaneru.com/Roku/HLS/X264_Settings.htm#zones
preset:https://dev.beandog.org/x264_preset_reference.html
cqm関係:
https://geolog.mydns.jp/www.geocities.co.jp/encmemo5whf6jvag8/index2.html#06-03E
http://agehatype0.blog50.fc2.com/blog-entry-157.html
http://ageha909.blog121.fc2.com/blog-entry-471.html
https://forum.doom9.org/showthread.php?t=96159
https://forum.doom9.org/showthread.php?t=117041
コンソール上 | -x264-params | ffmpeg | 既定値 | 備考 |
---|---|---|---|---|
8x8dct | 8x8dct | -8x8dct | 1 | highプロファイル専用 |
analyse | partitions | -partitions | 0x3:0x113 | b8x8, p8x8, i4x4, i8x8。カンマ区切り |
all | all | p8x8,b8x8,p4x4,i8x8,i4x4 | ||
p8x8 | p8x8 | |||
b8x8 | b8x8 | |||
p4x4 | p4x4 | |||
i8x8 | i8x8 | 8x8dct:1と併用する | ||
i4x4 | i4x4 | |||
aq | aq-mode | -aq-mode | 1:1.00 | 1引数が変わる。0: Disabled, 1: Variance AQ (complexity mask), 2: Auto-variance AQ, 3: Auto-variance AQ with bias to dark scenes |
aq | aq-strength | -aq-strength | 1:1.00 | 2引数が変わる |
b_adapt | b_adapt | -b_strategy | 1 | 0:disable, 1:fast, 2:optimal |
b_bias | b_bias | -bframebias | 0 | |
b_pyramid | b_pyramid | -b-pyramid | 2 | bf:2以上かつ、ref:2以上。0:none, 1:strict, 2:normal |
bframes | bframes | -bf | 3 | |
bluray_compat | bluray_compat | -bluray-compat | 0 | NAL HRD parameters require VBV parameters |
cabac | cabac | -coder | 1 | |
chroma_me | chroma_me | none | 1 | |
chroma_qp_offset | chroma_qp_offset | none | -2 | |
constrained_intra | constrained_intra | -constrained_intra | 0 | |
cplxblur | cplxblur | -cplxblur | ffmpegでは反映されない | |
cqm | エラー | none | デフォルトはflatの全部16 | |
cqm4 | cqm4 | none | 4x4のすべて。以下同様に8x8のカンマ区切り | |
cqm4i | cqm4i | none | 輝度と彩度 | |
cqm4iy | cqm4iy | none | 輝度 | |
cqm4ic | cqm4ic | none | 彩度 | |
cqm4p | cqm4p | none | 輝度と彩度 | |
cqm4py | cqm4py | none | 輝度 | |
cqm4pc | cqm4pc | none | 彩度 | |
cqm4b | cqm4b | none | 輝度と彩度 | |
cqm8 | cqm8 | none | 8x8のすべて。以下同様に8x8のカンマ区切り | |
cqm8i | cqm8i | none | 輝度と彩度 | |
cqm8p | cqm8p | none | 輝度と彩度 | |
cqm8b | cqm8b | none | 輝度と彩度 | |
cqmfile | cqmfile | none | .cfgファイルを指定する | |
crf | crf | -crf | 23 | |
deadzone | 下の個別の方法をとる | none | 21,11 | |
deadzone | deadzone-inter | none | 21 | |
deadzone | deadzone-intra | none | 11 | |
deblock | deblock | -deblock | 1:00:00 | x264-paramsはカンマ区切り。ffmpegはコロン区切り |
decimate | no-dct-decimate | none | 1 | no-なので0でdecimateが有効 |
direct | エラー | -direct-pred | 1 | 0:none, 1:spatial, 2:temporal, 3:auto |
fast_pskip | fast_pskip | -fast-pskip | 1 | |
interlaced | interlaced | none | 0 | 1:tiff |
intra_refresh | intra_refresh | none | 0 | |
ip_ratio | ipratio | -i_qfactor | 1.4 | -i_qfactorは1に指定した値を割った数値が指定される |
keyint | keyint | -g | 250 | |
keyint_min | keyint_min | -keyint_min | 25 | |
level | level | -level | ffmpegだと10倍する | |
lookahead_threads | lookahead_threads | none | -1 | 実行環境に合わせて自動設定 |
mbtree | mbtree | -mbtree | 1 | |
me | me | -me_method | hex | dia, hex, umh, esa, tesa |
me_range | me_range | -me_range | 16 | meがhex, diaなら4から16まで、umh, esaなら16より大きな値も指定できる |
mixed_ref | mixed-refs | -mixed-refs | 1 | 要ref:2以上 |
mvrange | mvrange | none | -1 | -1は自動設定。整数指定 |
nr | nr | -nr | 0 | 整数指定 |
open_gop | open_gop | none | 0 | |
pbratio | pbratio | -b_qfactor | mbtreeを有効にすると変更不可 | |
preset | 効果ない | -preset:v | medium | ultrafast, veryfast, faster, fast, medium, slow, slower, veryslow |
profile | 効果ない | -profile:v | high | baseline, main, high, high10(420 10bit), high422(10bit), high444(10bit) |
psy | psy | -psy | 1 | |
psy_rd | psy-rd | -psy-rd | 1.00:0.00 | カンマ区切り |
qblur | qblur | -qblur | ffmpegでは反映されない | |
qcomp | qcomp | -qcomp | 0.6 | |
qp | qp | -qp | 0で可逆圧縮。crf=0が可逆圧縮なのは 8bit まで。rc=cqpになる | |
qpmax | qpmax | -qmax | 69 | |
qpmin | qpmin | -qmin | 0 | |
qpstep | qpstep | -qdiff | 4 | |
rc | crf | cbr, crf, abr, cqp, 2pass | ||
rc_lookahead | rc_lookahead | -rc-lookahead | 40 | -mbtree 1がないと-rc-lookaheadを指定できないが、精度を上げるには-refs 2以上と-subme 2以上が必要 |
none | ratetol | none | 1.0 | 1passエンコード時に使う |
ref | ref | -refs | 3 | |
scenecut | scenecut | -sc_threshold | 40 | |
sliced_threads | sliced_threads | none | 0 | |
slices | slices | -slices | 最大値はinterlacedの場合は高さを32で割った値。非interlacedの場合は高さを16で割った値 | |
stitchable | stitchable | none | 1で有効 | |
subme | subme | -subq | 7 | 10以上はtrellis:2を指定する |
threads | threads | -threads | -1 | 実行環境に合わせて自動設定 |
trellis | trellis | -trellis | 1 | |
tune | 効果ない | -tune | film, animation, touhou, grain, stillimage, psnr, ssim, fastdecode, zerolatency | |
vbv_bufsize | vbv-bufsize | -bufsize | vbv-bufsizeは単位のkなどをつけないmaxrateと併用する | |
vbv_maxrate | vbv-maxrate | -maxrate | vbv-maxrateは単位のkなどをつけないbufsizeと併用する | |
weightb | weightb | -weightb | 1 | 0:disable, 1:weighted refs, 2:weighted refs + duplicates |
weightp | weightp | -weightp | 2 | 0:none, 1:strict, 2:normal |
zones | zones | none | <start frame>,<end frame>,<options>/<start frame>,<end frame>,<options>形式で指定。例:0,99,subme=8/300,349,subme=6 |