Presets and tuning

A preset is a set of encoder parameters that trades compression for speed. The presets form one ladder, the same names for every codec: veryfast, faster, fast, medium and slow, fastest first.

What the Default is

Which codec has which rung

Not every codec has every rung. As nanocodec params --codec C lists them:

With --scalability L2... or L3..., a rung uses the codec's parameter file tuned for that many spatial layers where it has one.

Tuning beyond a preset

Every heuristic is a named parameter with a default and a range. Settings are applied in order, later ones winning: the preset, --still-camera, --params FILE, --scalability, then each --param NAME=VALUE:

nanocodec params --codec av1

prints each parameter as name default [min, max] what raising it trades. The C API takes parameters as nc_param entries, the browser module as name=value lines. The presets themselves are parameter files in the repository's presets/ directory.