Skip to content
Search Documentation
Search across all documentation pages
Content-Aware

Content-Aware Encoding

Both modes are available. Per-title encoding shipped in API 5.21.0 on worker 1.28.1. Auto-ABR is accepted at job creation from worker 1.31.0: you declare one seed rendition, and Transcodely picks which rungs of a standard ladder to render and tunes each rung’s CRF. See Auto ABR.

Per-title encoding tunes the encode to this particular source rather than to its quality tier. The worker measures short samples of your input at several CRFs, scores each against the untouched original with VMAF, and encodes your declared ladder at the cheapest setting that still reaches the target.

Per-title leaves the ladder you declared untouched — same renditions, same resolutions, same count. Auto-ABR chooses the rungs itself, so it is quoted differently: the output is quoted at a ceiling of standard rungs and billed only for the rungs actually rendered, never more than the estimate shown once the source has been probed. (The separate encoding_mode: auto can skip a declared rung that would upscale a small source. That only ever lowers the bill, and the skipped rung is reported with status: skipped.)

Content-aware encoding is configured via the content_aware object on an Output Specification.

Content-aware encoding adds a per-mode feature multiplier to the output cost: per_title and auto_abr each add a 1.50x multiplier. The uplift is only charged when an analysis actually shaped the encode: a per-title search that chose the CRF, or an auto-ABR ladder that was accepted and rendered. See Pricing for details.


The ContentAwareConfig object

AttributeTypeRequiredDescription
modeenumYesContent-aware mode. One of: per_title, auto_abr. See Modes.
vmaf_targetnumberNoTarget VMAF score (80—97). Defaults to 93, regardless of quality tier. See VMAF targeting.
auto_abrobjectNoConfiguration for automatic ABR ladder generation. Only valid when mode is auto_abr. See Auto ABR.
{
  "content_aware": {
    "mode": "per_title",
    "vmaf_target": 95
  }
}

Modes

ModeAPI ValueStatusDescription
Per-titleper_titleAvailableFinds the CRF this source needs to reach the VMAF target and encodes your declared ladder at it. Per-title never adds, removes or reshapes rungs: resolutions, codecs and rendition count stay as you declared them. (encoding_mode: auto is the exception: it can skip a rung larger than the source.)
Auto ABRauto_abrAvailableBuilds the ladder from one seed rendition: picks which standard rungs (2160p, 1440p, 1080p, 720p, 480p) to render within your bounds, never above the source, and tunes each rung’s CRF. Streaming outputs only. See Auto ABR.

How the search works

One search per output, on its top rung. The worker picks the output’s highest-resolution quality-driven rendition, cuts a sample from the middle of the source — three short samples spread across it for long sources — and encodes that sample at a handful of CRFs, scoring each with libvmaf against the untouched original.

The search is bounded. At most four sample encodes of at most fifteen seconds each. It interpolates between the last two measurements rather than bisecting blindly, and it starts from the CRF the rung would have used anyway, which is usually already close.

The result is the highest CRF that still scored at or above the target, within a 0.5 tolerance. That is the cheapest setting that meets your quality bar, not the best quality achievable.

The lower rungs move with it, for free. They are not searched. Each takes the offset your ladder already declares relative to the top rung, so your own quality shape is preserved and only its absolute level moves. A ladder that declares no CRFs falls back to a shape by height.

It is deterministic. Sample positions are a pure function of the source’s duration and the candidate arithmetic is integer, so the same file searched twice gives the same CRF.

It fails open, and a fallback is not billed. A search that cannot run — an unknown duration, an encode error — falls back to the CRF the rung would have used, and the job proceeds. A correct file at the tier’s CRF is worth more than a failed job. That output is then billed at 1.0x, not 1.5x, and its own pricing snapshot states the corrected number.


VMAF targeting

VMAF (Video Multimethod Assessment Fusion) is a perceptual quality metric developed by Netflix. A VMAF score of 93+ is generally considered “excellent” quality with artifacts imperceptible to most viewers.

vmaf_target accepts 80 to 97 and defaults to 93 — one number, not a table by quality tier. Below 80 the result is not a quality target anyone would ask for, and above 97 the search cannot tell the last point from the one below it.

Lower target, smaller files:

  • Simple content (interview, slideshow, animation) → a higher CRF reaches the target, so a lower bitrate
  • Complex content (action movie, sports, concert) → a lower CRF is needed, so a higher bitrate

There is no quality-tier restriction. economy, standard and premium all accept per-title encoding; the search seeds from whatever CRF the rung would have used anyway.

Override the default with vmaf_target:

{
  "content_aware": {
    "mode": "per_title",
    "vmaf_target": 95
  }
}

Reading what the search decided

A per-title output reports its search back on report.content_aware. The block is present only on an output whose encode actually ran the analysis — absent on every ordinary output, and absent on a per-title output whose search fell back.

