SVT-AV1

From wiki.selur.net
Jump to navigation Jump to search

SVT-AV1 (Scalable Video Technology for AV1) is the open-source AV1 encoder of the Alliance for Open Media. It scales well over many CPU cores and covers everything from very slow, efficient encodes to real-time speed with one preset scale. Hybrid drives the command line encoder SvtAv1EncApp and can call the fork SVT-AV1-HDR instead, which is tuned for perceived quality.

Base → Video: SVT-AV1, then the SVT-AV1 tab

What it does

AV1 is a royalty-free video format that needs clearly less bit rate than H.264 and somewhat less than HEVC for the same quality, at the price of slower encoding. SVT-AV1 predicts each block from already coded frames or from neighbouring blocks, transforms and quantizes what is left, and then runs several in-loop filters (deblocking, CDEF, loop restoration) over the result. How coarse the quantization is decides size and quality:

  • constant rate factor (CRF): constant perceived quality, the size results from the content. Optionally with an upper limit for the bit rate (capped CRF). The usual choice.
  • constant quantizer: the same base quantizer for the whole video, without adaptive quantization; for tests and for lossless encoding.
  • variable bitrate (VBR): aims at an average bit rate, in one or two passes.
  • constant bitrate (CBR): keeps the bit rate constant within a client buffer; for streaming with low delay.

The Speed preset decides how much effort the encoder spends: low numbers are slow and efficient, high numbers fast. Most other options fine-tune single coding tools, the rate control or the flags in the stream.

SVT-AV1-HDR

SVT-AV1-HDR is a fork of SVT-AV1 (successor of SVT-AV1-PSY) that aims at visual quality for SDR and HDR content instead of metric scores. In Hybrid it is not a separate encoder but a variant inside the same tab: Use SVT-AV1-HDR on the Misc sub-tab makes Hybrid call SvtAv1EncApp-HDR instead of SvtAv1EncApp. What changes:

  • The fork has other built-in defaults: preset 4, 10 bit, Variance Boost on, quantization matrices on (6 – 10), temporal filtering strength 1, sharpness 1, QP scale compress strength 1, AC bias 1.0. The same CRF therefore gives a different bit rate than with mainline SVT-AV1.
  • Switching does not change any setting on the tab. Load SVT-AV1-HDR defaults sets exactly the settings listed above to the fork's values, if wanted.
  • Additional options on the SVT-AV1-HDR sub-tab: generated film grain, more psychovisual controls, Dolby Vision and HDR10+ metadata.
  • Additional values in existing controls: tune Film Grain, presets -3 and -2, Variance Boost curve 3 (for PQ content) and 4:4:4 output (Output color space i444).

Requirements

SVT-AV1 is part of Hybrid on every system. It encodes 8 and 10 bit in 4:2:0. The raw stream is muxed into Matroska, WebM or MP4 afterwards.

SVT-AV1-HDR

The fork needs its own binary, SvtAv1EncApp-HDR, which sits next to SvtAv1EncApp; its path can be set under Config → Tools. Use SVT-AV1-HDR is only available when Hybrid found a binary that reports itself as SVT-AV1-HDR. A saved setting with the switch on stays on without the binary, and Hybrid then refuses to create the job instead of silently using mainline. The same goes for the values only the fork accepts (tune Film Grain, presets below -1, Variance Boost curve 3, i444): they stay selected when the switch is turned off, and the job is refused.

Dolby Vision and HDR10+ metadata additionally need a binary that was built with the matching libraries; otherwise the two file fields stay locked.

Settings

The option column shows the SvtAv1EncApp option a control ends up as. Many controls are locked depending on the encoding mode; the tables name the conditions. Where the tables say "HDR only", Use SVT-AV1-HDR has to be on.

Base

SVT-AV1 Base tab
SVT-AV1 Base tab

