x264 的preset设置

2019-04-17  本文已影响0人  smallest_one

目录

  1. 参考
  2. x264 的preset设置

1. 参考

2. x264 的preset设置

以下为x264 --fullhelp打印的preset部分的说明。

--preset <string>       Use a preset to select encoding settings [medium]
    Overridden by user settings.
    - ultrafast:
      --no-8x8dct --aq-mode 0 --b-adapt 0
      --bframes 0 --no-cabac --no-deblock
      --no-mbtree --me dia --no-mixed-refs
      --partitions none --rc-lookahead 0 --ref 1
      --scenecut 0 --subme 0 --trellis 0
      --no-weightb --weightp 0
    - superfast:
      --no-mbtree --me dia --no-mixed-refs
      --partitions i8x8,i4x4 --rc-lookahead 0
      --ref 1 --subme 1 --trellis 0 --weightp 1
    - veryfast:
      --no-mixed-refs --rc-lookahead 10
      --ref 1 --subme 2 --trellis 0 --weightp 1
    - faster:
      --no-mixed-refs --rc-lookahead 20
      --ref 2 --subme 4 --weightp 1
    - fast:
      --rc-lookahead 30 --ref 2 --subme 6
      --weightp 1
    - medium:
      Default settings apply.
    - slow:
      --direct auto --rc-lookahead 50 --ref 5
      --subme 8 --trellis 2
    - slower:
      --b-adapt 2 --direct auto --me umh
      --partitions all --rc-lookahead 60
      --ref 8 --subme 9 --trellis 2
    - veryslow:
      --b-adapt 2 --bframes 8 --direct auto
      --me umh --merange 24 --partitions all
      --ref 16 --subme 10 --trellis 2
      --rc-lookahead 60
    - placebo:
      --bframes 16 --b-adapt 2 --direct auto
      --slow-firstpass --no-fast-pskip
      --me tesa --merange 24 --partitions all
      --rc-lookahead 60 --ref 16 --subme 11
      --trellis 2

各preset参数不同的对比可参考[2] dev.beandog.org/x264_preset_reference中的表格。

以下表格为不同于medium的preset会修改的参数的说明。

参数名称 x264_param_t的成员 说明
ref i_frame_reference Number of reference frames [3]
scenecut i_scenecut_threshold How aggressively to insert extra I-frames [40]
no-deblock b_deblocking_filter Disable loop filter
no-cabac b_cabac Disable CABAC
bframes i_bframe Number of B-frames between I and P [3]
- analyse.intra -
partitions analyse.inter Partitions to consider ["p8x8,b8x8,i8x8,i4x4"]
(p4x4 requires p8x8. i8x8 requires --8x8dct.)
no-8x8dct analyse.b_transform_8x8 Disable adaptive spatial transform size
me analyse.i_me_method 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
- tesa: hadamard exhaustive search (slow)
subme analyse.i_subpel_refine Subpixel motion estimation and mode decision [7]
- 0: fullpel only (not recommended)
- 1: SAD mode decision, one qpel iteration
- 2: SATD mode decision
- 3-5: Progressively more qpel
- 6: RD mode decision for I/P-frames
- 7: RD mode decision for all frames
- 8: RD refinement for I/P-frames
- 9: RD refinement for all frames
- 10: QP-RD - requires trellis=2, aq-mode>0
- 11: Full RD: disable all early terminations
aq-mode rc.i_aq_mode AQ method [1]
- 0: Disabled
- 1: Variance AQ (complexity mask)
- 2: Auto-variance AQ
- 3: Auto-variance AQ with bias to dark scenes
no-mixed-refs analyse.b_mixed_references Don't decide references on a per partition basis
trellis analyse.i_trellis Trellis RD quantization. [1]
- 0: disabled
- 1: enabled only on the final encode of a MB
- 2: enabled on all mode decisions
b-adapt i_bframe_adaptive Adaptive B-frame decision method [1]
Higher values may lower threading efficiency.
- 0: Disabled
- 1: Fast
- 2: Optimal (slow with high --bframes)
no-mbtree rc.b_mb_tree Disable mb-tree ratecontrol
weightp analyse.i_weighted_pred Weighted prediction for P-frames [2]
- 0: Disabled
- 1: Weighted refs
- 2: Weighted refs + Duplicates
no-weightb analyse.b_weighted_bipred Disable weighted prediction for B-frames
rc-lookahead rc.i_lookahead Number of frames for frametype lookahead [40]
direct analyse.i_direct_mv_pred Direct MV prediction mode ["spatial"]
- none, spatial, temporal, auto
merange analyse.i_me_range Maximum motion vector search range [16]
no-fast-pskip analyse.b_fast_pskip Disables early SKIP detection on P-frames
上一篇 下一篇

猜你喜欢

热点阅读