AttributeTypeDescription
modestringThe analysis mode that ran, lowercase: per_title or auto_abr.
vmaf_targetnumber | nullThe VMAF score the search aimed at. This is the target actually used: a value outside the range the search can cover is clamped, and what you read here is the clamped one.
vmaf_achievednumber | nullThe score the chosen setting reached on the analysis samples. The delivered file is never itself scored.
crf_choseninteger | nullThe CRF the search settled on, in the encoder’s own scale, where lower is higher quality. For a ladder this is the highest-resolution rendition’s value; the lower rungs derive from it by the ladder’s fixed offsets.

Rules

The per-title refusals exist for one reason: you would pay the 1.5x multiplier for an analysis that could not do anything, or that would measure the wrong picture. Auto-ABR has its own request-shape rules, listed under Auto ABR.

RuleWhenError
Mode requiredmode must be set to either per_title or auto_abr.Validation error at create
VMAF rangevmaf_target must be between 80 and 97 (inclusive) when specified.Validation error at create
No video to tuneThe output encodes no video at all — a captions-only or audio-only output.parameter_incompatible at create
Nothing for a CRF to doEvery video rendition on the output is pinned to an explicit bitrate. A bitrate-mode rendition ignores CRF, so the search result would be discarded. A mixed ladder is fine: one quality-driven rendition is enough, and it is the one searched.parameter_incompatible at create
Measures the wrong pictureAny video rendition on the output uses hdr.mode: tonemap. The search scores samples of the raw HDR source, while you receive a tone-mapped SDR picture. Applies to per_title and auto_abr.parameter_forbidden at create
Too short to pay for itselfThe effective (clipped) encode window is under 120 seconds. The search costs the same whatever the source’s length while the multiplier is proportional to it, so below two minutes the uplift does not cover the machine time.per_title_source_too_short at probe
Auto ABR config scopeThe auto_abr bounds block is only valid when mode is auto_abr. Setting it with per_title is refused.parameter_forbidden at create

The per-title source-length rule is decided at probe rather than at create because nothing has read your input at create, and guessing its duration would refuse correct requests. It measures what will be encoded, not how long the source is — a twenty-second clip of a ten-minute film is refused.


Auto ABR

Auto-ABR builds the ladder for you. You declare one seed rendition (codec, quality tier, optional framerate) and optional bounds. Transcodely picks which rungs of a standard ladder to render and tunes each rung’s CRF to your source.

It is not a convex-hull per-title ladder. Rungs are never compared with each other on quality, and no resolution outside 2160p, 1440p, 1080p, 720p and 480p is ever produced.

Request shape

Auto-ABR needs a streaming output (hls, dash or adaptive) with exactly one seed video rendition. The seed gives the codec and quality tier and must not name a resolution, width, height or bitrate: the ladder decides those.

AutoABRConfig attributes

AttributeTypeDefaultDescription
min_variantsinteger2Fewest rungs the ladder may be pruned to (1—20). Never more than the source allows. When pruning would go below it, rungs are put back from the bottom of the ladder up.
max_variantsintegerno cap (at most five)Most rungs the ladder may hold (1—20). A longer ceiling keeps its top rung and its bottom rung and drops interior rungs from the highest down.
min_resolutionenum480pLowest rung allowed. A source whose short side is below it gets one rung, rendered at the source’s own size. One of: 480p, 720p, 1080p, 1440p, 2160p, 4320p.
max_resolutionenum1080pHighest rung allowed. The default is 1080p, not the highest the source allows: ask for 1440p or 2160p here. 4320p behaves as 2160p. One of: 480p, 720p, 1080p, 1440p, 2160p, 4320p.
{
  "type": "hls",
  "video": [
    {"codec": "h264", "quality": "standard"}
  ],
  "content_aware": {
    "mode": "auto_abr",
    "vmaf_target": 93,
    "auto_abr": {
      "min_variants": 2,
      "max_variants": 4,
      "min_resolution": "480p",
      "max_resolution": "2160p"
    }
  }
}

How the ladder is chosen

  1. Create. The seed expands to a ceiling: the standard rungs inside your bounds, top-down, capped at max_variants. The output is quoted at that ceiling.
  2. Probe. Once the source is measured, the ceiling narrows to it. Nothing is ever upscaled. Every tier below the source’s short side is kept, plus at most one tier at or above it, which renders at the source’s own size. Each rung renders at the source scaled into its tier’s frame, turned on its side for a portrait source. This estimate is the most the output can ever bill.
  3. Analysis. The worker runs the per-title search once on the top rung, sets every rung’s CRF from it, and drops a rung whose bitrate would not be meaningfully below the rung above it.
  4. Completion. You are billed for the rungs actually rendered, at 1.5x.
SourceLadder (tier at render size)
1920×10801080p 1920×1080, 720p 1280×720, 480p 854×480
1920×8001080p 1920×800, 720p 1280×534, 480p 854×356
1080×1920 (portrait)1080p 1080×1920, 720p 720×1280, 480p 480×854
640×360480p 640×360 (one rung)