General Settings

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Encoding mode --rc constant quantizer / rate control, variable bitrate, constant bitrate constant quantizer / rate control Rate control mode (0, 1, 2), see above. The first entry covers CRF and constant quantizer, chosen with the CRF box. Variable bitrate forces the random access prediction structure, constant bitrate the low delay one.
Speed preset --preset -3 – 13 10 Speed against compression: lower is slower and more efficient. Negative presets are meant for research and are extremely slow; -3 and -2 are HDR only. The encoder's own default is 8 (SVT-AV1-HDR: 4).
Quantization strength, CRF --crf, --qp CRF: 0 – 70, step 0.25; quantizer: 0 – 63 35, CRF on With CRF on the quality target of the CRF mode; lower is better and bigger, values are rounded to quarter steps. With CRF off a constant quantizer, and adaptive quantization is switched off (--aq-mode 0). Only shown in the first encoding mode.
Maximum bitrate --mbr 0 – 100000 0 Upper limit of the bit rate in kbit/s for CRF (capped CRF); 0 means no limit. Only available with CRF on.
Bitrate (kbit/s) --tbr 16 – 100000 7000 Target bit rate of the variable and constant bitrate modes. Shown instead of the quantizer row in these modes.
Target size (MiB), Target mode --tbr 0.2 MiB and up; custom, 1/4 CD … 1 BD 50 custom, 700 Aim at a file size instead; Hybrid computes the video bit rate from the size, the length and the size of audio and other streams. Target mode offers common media sizes. Only accurate with two passes.
Bit depth --input-depth 8-bit, 10-bit 10-bit Bit depth of the encoded stream. 10 bit avoids banding in gradients even with 8-bit sources and costs little speed with AV1.
Output color space --color-format i420, i444 i420 Chroma format of the output; the filter chain delivers it to the encoder. i444 (4:4:4) is HDR only; the fork then switches to the high profile on its own.
Two pass encoding --pass 1, --pass 2 on/off off Runs a first pass that analyses the video and a second that encodes with that knowledge. Only available with variable bitrate. Turning it on switches Open gop and Overlays off, because the encoder does not support them with two passes.
Statistic file --stats file empty Statistics file of the two passes; empty uses a temporary file. Only with Two pass encoding.

Restrictions

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Profile --profile main, high, pro main AV1 profile. main covers 8 and 10 bit in 4:2:0 and is what players expect. The control is locked; with 4:4:4 output SVT-AV1-HDR picks high itself.
Level --level auto, 2.0 – 7.3 auto AV1 level, the upper limit for frame size, frame rate and bit rate a decoder has to handle. auto lets the encoder pick what the video needs.
Tier --tier main, high main high raises the bit rate limits of a level. AV1 only knows tiers from level 4.0 on; the encoder ignores the option below that, so Hybrid sets main there.

Rate Control

SVT-AV1 Rate Control tab
SVT-AV1 Rate Control tab

Rate Control

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Max. intra bitrate (%) --max-intra-bitrate-pct 0 – 10000 300 Largest size of an intra frame as a percentage of the target bit rate; 0 switches the limit off. Only with variable or constant bitrate.
Max. inter bitrate (%) --max-inter-bitrate-pct 0 – 10000 0 The same for inter frames; 0 means no limit. Only with variable or constant bitrate.
Max. bitrate overshoot (%) --mbr-overshoot-pct 0 – 100 50 How far a capped CRF encode may exceed Maximum bitrate. Only available with CRF on and only written when a maximum bit rate is set.
GOP constraint rate control --gop-constraint-rc on/off off The rate control hits the target rate for every GOP instead of over the whole video. Variable bitrate only and marked experimental by the encoder; needs a GOP size above 119 (or the encoder default), otherwise Hybrid refuses the job.
Section min/max (%) --minsection-pct, --maxsection-pct 0 – 100 / 0 – 10000 0 / 2000 Lowest and highest bit rate of a single GOP as a percentage of the target bit rate. Only used and written with variable bitrate.

Quantisation matrices

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Quantisation matrices --enable-qm on/off off Uses quantization matrices, which quantize high frequencies more coarsely than low ones instead of treating all coefficients alike. Usually saves bits at the same visual quality. SVT-AV1-HDR has them on by default.
Min/Max --qm-min, --qm-max 0 – 15 each 8 / 15 Range of the matrix flatness for luma; 15 is a flat matrix (no effect), lower values are steeper. The encoder picks a level inside the range depending on the quantizer.
Chroma Min/Max --chroma-qm-min, --chroma-qm-max 0 – 15 each 8 / 15 The same for the chroma planes.

