Skip to content

Analyse & suggest

Analyse & suggest finds the right quality setting for each film by measuring instead of guessing. It encodes short samples of the film at a few CRF values, compares every sample with the original, and suggests the setting that keeps the quality you asked for in the smallest sensible file. Nothing changes on the film until you accept the suggestion. You run it for one film in the encode settings, or for many films at once above the queue on the Encode page.

VMAF is a score from 0 to 100 that compares an encode with its original frame by frame; 100 means no difference. It was made to predict what viewers see, so 95.2 can be read as “about 95 % of the original’s quality”. Under about 2 points nobody sees a difference; about 6 points is one just noticeable difference. See also VMAF.

The VMAF target is the quality the encode must keep:

Target What it means
97 Practically identical; bigger files.
95 (default) Very hard to tell apart.
93 Smaller files; small differences on a close look.

CRF is the encoder’s quality dial: a higher CRF gives a smaller file and a lower quality (CRF). The analysis looks for the highest CRF — the smallest file — that still reaches your target, and then decides whether a little more quality is worth its size.

  1. It picks samples spread over the film: 4 of 10 seconds (quick, a few minutes), or 6 of 20 seconds with Thorough (slower, more reliable for films with very different scenes).
  2. It encodes the samples at one CRF with the film’s settings (encoder, speed, HDR) and measures the VMAF of every sample: the mean and the weakest sample (the hardest scene).
  3. It projects the size and the encode time of the whole film from the samples. The size is the share of the original’s bytes the encode keeps in the samples, applied to the original’s whole video — so samples that happen to fall into busier scenes than the film’s average do not make the whole film look too big.
  4. It chooses the next CRF between the ones that passed and the ones that failed, until it knows the highest CRF that reaches the target. How many CRFs it tries is not fixed; the progress line says Probe 2 of about 5 (at most 7).
  5. By default it does this for x265 and AV1 on the same samples, and the better encoder wins (Settings → Encode → Encoders to try).

When the processor has room, several samples are encoded at once; while a film is being encoded, one at a time. The measured samples are kept, so analysing the same film again with the same settings uses them at once.

A CRF counts as reaching the target only when:

  • the mean of its samples reaches the target — once your finished encodes have shown how much the samples tend to overestimate an encoder, a little higher than the target (aims at VMAF 95.45), so that most films really reach it; and
  • the weakest sample is at most 3 points below the target (92 for 95), so one weak scene cannot hide in the mean.

Both rules can be changed in Settings → Encode → How Analyse & suggest chooses.

From the smallest file that reaches the target the analysis can go one step further:

  • Balanced (the default): it moves to a better CRF as long as each doubling of the file still buys at least 2 VMAF points, but not above 2 points over the target. It measures one or two more CRFs for this.
  • The smallest file that reaches the target: no balancing.

With both encoders, each one is balanced and the one whose film gets the most quality for its size wins; with the smallest file the smaller file at the target wins. The card always shows the other point too, with a button to use it instead (Use the smallest or Use the balanced), and what the other encoder would need. The line How it chose: lists the rules that were used. If Learn from my choices is on, the balanced threshold follows the CRFs you actually encode once three of your encodes tell (Settings).

Required saving and “does not pay off”

Section titled “Required saving and “does not pay off””

A suggestion never makes a film bigger. Settings → Encode → Required saving (%) (20 by default) sets how much smaller the film must get. The search stops lowering the CRF where the film would no longer be at least that much smaller.

  • Target out of reach: VMAF 95 is out of reach with a file at least 20 % smaller than the original. The best quality that fits: … — the suggestion is the best quality that still saves enough, marked as below the target. You can accept it per film; Accept all suggestions leaves it out.
  • Does not pay off: Does not pay off: even x265 CRF 14 makes the film 5.20 GB (-12 %) — not at least 20 % smaller than the original. Keep the original (typical for heavy film grain), or lower the required saving in Settings → Encode. There is no Accept; you can still put a measured CRF into the settings with Use in the table. Exclude in the row’s note leaves the film out of encoding: it leaves the queue and the candidates, and Encode → Excluded keeps what was measured. A film’s search can end after one CRF per encoder: when that CRF is already below the target and its file already too big, a lower CRF would only make the file bigger and a higher one the picture worse.
  • Would hardly get smaller: an accepted suggestion that saves less than 5 % shows ⚠ Would hardly get smaller — keeping the original may be better.

