encoding.info
You are hereSourcePredictionTransformEntropy codingFiltersFramesDecisionsRate controlPerceptionQualityBitstreamSettingsEncoder map
Page 7 of 7 in Decisions

Presets as search pruning

Decisions · implementation · added 2026-11-15

A preset is a coordinated bundle of speed and compression choices. Many of them limit how many reference frames, block sizes, vectors and modes x264 tries, or how carefully it compares them: in that part, a faster preset is the same search with more of it pruned away. Others turn coding tools on or off, or change how quality is allocated across the picture and over time.

Step through x264's presets

The slider moves through x264's ten presets, fastest first. The bars are the five settings that are numbers; the dark tick on each track is medium's value, which is the default, and a bar is teal above it and coral below. Each bar has its own scale: its length compares a setting with medium's value, not one kind of work with another. Lookahead frames is the configured --rc-lookahead, not the encoder's total delay. The table lists the settings that are choices; a value that differs from medium's is in bold. Decision level is --subme, which sets both sub-pixel motion refinement and how candidates are compared.

medium
← ultrafastplacebo →
Differs from medium in
Changed in this step

SettingValue
Motion search
Extra partition analyses
Trellis
B frame placement
Direct prediction
Weighted P prediction
Mixed references
Macroblock-tree
Fast skip
Arithmetic coder
Deblocking filter
8×8 transform
Adaptive quantization
Weighted B prediction
Scene-cut test
These are the values a preset assigns on top of x264's defaults, read from its preset code at the commit under Sources; nothing here is modeled. Other options, tunings, profiles and the encoder's own validation can change the configuration that takes effect. Twenty grouped settings are shown, every one that any preset changes; the partition row joins two fields. Under Extra partition analyses, "none" turns these optional analyses off and does not remove intra prediction: 16×16 intra is analyzed without a flag. "Intra" means the smaller 4×4 and 8×8 intra modes, "8×8" the inter partitions 16×8, 8×16 and 8×8, and "4×4" the inter partitions 8×4, 4×8 and 4×4. The two trellis values are worded as x264's option list words them.

Reading the steps:

Why pruning costs bits, not correctness

Many of the settings above limit which candidates the encoder considers or how it measures them. A candidate that is not tried cannot be chosen, so a narrower search sometimes codes a block in a way that takes more bits or leaves more error than the best available. The stream stays valid, because the decoder is only told what was chosen. Some settings do something else. The arithmetic coder and the deblocking filter change which bitstream tools and decoder processes are used, and adaptive quantization and macroblock-tree change how quantizers are allocated.

Trade-offs

Sources

Read 2026-11-15, at the commit linked.