Client Requirements

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Initial buffer size (ms) --buf-initial-sz 0 – 10000 4000 How much data the player buffers before playback starts, as a duration. Only available and written with constant bitrate.
Optimal buffer size (ms) --buf-optimal-sz 0 – 10000 5000 Buffer fill the encoder tries to keep. Only available and written with constant bitrate.
Buffer size (ms) --buf-sz 0 – 10000 6000 Total size of the client buffer. Only available and written with constant bitrate.
Undershoot datarate --undershoot-pct 0 – 100 25 How far (in percent) the rate control may stay below the target on easy parts to save bits for harder ones. Only written with variable or constant bitrate.
Overshoot datarate --overshoot-pct 0 – 100 25 How far it may go above the target. Only written with variable or constant bitrate.

Quantization

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Quantizer min/max --min-qp, --max-qp 1 – 63 each 1 / 63 Limits of the quantizer the rate control may use. Only with variable or constant bitrate. The encoder's own minimum there is 4 (SVT-AV1-HDR: 1); Hybrid writes its value whenever it differs from that.
Adaptive quantization --aq-mode off, variance base using segments, Deltaq pred efficiency Deltaq pred efficiency How the quantizer varies inside a frame (0, 1, 2). The choice is only free with variable or constant bitrate: CRF always uses mode 2 (in the encoder CRF is the same as a quantizer with mode 2), the constant quantizer always mode 0.
Recode loop --recode-loop off; key frames and when exceeding maximum frame bandwidth; key frames, alternate reference frames and Golden frames; all frame types based on bitrate constraints; based on preset based on preset Which frames the encoder may code a second time when they miss the rate target (0 – 4).
Temp. filter --tf-strength 0 – 4 3 Strength of the temporal filtering of the alternate reference frames. Lower values keep more grain and fine detail; SVT-AV1-HDR uses 1 by default. Not written with a constant quantizer.
Lumi bias --luminance-qp-bias 0 – 100 0 Lowers the quantizer of dark frames, which tend to lose detail and show banding first. Not written with a constant quantizer.
Sharpness --sharpness -7 – 7 0 Biases the encoder decisions towards a softer (negative) or sharper (positive) picture. Not written with a constant quantizer.
Control SvtAv1EncApp option Range / values Hybrid default Meaning
Custom qp file --use-q-file 1 --qpfile file empty File with one quantizer per picture, one per line, used instead of the encoder's own picture QPs.

Advanced

SVT-AV1 Advanced tab
SVT-AV1 Advanced tab
Control SvtAv1EncApp option Range / values Hybrid default Meaning
Tune --tune VQ, PSNR, SSIM, IQ, MS_SSIM, VMAF, Film Grain PSNR What the encoder optimizes for (0 – 6): subjective quality (VQ), one of the metrics, still-image quality (IQ) or, HDR only, grain retention (Film Grain). The tunes are tied to prediction structures: IQ needs a GOP size of 1 or low delay, all others except PSNR do not work with low delay. Hybrid refuses jobs with a combination the encoder rejects or silently replaces.
Fast decode --fast-decode 0 – 2 0 Restricts coding tools so that the stream is easier to decode, at some loss in compression. For weak playback devices.
Overlays --enable-overlays on/off off Inserts an additional overlay picture that serves as one more reference for the base layer picture. Not available with two passes.
Motion field motion vector --enable-mfmv auto, off, on auto Motion vector prediction from the motion field of reference frames (-1, 0, 1); auto leaves it to the preset.
Screen content optimization mode --scm off, on, content based detection, content based detection (anti-alias aware) content based detection Tools for screen recordings, text and graphics such as palette mode and intra block copy (0 – 3). The detection decides per frame; forcing it on for camera material only costs time.
Custom addition – text empty Text that is appended to the call unchanged, for options Hybrid does not offer. It comes after Hybrid's own options, is not shortened and not checked.

Loop Filtering

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Loop Filtering --enable-dlf on/off on The deblocking filter, which smooths block edges inside the coding loop. The box of the group also locks the three controls below it.
Constrained directional enhancement --enable-cdef on/off on CDEF, an in-loop filter that removes ringing along edges without blurring the edge. Worth its cost almost everywhere. Locked with tune Film Grain, which switches it off in the encoder.
Restoration --enable-restoration on/off on The loop restoration filter, which recovers some of the detail lost by quantization. Locked with tune Film Grain.
More accurate deblocking --enable-dlf 2 on/off off Uses the slower, more accurate search for the deblocking strength.