A GoPro clip that does not pay off is not left out: its video is copied unchanged instead (GoPro clips).

  1. Select a waiting film on the Encode page.
  2. Under Analyse & suggest set the VMAF target (80 to 99) and tick Thorough if the film has very different scenes. Compare speeds also measures the found CRF at the next faster and the next slower preset, to show what more encode time buys (two more probes; the slower one takes longest).
  3. Click Analyse & suggest. The analysis goes first into the analysis line and uses the editor’s current values, also the ones you have not applied yet. You can select other films or leave the page; it goes on in the background.
  4. While it runs you see the probe, the time (Running 4:12 · about 9 min left (at most 14 min)) and the CRF range still open (Reaches the target up to CRF 24, misses it from CRF 27). Cancel stops it (Stopping an analysis).
  5. When it is done, the card shows the suggestion, for example x265 CRF 22 reaches VMAF 95.6 (target 95, weakest sample 93.4) · film ≈ 1.74 GB (-61 %) · ≈ 1 h 28 min (1.5× the film length) · measured in 14 min, followed by what AV1 would need. The line under it splits the file: *Whole file ≈ 1.74 GB (-61 %) = video ≈ 1.16 GB (-66 % of the original’s video) + sound 0.58 GB (#1)
    • subtitles 90 kB (#3) — with the tracks ticked now.* The analysis measures only the video; the sound and subtitles are the tracks ticked in the editor, so a track you untick later makes the file smaller at once — no new analysis is needed.
  6. Click Accept this CRF. It stores the suggested encoder and CRF on the film at once, with the goal Found by Analyse & suggest; your other settings stay.

The card then says ✔ This film uses the suggested CRF. If you used another measured point, it says which one is in the settings.

Screenshot to comesuggest-editor.png
The Analyse & suggest card of Sintel after a run with x265 and AV1: the suggestion, the smallest file at the target with Use the smallest, How it chose, the probe table and the Quality vs. video size chart

The box Analyse & suggest for several films above the queue analyses ticked films one after another in the background — you can keep working or leave Kinorascope in the tray. Every suggestion waits for you in its row.

  1. Tick the films: the tick boxes of the rows, All waiting, or Not analysed (N) (the waiting films without a suggestion that are not in the line, also those whose analysis failed or was stopped).
  2. Set the VMAF target and Thorough for this run.
  3. Click Analyse ticked (N). Each film is measured with its own settings (speed, audio and languages stay).
  4. Watch the status: Analysing Sintel — 2 of 5 · 12 min so far · about 8 min left for this film · about 40 min left for all. Each row shows its place (Analysis waits — place 3 in the line) or its progress.
  5. Accept the suggestions: Accept in a row, or Accept all suggestions (N) for every waiting film whose suggestion reaches the target within the required saving.
Button What it does
Analyse ticked (N) Puts the ticked films into the analysis line.
Accept all suggestions (N) Gives every waiting film with an open suggestion its suggested CRF (goal Found by Analyse & suggest); its other settings stay. Suggestions below the target are left out.
Stop Stops the analysis in progress and empties the line. Suggestions already made are kept; the film in progress keeps the probes it measured (you are asked when it has an earlier analysis).

A row shows its suggestion as ✦ Suggested x265 CRF 21 → VMAF 95.6 (weakest 93.1) · 2.10 GB (-52 %) · ≈ 1 h 40 min with Accept, an accepted one as ✔ x265 CRF 21 from the analysis — …, and a failed analysis as Analysis failed: with the reason.

The question at Start queue decides what the queue does with films whose suggestion is not accepted yet — it can accept each one itself when it is ready.

Screenshot to comesuggest-line.png
The box above the queue with three ticked films, VMAF target 95, Analyse ticked (3), Accept all suggestions (2) and Stop; rows below with a waiting place, a running analysis and an open suggestion with Accept

A suggestion belongs to the video settings it was measured with. If you change them afterwards — the speed, tune, extra parameters, the bitrate ceiling or the HDR handling — the suggestion is outdated:

  • the row says The analysis (CRF 21 at x265 slow) was made with other settings — analyse again;
  • the editor says Measured with other video settings (x265 slow). Accepting takes over the measured video settings too — or analyse again with the current ones.

Switching between x265 and AV1 does not make it outdated: accepting sets the measured encoder again. An entry whose settings you changed after its analysis is encoded with your settings.

You stop an analysis with Cancel in the editor, Stop in the box above the queue, or by closing Kinorascope. What it has measured is not thrown away:

  • Nothing measured yet — it simply stops.
  • Some CRFs measured, no earlier analysis — the suggestion is made from them by the same rules and marked stopped by you — made from the probes measured until then (in the row: stopped early). An encoder that was not searched yet is missing from it.
  • The film already had an analysis — Kinorascope asks:
Keep what the analysis measured? What happens
Keep the new The suggestion is made from the new probes and replaces the earlier analysis.
Keep the earlier The earlier analysis stays. The samples measured now are kept, so analysing this film again with the same settings uses them at once.
Go on measuring Nothing stops.

If a stopped analysis leaves no suggestion, its measured rows stay in the table and each one can still be put into the settings with Use.

A quick analysis can call a film “does not pay off” when one heavy scene weighs a quarter of its four samples; a Thorough analysis of the same film may find a good saving.

An analysis and an encode both need the whole processor. When you start an analysis while a film is being encoded, Kinorascope asks An encode is running:

Choice What happens
One after the other The analysis waits until the current film is encoded and verified, runs before the next film, and then the queue continues. Nothing is slowed down; the suggestions come after this film.
Both at the same time The analysis starts now. Both are slower, and the analysis’s encode-time estimates come out too long.
Cancel Nothing starts.

While both run together, the box above the queue says so. When you start the queue while an analysis runs, the Start queue dialog asks the same question the other way round.

Every CRF measured is a row of the table under the card. The suggested encoder comes first, sorted by CRF; # is the order in which they were measured. The suggested row is bold.

Column What it shows
# The order of measuring.
CRF The CRF tried.
Encoder The encoder and its speed, for example x265 slow or AV1 preset 4.
VMAF The mean VMAF of the samples.
Weakest sample The VMAF of the hardest sample.
Video size The projected video of the whole film — without sound and subtitles, which are the same at every CRF — and its change against the original’s video. The whole file is in the card above and under Estimate.
Encode time The projected encode time of the whole film and the speed.
Result See below.
Use Puts this CRF into the settings at once (not for the extra speeds of Compare speeds).

The Result column says: ✓ reaches the target, ✗ below the target, ✗ weakest sample below 92, ✗ below the aim 95.45, ✗ file too big (over the required saving), ★ suggested — balanced, ★ suggested — smallest at the target, smallest at the target or balanced.

Quality vs. video size shows every probe as a point: VMAF up, the projected video across (like the table, without sound and subtitles). Each encoder’s search has its own colour and line, test segments their own points, and the extra speeds of Compare speeds are hollow rings. A horizontal line marks the target (target 95), a vertical line the largest video the required saving allows with the tracks ticked now (the file −20 % of the original). Point at a dot to see its CRF, VMAF, weakest sample, video size and encode time.

How settings affect the result (in the editor, next to Settings) opens a window about this film:

  • This film — what one CRF step changes on this film (On this film one CRF step changes the file by about 15 % and VMAF by about 0.7 points.) and two charts of everything measured: Quality vs. video size for choosing the CRF and Quality vs. encode time (bubble = video size) for choosing the speed. Before anything is measured it says Nothing measured on this film yet.
  • What matters most — a table of the settings ranked by their effect on Quality, File size and Encode time (one to five dots), each with a rule of thumb from reference measurements: the CRF, the film itself (grain, noise, dark scenes), the speed, the encoder, the resolution, the sound conversion, a target size and the fine-tuning options.
  • How quality is measured — what VMAF means and how the sound tracks are rated.
Screenshot to comesuggest-guide.png
The guide window for Big Buck Bunny: the facts line, both charts and the top of the What matters most table