Each rung is billed at the smaller of its tier and its pixel tier, the smallest standard tier whose frame holds the rendered pixels. An ultra-wide rung named 1080p that carries a 1920×400 picture bills as 720p. The output’s pricing snapshot records both.

It fails open. An analysis that does not finish inside its time budget or an encode error during the search both end the same way: the whole probe-time ladder is rendered at the quality tier’s static CRFs and billed at 1.0x. Unlike per-title, auto-ABR has no minimum source length: a short source is not refused and is still analysed, on whatever length there is (the analysis samples are capped at the source’s own duration).

Auto-ABR refusals

RuleWhenError
Streaming onlyThe output is mp4, webm, mkv or mov.parameter_unsupported at create
One seedThe output has more than one video rendition, or none.parameter_incompatible at create
No seed resolutionThe seed names a resolution, width or height.parameter_forbidden at create
No seed bitrateThe seed names a bitrate.parameter_incompatible at create
Bounds in ordermin_resolution above max_resolution, or min_variants above max_variants.parameter_invalid at create
Enough rungs in rangemin_variants is larger than the number of standard rungs between min_resolution and max_resolution.parameter_out_of_range at create
No tone mappingAny rendition on the output uses hdr.mode: tonemap.parameter_forbidden at create

A preset that already carries an ABR ladder is refused by the one-seed rule. A single-rendition preset works: the ladder replaces its resolution.


Content analysis

Separately from the CRF search, the worker measures the source’s complexity: an overall complexity_score, a motion_score, a texture_score (each 0.0—1.0) and a detected content_type of film, animation, sports, screen_share or mixed.

These are measured and then dropped. No API response carries them and no column stores them. Transcodely records the search result — see Reading what the search decided — not the source scores behind it, and nothing in the per-title decision reads them: the search measures your source directly. They are described here only to explain what the worker looks at.


Examples

Per-title encoding with the default VMAF target

Use per-title mode with your existing ABR ladder. Transcodely searches the top rung for the CRF that reaches VMAF 93 on this source, and the lower rungs move with it by the offsets your ladder declares.

{
  "type": "hls",
  "video": [
    {"codec": "h264", "resolution": "1080p", "quality": "standard"},
    {"codec": "h264", "resolution": "720p", "quality": "standard"},
    {"codec": "h264", "resolution": "480p", "quality": "standard"}
  ],
  "content_aware": {
    "mode": "per_title"
  }
}

Per-title with a custom VMAF target

Override the default and target a specific VMAF score.

{
  "type": "dash",
  "video": [
    {"codec": "h265", "resolution": "2160p", "quality": "premium"},
    {"codec": "h265", "resolution": "1080p", "quality": "standard"},
    {"codec": "h265", "resolution": "720p", "quality": "standard"}
  ],
  "content_aware": {
    "mode": "per_title",
    "vmaf_target": 95
  }
}

What it was measured doing

The numbers below are from the validation run against worker 1.28.1 on 2026-09-15 that qualified the feature for release. They describe those clips, not a corpus-wide savings figure.

  • A single 1080p H.264 output at the default target of 93 landed a sample VMAF of 93.043 at CRF 27, and the searched file came out at 63.5% of the size of an identical untuned output encoded from the same source.
  • A three-rung HLS ladder asking for a non-default target of 90 landed 90.426, with the 1.5x multiplier applied once at the output level rather than once per rung.

Both cases are in the public conformance catalog alongside the negatives that cover the short-source refusal and the bitrate-pinned ladder.

Auto-ABR was validated live against worker 1.31.0 on 2026-10-31 and 1.31.1 after it. Five of its seven completion cases pass: a 720p source that renders and bills only 720p and 480p, a rotated source, a portrait phone video, auto-ABR combined with encoding_mode: auto, and a five-second source that falls back to the whole ladder at 1.0x. They check the ladder, the bill, the rendered geometry and the manifest.

Two auto-ABR cases are still tracked as known gaps on the conformance page. They are the two that also score the delivered top and bottom rungs:

  • auto-abr-hls-1080p, the default 1080p/720p/480p ladder.
  • auto-abr-hls-cinemascope, a 1920×800 source.

Their picture quality is within the floors. Scored frame for frame against the source, the top and bottom rungs measure VMAF 91.9/63.3 and 91.6/62.7, against floors of 88/60. What keeps them open is one frame of timing. Worker 1.31.2 removed the hole that every chunk boundary used to carry (on earlier releases a 150-second rendition ran 0.288 s longer than its source); on 1.31.2 the frame count equals the source’s and the duration is within one frame. What is left is the first frame: fragmented-MP4 output holds frame 0 for 55 ms instead of 33 ms when the source video starts after its audio, because a fragmented MP4 cannot carry an edit list. It is identical single-pass and chunked. The harness asserts a continuous timeline, so both cases stay open until a worker release fixes it.

Run this against your own file

A free account runs standard-quality encodes up to 2 minutes, one at a time (a longer upload is shortened to its first 2 minutes), so the Quickstart runs with nothing set up but an API key.