GOP Settings

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Open gop --irefresh-type on/off off On: forward key frames (open GOP, 1), off: closed GOPs with key frames (2). Not available with two passes.
GOP size --keyint -2 and up -2 Distance between key frames in frames. -2 is the encoder's default of about 5 seconds (SVT-AV1-HDR: about 10 seconds), -1 and 0 mean no regular key frames and are only allowed without rate target. Locked with Open gop.
Scene change detection --scd on/off off Lets the encoder place key frames at scene changes.
Real-time (RTC) --rtc on/off off Fast settings for real-time communication. Forces the low delay prediction structure and is not available with variable bitrate.
Hierarchical level --hierarchical-levels auto, 2 – 5 auto Depth of the frame hierarchy inside a mini-GOP: 2 to 5 give 3 to 6 temporal layers. auto writes nothing and the encoder takes the value of the preset (5 up to preset 12, else 4).
Prediction structure --pred-struct low delay, random access random access random access lets frames refer to later frames (better compression), low delay only to earlier ones. Free choice only in the first encoding mode without RTC; variable bitrate needs random access, constant bitrate low delay.
Lookahead --lookahead -1 – 120 -1 Number of future frames the encoder looks at for its decisions; -1 lets the encoder choose.
Startup mini-GOP --startup-mg-size off, 4 frames, 8 frames, 16 frames off Uses a different, shorter mini-GOP for the first mini-GOP after each key frame.
Startup QP offset --startup-qp-offset -63 – 63 0 Quantizer offset for that startup GOP; negative values give the frames after a key frame more quality.

Psychovisual

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Variance boost (strength/octile/curve) --enable-variance-boost, --variance-boost-strength, --variance-octile, --variance-boost-curve on/off; 1 – 4 / 1 – 8 / 0 – 3 off; 2 / 5 / 0 Gives low-contrast areas (clouds, walls, dark scenes) more bits, where blocking and blurring are seen first. Strength sets how much, octile how large a share of a block has to be low-contrast, curve the shape of the boost. Curve 3 is HDR only and meant for PQ content; with SVT-AV1-HDR and PQ transfer signalled the fork selects it itself and the curve field is locked.
Scale compression strength --qp-scale-compress-strength 0 – 3 0 Reduces the quality difference between the temporal layers, which gives a more even quality from frame to frame.
AC bias --ac-bias 0 – 8, step 0.01 0 Biases the rate-distortion decisions towards keeping high-frequency detail and grain instead of smoothing it away. Locked with tune Film Grain, which sets its own value.

Special

SVT-AV1 Special tab
SVT-AV1 Special tab
Control SvtAv1EncApp option Range / values Hybrid default Meaning
Filmgrain denoising --film-grain 0 – 50 0 Film grain synthesis: the encoder analyses the grain, stores its parameters in the stream and the decoder adds matching grain again. The value is the strength of the grain model; 0 switches it off.
Denoising --film-grain-denoise no denoising, by fg level no denoising Whether the source is also denoised before encoding (at the level given by the film grain value) or encoded as it is with the grain parameters only added. Only with film grain above 0.
Adaptive block size --adaptive-film-grain on/off on Chooses the block size of the grain by resolution; off uses the largest size. Only with film grain above 0.

Coding Tools

Control SvtAv1EncApp option Range / values Hybrid default Meaning
ALT-REF frames --enable-tf off, on, adaptive on Temporally filtered alternate reference frames: denoised reference pictures that are not shown themselves and improve prediction. Locked with tune Film Grain.
Key frame filtering --enable-kf-tf on/off on Motion compensated temporal filtering for key frames as well.
Max. transform size --max-tx-size 64, 32 64 Largest transform. 64×64 transforms drop the highest frequencies by design, so 32 can keep more fine detail and grain.
Intra block copy --enable-intrabc on/off on Lets blocks copy from already coded parts of the same frame; a screen content tool.
High bit-depth mode decision --hbd-mds preset based, 8-bit preset based Bit depth at which the mode decision works for 10-bit video (-1, 0). The encoder's 10-bit and hybrid modes are not offered because they crash the current SvtAv1EncApp.
Lossless --lossless on/off off Lossless coding. Only available in the first encoding mode.

S-Frames

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Interval --sframe-dist 0 and up 0 Distance of switch frames in frames; 0 switches them off. S-Frames let a player change between renditions of the same video (adaptive streaming) without a key frame.
Mode --sframe-mode altref frames only, next altref frame, at positions, at positions (decode order) next altref frame How S-Frames are placed (1 – 4): only when the frame at the interval is an altref frame, on the next altref frame, or at the listed positions in display or decode order. Only with an interval above 0.
Positions --sframe-posi list empty Frame numbers (starting at 0) separated by commas. Only with the two position modes.
QP --sframe-qp, --sframe-qp-offset encoder, QP, QP offset; list encoder Quantizer values or quantizer offsets for the inserted S-Frames, separated by commas. The encoder accepts only one of the two, hence the selection.

Super-resolution

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Mode --superres-mode off, fixed, random, q-threshold, auto off Codes frames at a lower horizontal resolution and scales them up again inside the loop (0 – 4). random is meant for testing.
Denominator (frame/key frame) --superres-denom, --superres-kf-denom 8 – 16 each 8 / 8 Scaling as 8/denominator: 8 is no scaling, 16 half the width. Only with mode fixed.
Q-threshold (frame/key frame) --superres-qthres, --superres-kf-qthres 0 – 63 each 43 / 43 Quantizer from which on super-resolution is used. Only with mode q-threshold.

Reference Scaling

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Mode --resize-mode off, fixed, random, dynamic, events off Codes frames at a lower resolution in both directions (0 – 4). random is meant for testing, dynamic only works with 1-pass constant bitrate and low delay, events changes the scale at given frames.
Denominator (frame/key frame) --resize-denom, --resize-kf-denom 8 – 16 each 8 / 8 Scaling as 8/denominator. Only with mode fixed.
Event frames --frame-resz-events list empty Frame numbers, separated by commas, from which new denominators apply. Only with mode events.
Event denominators --frame-resz-denoms list empty One denominator per event. Only with mode events.
Event key frame denominators --frame-resz-kf-denoms list empty One key frame denominator per event. Only with mode events.

SVT-AV1-HDR

SVT-AV1 SVT-AV1-HDR tab, with Use SVT-AV1-HDR on
SVT-AV1 SVT-AV1-HDR tab, with Use SVT-AV1-HDR on

All controls on this sub-tab are locked unless Use SVT-AV1-HDR is on, and their options are only written for the fork. The option column refers to SvtAv1EncApp-HDR.

Film Grain Synthesis

Control SvtAv1EncApp-HDR option Range / values Hybrid default Meaning
Noise --noise off, 1 – 200 off Adds generated film grain: the encoder writes a grain table without analysing the source, and the decoder adds the grain during playback. 50 is roughly as strong as Filmgrain denoising 50. Suits clean or denoised sources that should not look sterile.
Chroma --noise-chroma auto, 0 – 200 auto Strength of the grain in the chroma planes. auto (-1) takes about 60 % of the luma strength, 0 switches chroma grain off. Only with Noise above 0.
Grain size --noise-size auto, 0 – 13 auto Size of the grain; higher values look coarser. auto (-1) lets the encoder choose. Only with Noise above 0.
Chroma from luma --noise-chroma-from-luma on/off off Derives the chroma grain from the luma plane. Only with Noise above 0.

Psychovisual

Control SvtAv1EncApp-HDR option Range / values Hybrid default Meaning
Keyframe TF strength --kf-tf-strength 0 – 4 1 Strength of the temporal filtering on key frames, separate from Temp. filter. The fork's default of 1 is much weaker than mainline, which keeps key frames sharper.
Noise normalization --noise-norm-strength 0 – 4 1 Strength of the noise normalization, which keeps noisy and grainy areas from being flattened by the quantization.
TX bias --tx-bias off, full, transform size only, interpolation only off Biases the choice of transform size and type towards sharpness and detail, possibly at the cost of more blocking and banding (0 – 3). Locked with tune Film Grain, which uses full.
CDEF scaling --cdef-scaling 1 – 30 15 Scales the strength the CDEF filter computes: 15 is unchanged, 8 about half, 30 double. Lower values keep more texture.
QM distortion --enable-qmpsnr tune based, PSNR, QM-PSNR tune based Whether the distortion in the rate-distortion decisions is weighted with the quantization matrices (-1, 0, 1). tune based turns it on for tune IQ only.
Noise adaptive filtering --noise-adaptive-filtering off, CDEF and restoration, tune based, CDEF only, restoration only tune based Noise detection that weakens or switches off CDEF and/or loop restoration on noisy content, so that grain is not filtered away (0 – 4).
Sharp transforms --sharp-tx on/off on Transform optimizations that work together with AC bias; the fork suggests turning them off when AC bias is 0.
Complex HVS --complex-hvs on/off off Uses the most complex model of human vision in the decisions; slower. Locked with tune Film Grain, which switches it on.
Alternative SSIM tuning --alt-ssim-tuning on/off off Alternative rate-distortion calculation and visual optimizations for tune SSIM. Only available with tune SSIM.
Alternative lambda factors --alt-lambda-factors on/off off Uses the rate-distortion lambda factors of SVT-AV1 3.0.2.

Dynamic Metadata

Control SvtAv1EncApp-HDR option Range / values Hybrid default Meaning
Dolby Vision RPU --dolby-vision-rpu file empty RPU file with the Dolby Vision metadata (e.g. extracted with dovi_tool); the encoder attaches it to the frames. Only available when the binary was built with Dolby Vision support.
HDR10+ JSON --hdr10plus-json file empty JSON file with the HDR10+ metadata (e.g. extracted with hdr10plus_tool). Only available when the binary was built with HDR10+ support.

Both files have to match the encoded frames one to one; cutting or changing the frame rate breaks the assignment, and Hybrid does not check it. Hybrid refuses the job when a selected file does not exist.

Signaling

SVT-AV1 Signaling tab
SVT-AV1 Signaling tab

These settings describe how the decoded video is to be shown. They do not change the picture, only the flags in the stream. The values are written as the numbers of the AV1 specification.

General Color

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Range, to input --color-range limited, full on, to input Value range (studio or full). With to input Hybrid takes the value of the video that reaches the encoder.
Primaries, to input --color-primaries unknown, bt709, bt470m, bt470bg, smpte240m, bt601, film, bt2020, smpte428, smpte431, smpte432, ebu3212 off Color primaries.
Matrix, to input --matrix-coefficients unknown, bt709, fcc, bt470bg, bt601, smpte240m, ycgco, bt2020nc, bt2020c, smpte2085, chroma-derived-nc, chroma-derived-c, ictcp on, to input Matrix for the YUV ↔ RGB conversion. With 4:4:4 output the list also offers identity.
Transfer, to input --transfer-characteristics unknown, bt709, … smpte2084, smpte428, arib-std-b67 off Transfer function (gamma, PQ, HLG).

HDR-10

Control SvtAv1EncApp option Range / values Hybrid default Meaning
Light Level, max cll, max fall, from Input --content-light 0 – 65535 each off; 0 / 0; from Input on Maximum content light level and maximum frame average light level of HDR10. With from Input Hybrid reads them from the source during analysis.
Chroma sample location --chroma-sample-position 0 – 2 off, 0 Position of the chroma samples: unknown, vertical (left) or colocated (top left).
Master Display, from Input --mastering-display text off; from Input on Mastering display color volume (SMPTE ST 2086) in the form G(x,y)B(x,y)R(x,y)WP(x,y)L(max,min). It describes the display the content was mastered on, not the content. With from Input Hybrid reads it from the source.

Misc

SVT-AV1 Misc tab
SVT-AV1 Misc tab
Control SvtAv1EncApp option Range / values Hybrid default Meaning
Logical processor number --lp 1 – 6 off, 2 Level of parallelism the encoder uses. Off (0) lets it choose from the number of CPU cores.
Tile (rows/columns) --tile-rows, --tile-columns rows 1 – 64, columns 1 – 16 (powers of two) 1 / 1 Splits each frame into independently coded tiles, which helps multi-threaded decoding and costs some compression. Written as log2 of the number. More than 128 tiles in total are refused.
Create qp file for chapters – on/off off Meant to place a key frame at every chapter start. Locked in the current version.
Input buffer --nb -1, 1 and up off, -1 Loads this many frames into memory before the encode starts.
No too small warning – on/off off No warning when the computed file size is below 1 MB.
Minimize command line – on/off on Leaves out every option that equals the encoder's own default, and sub-options of features that are off. With Use SVT-AV1-HDR the fork's defaults count instead of the mainline ones. Off writes the defaults explicitly.
Use SVT-AV1-HDR – on/off off Calls SvtAv1EncApp-HDR instead of SvtAv1EncApp and unlocks the SVT-AV1-HDR sub-tab and the fork-only values. The settings stay as they are. Only available when the SVT-AV1-HDR binary was found.
Load SVT-AV1-HDR defaults – button – Sets the settings whose defaults the fork changed: preset 4, 10-bit, Variance Boost on, quantization matrices on with 6 / 10, temporal filter 1, sharpness 1, scale compression strength 1, AC bias 1.0. Nothing else changes. Only available with Use SVT-AV1-HDR on.
PSNR/SSIM stats, Set File --enable-stat-report, --stat-file on/off; file off, empty Lets the encoder calculate PSNR and SSIM and write the per-picture figures into the file. A measurement only; the output does not change.

The Configuration row below the tabs saves, loads and deletes named sets of all SVT-AV1 settings.

Example

CRF 35, preset 10, 10 bit, hierarchical level 4 on a 10-bit YUV 4:2:0 source (640x352, 25 fps), with Minimize command line on:

vspipe "encodingTempSynthSkript.vpy" - --outputindex 0 -c y4m --progress | SvtAv1EncApp --input stdin --width 640 --height 352 --fps-num 25 --fps-denom 1 --input-depth 10 --tile-rows 0 --tile-columns 0 --progress 2 --rc 0 --crf 35 --mbr 0 --aq-mode 2 --tf-strength 3 --luminance-qp-bias 0 --sharpness 0 --preset 10 --hierarchical-levels 4 --matrix-coefficients 5 --color-range 0 --output "video.av1"

With Use SVT-AV1-HDR on the call starts with SvtAv1EncApp-HDR, carries the options of the SVT-AV1-HDR sub-tab that differ from the fork's defaults, and writes values such as --enable-variance-boost 0 explicitly, because they are no longer the default there.

How Hybrid calls it

  • The filter script (Vapoursynth or AviSynth) is piped into the encoder, which reads from standard input; frame size, frame rate and bit depth are passed as options.
  • The script delivers the bit depth and color format set on the Base tab.
  • SvtAv1EncApp writes an AV1 stream in the IVF format; Hybrid muxes it into the chosen container in a separate job.
  • The matrix in the example (--matrix-coefficients 5, bt470bg) and the range come from the source, because to input is set.
  • With Minimize command line on, options that equal the encoder's default are left out. --lookahead -1 is never written, and --keyint -2 never with variable bitrate, because the encoder refuses them when given explicitly.
  • CRF is always written together with --aq-mode 2: the encoder applies its options in order, and a different mode after --crf would turn the encode into a constant quantizer one.
  • With tune Film Grain the options the tune fixes inside the encoder (ALT-REF frames, CDEF, restoration, AC bias, TX bias, complex HVS) are left out.
  • With Two pass encoding Hybrid creates two calls, --pass 1 with a dummy output and --pass 2, both with the same statistics file.
  • Before a job is created Hybrid checks the combinations the encoder rejects at start (see the conditions in the tables) and reports them instead of letting the job fail.

Background

Presets

The preset is the most important setting next to the CRF. Roughly: 0 – 3 for maximum efficiency at very long encoding times, 4 – 6 for good quality at acceptable speed, 8 – 10 for fast encodes, above that for real-time use. The CRF scale is not comparable with x264 or x265; 30 to 35 is a common starting range.

Mainline or HDR fork

Mainline SVT-AV1 is tuned to do well in objective metrics out of the box. SVT-AV1-HDR starts from the same code and changes defaults and decisions in favour of what viewers see: more bits for low-contrast areas, less temporal filtering, quantization matrices, grain retention. Several of these controls exist in mainline too and can be set there by hand; the fork adds the options of the SVT-AV1-HDR sub-tab, 4:4:4, the PQ curve of Variance Boost and the dynamic HDR metadata.

Film grain: three ways

Filmgrain denoising (--film-grain) estimates the grain of the source and lets the decoder synthesize it again. Noise (HDR only) adds generated grain of a chosen strength regardless of the source. Tune Film Grain (HDR only) does neither: it changes the encoder so that the real grain of the source survives the encoding.

Sources