NVEnc
NVEnc is the hardware video encoder of NVIDIA graphics cards. Hybrid drives it through rigaya's command line tool NVEncC and can encode H.264, H.265 and AV1 with it. The encoding runs on the encoder chip of the GPU, which makes it many times faster than a software encoder, at the price of a larger file for the same quality.
Base → Video: NVEnc, then the NVEnc tab
What it does
NVENC is a fixed-function encoder inside the GPU. It does the same steps as a software encoder (motion search, transform, quantization, entropy coding), but with a fixed set of tools and a limited search, so there is far less to tune and the presets lie close together. NVEncC adds everything around it: rate control setup, signalling, and a set of filters that run on the GPU as well (the --vpp-… options).
The rate control modes are:
- constant quality: a quality target, the size results from the content. The usual choice when no size has to be hit.
- variable bitrate: an average bit rate, with a peak limit.
- constant bitrate: the same bit rate throughout; for streaming.
- constant quantizer: fixed quantizers per frame type; for tests and for lossless encoding.
Hybrid can use NVEncC in two ways. Normally Hybrid's own filter chain (Vapoursynth, AviSynth or ffmpeg) decodes and filters the video and pipes it to NVEncC. With Only use encoder NVEncC reads the source itself, decodes it on the GPU and applies its own filters; only then are the filters of the Hardware sub-tab used.
Requirements
- An NVIDIA graphics card with NVENC and a current driver. NVEncC is part of Hybrid on Windows and is supported on Linux (binary
nvencc); it does not exist for macOS. - What the card can do decides what the tab offers. Hybrid asks NVEncC for the features of the GPU and offers only those: the codecs (H.265 from the second Maxwell generation on, AV1 from RTX 40 on), 10-bit output (from Pascal on), 4:4:4 output, lossless, B-frames and their maximum number, B-frame reference modes, temporal adaptive quantization, lookahead, custom VBV size, slices, temporal layers, hierarchical P/B and field coding. Controls a card does not support are locked or their lists are shorter. The tune uhq is probed separately for H.265 and AV1.
- The filters based on NVIDIA NGX (resizer ngx-vsr, SDR to HDR) exist only in the Windows build of NVEncC and need an RTX card.
- The quality metrics SSIMULACRA2, Butteraugli and CVVDP need a build of NVEncC with libvship.
Settings
The option column shows the NVEncC option a control ends up as. Many numeric controls use 0 or auto for "leave it to the encoder"; nothing is written then.
Base

The row below Encoding mode changes with the mode; the screenshot shows constant quality.
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Codec | --codec | h264, h265, av1 | h264 | Video format to encode. Only the codecs the card supports are listed. The codec also decides which profile controls and which of the codec groups on Misc are active. |
| Encoding mode | --cqp, --cbr, --vbr, --vbr 0 --vbr-quality | constant quantizer, constant bitrate, variable bitrate, constant quality | constant quality | Rate control mode, see above. constant quantizer is missing when the card does not support it for the codec. |
| Quality | --vbr 0 --vbr-quality | 0 – 51 (AV1: 0 – 63), step 0.01 | 0 | Quality target of the constant quality mode; lower is better and bigger. 0 lets the encoder choose. The scale is close to, but not the same as, the CRF of the software encoders. |
| Bitrate (kbit/s) | --vbr, --cbr | 16 – 800000 | on, 1500 | Target bit rate of the two bit rate modes. Select the radio button to enter the bit rate directly. |
| Target size (MiB), Target mode | --vbr, --cbr | 0.2 MiB and up; custom, 1/4 CD … 1 BD 50 | off, 700, custom | 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. A single-pass hardware encode only gets close to the size. |
| Max Bitrate (kBit/s) | --max-bitrate | 16 – 800000 | 800000 | Peak bit rate. Editable in variable bitrate mode; written in both bit rate modes. For H.264 and H.265 Hybrid sets the value and its upper limit from the level (and tier). |
| 2pass, (mode) | --multipass | none, 2pass-quarter, 2pass-full | off, none | Two-pass rate control inside the encoder: a first pass over each frame (at quarter or full resolution) estimates its complexity, the second encodes. It hits the bit rate more precisely and costs speed. Only in the two bit rate modes; it is not a second run over the file. |
| Quantizer, split, (I/P/B) | --cqp | 1 – 51 | split on, 20 / 23 / 25 (single value: 20) | Quantizers of the constant quantizer mode. With split one value each for I-, P- and B-frames (I < P < B is usual), otherwise one value for all. |
| lossless | --lossless | on/off | off | Lossless encoding. Only in constant quantizer mode and only when the card supports it for the codec; split is switched off with it. |
| ignore input csp on lossless | --lossless-ignore-input-csp | on/off | on | Lets lossless encoding run even when the input is not in the color format NVEncC would want for it. Only with lossless. |
| Lookahead | --lookahead | 0 – 32 | 16 | Number of frames the encoder looks ahead for rate control and for the adaptive placement of B-frames. 0 switches it off; adaptive B-frames and Lookahead Level need it. |
| Motion vector precision | --mv-precision | quarter pixel, half pixel, full pixel | quarter pixel | Accuracy of the motion vectors (Q-pel, half-pel, full-pel). Quarter pixel gives the best quality; it is not listed when the card cannot do it. |
| Profile@Level (H.264) | --profile, --level | baseline, main, high, high444; 1 – 5.2, auto | high, auto | Profile and level of the stream. high444 is only listed when the card supports 4:4:4 and is needed for it. auto picks the level the video needs. Hybrid does not check the other settings against the chosen level. |
| Profile@Level (H.265) | --profile, --level, --tier | main, main10, main444; 1.0 – 6.2, auto; main, high | main, auto, high | Profile, level and tier. 10-bit output needs main10 (Hybrid switches profile and bit depth together), 4:4:4 needs main444. The high tier raises the bit rate limit of the level. |
| Profile@Level (AV1) | --profile, --level, --tier | main, high; 2 – 7.3, auto; 0, 1 | main, auto, 1 | Profile, level and tier for AV1. main covers 8- and 10-bit 4:2:0. |
| Encoder preset | --preset | performance, P2, P3, default, P5, P6, quality | default | Speed/quality preset, from fastest to slowest (P1 … P7; performance, default and quality are P1, P4 and P7). The steps are much smaller than with a software encoder. |
| Sampling | --output-csp | i420, i444 | i420 | Chroma format of the output. i444 is only offered when the card supports it and, for H.264 and H.265, with the 4:4:4 profile; it writes --output-csp yuv444, i420 writes nothing (NVEncC default yuv420). Hybrid delivers the video in this format; the quality metrics are not available with i444.
|
| Output bit-depth | --output-depth | 8-bit, 10-bit | 8-bit | Bit depth of the encoded stream. 10-bit needs card support for the codec. |
| fall back to 8 bit | --fallback-bitdepth | on/off | off | Encode 8 bit instead of aborting when no GPU in the system can encode 10 bit. Only with 10-bit output. |
| Quantizer (init/min/max) | --qp-init, --qp-min, --qp-max | 0 – 51 each | 0 / 0 / 0 | Start value and limits of the quantizer for the rate control. 0 leaves each to the encoder. Not written in constant quantizer mode. |
| VBV buffer (kbit) | --vbv-bufsize | 0 – 800000 | 0 | Size of the decoder buffer the rate control has to respect; 0 = automatic. Locked when the card does not allow a custom size. |
| Tune | --tune | auto, hq, uhq, lowlatency, ultralowlatency | auto | What the encoder optimizes for. auto writes nothing. hq is the normal choice for files, uhq searches harder and is slower (H.265 and AV1 only, where the card offers it; it needs at least 4 B-frames, which Hybrid enforces). The latency tunes drop the tools that need lookahead and only cost quality when encoding files. |
Frame

References
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Maximum number of reference frames | --ref | 0 – 16 (H.265, AV1: 0 – 7) | 3 | How many frames a frame may refer to. More can help compression and needs more decoder memory. |
| MultiLevel L0-References | --multiref-l0 | on/off; 1 – 7 | off, 3 | Number of references in list L0 (past frames) a frame may use at the same time. H.264 and H.265 only; AV1 has Refs (fwd/bwd) on Misc. |
| MultiLevel L1-References | --multiref-l1 | on/off; 1 – 7 | off, 3 | The same for list L1 (future frames, used by B-frames). |
I-frame Settings
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Gop size max | --gop-len | 0 – 10000 | 0 | Longest distance between key frames in frames. 0 lets the encoder choose. Shorter GOPs seek faster and cost bits. |
| strict | --strict-gop | on/off | off | Forces exactly the set GOP length, e.g. when cut points must be at fixed distances. Only available with a GOP size other than 0. |
| Adaptive I-frame placement | --no-i-adapt (when off) | on/off | on | Lets the encoder insert I-frames where the content changes (scene changes). |
| Key frames for chapters | --keyfile | on/off | on | Hybrid writes a list of the chapter start frames and has the encoder place key frames there. |
P-frame Settings
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Weighted P-Frames | --weightp | on/off | off | Weighted prediction for P-frames, which helps in fades. Only available without B-frames. |
| Automatically add non-reference P-frames | --nonrefp | on/off | off | Lets the encoder insert P-frames that no other frame refers to. Meant for streaming, where such frames can be dropped without damage. |
B-frame Settings
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Maximum number of consecutive b-frames | --bframes | 0 – 31, limited to what the card supports for the codec | 3 | Upper limit of B-frames in a row. Locked when the card has no B-frames for the codec. With the tune uhq (H.265, AV1) the minimum is 4. |
| B-frame direct mode | --direct | auto, none, spatial, temporal | auto | How the motion vectors of direct blocks are predicted. H.264 only; needs B-frames and card support. |
| B-frame ref mode | --bref-mode | auto, disabled, each, middle, hierarchical | auto | Whether B-frames may be references for other frames: every B-frame, only the middle one, or a hierarchy (AV1 only). The list follows what the card reports for the codec; needs B-frames. |
| Adaptive B-frame placement | --no-b-adapt (when off) | on/off | off | Lets the encoder decide per position between B- and P-frame. Needs B-frames, lookahead above 0 and card support. |
Adaptive Quantization
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Spatial, Strength | --aq, --aq-strength | on/off; 0 – 15 | off, 0 | Spatial adaptive quantization: shifts bits inside a frame from detailed to flat areas, where errors are more visible. Strength 1 (weak) to 15 (strong), 0 = automatic. |
| Temporal | --aq-temporal | on/off | off | Adaptive quantization over time: more bits for areas that stay on screen. Helps most with static content. Locked when the card does not support it for the codec. |
| Transformation | --adapt-transform, --no-adapt-transform | auto, enforce, disabled | auto | Adaptive choice between the 4×4 and 8×8 transform. H.264 only; auto writes nothing. |
| Chroma quantizer offset | --chroma-qp-offset | -51 – 50 | 0 | Quantizer offset for the chroma planes; negative values give chroma more bits. Only written when not 0. |
Below the groups
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Slices | --slices | 0 – 64 | 0 | Number of slices per frame; 0 = automatic. Locked when the card does not support it for the codec. |
| Temporal layers | --temporal-layers | 0 – 8, limited to what the card supports | 0 | Number of temporal layers, so that a receiver can drop layers to lower the frame rate. For streaming; 0 = off. |
| Hierarchical P, Hierarchical B | --hierarchical-p, --hierarchical-b | on/off | off | Builds P- or B-frames as a pyramid. H.264 only and only where the card supports it. |
| Uni-directional B | --unidirectb | on/off | off | B-frames that only refer to past frames; for low latency. |
Color

HDR to SDR
Tone mapping on the GPU through --vpp-colorspace hdr2sdr=…. Adjust the VUI values to the SDR result.
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| HDR to SDR | --vpp-colorspace hdr2sdr | on/off | off | Converts HDR video to SDR. |
| Source peak | source_peak | 0 – 10000 | 1000 | Peak brightness of the source in nits. |
| LDR nits | ldr_nits | 0 – 10000 | 100 | Target brightness of the SDR output in nits. |
| Mode | hdr2sdr | hable, mobius, reinhard, bt2390 | hable | Tone mapping curve. hable keeps detail in bright and dark areas but gives a rather dark picture; mobius keeps contrast and colors and may clip bright detail; reinhard is a simple global curve; bt2390 is the curve of ITU-R BT.2390 and has no parameters. |
| a, b, c, d, e, f | a, b, c, d, e, f | 0 – 1 each | 0.22, 0.30, 0.10, 0.20, 0.01, 0.30 | Parameters of the hable curve. Only shown with mode hable. |
| Transition, Peak | transition, peak | 0 – 1; 0 – 10 | 0.3, 1 | mobius: threshold where the linear part passes into the curve, and the reference peak brightness. Only shown with mode mobius. |
| Contrast, Peak | contrast, peak | 0 – 10 each | 0.5, 1 | reinhard: local contrast and reference peak brightness. Only shown with mode reinhard. |
SDR to HDR
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| SDR to HDR | --vpp-ngx-truehdr | on/off | off | AI based conversion of SDR to HDR with NVIDIA's RTX Video SDK. The output is BT.2020; set matrix bt2020nc, primaries bt2020, transfer smpte2084 and the HDR signalling to match. Windows only, RTX card needed. |
| Contrast | contrast | 0 – 200 | 100 | Difference between bright and dark. |
| Saturation | saturation | 0 – 200 | 100 | Color intensity. |
| Middle gray | middlegray | 10 – 100 | 50 | Average brightness. |
| Luminance (max) | maxluminance | 400 – 2000 | 1000 | Peak brightness in nits. |
Video Usability Information
These controls only write flags into the stream; nothing is converted. The group box switches all of them on or off.
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Color primes | --colorprim | undef, bt709, bt470m, bt470bg, smpte170m, smpte240m, film, bt2020 | off, undef | Color primaries of the video. |
| Transfer characteristics | --transfer | undef, bt709, … smpte2084, arib-std-b67 | off, undef | Transfer function; smpte2084 is PQ (HDR10), arib-std-b67 is HLG. |
| Color Matrix | --colormatrix | undef, bt709, fcc, bt470bg, smpte170m, smpte240m, GBR, YCgCo, bt2020nc, bt2020c | on, undef | Matrix for the YUV ↔ RGB conversion. |
| Videoformat | --videoformat | undef, component, pal, ntsc, secam, mac | off, undef | Original video system; informational. |
| Luma range | --colorrange | limited, full | on, limited | Value range (16 – 235 or 0 – 255). When unchecked Hybrid still writes the range of the video that reaches the encoder. |
| Chroma sample location | --chromaloc | 0 – 5 | off, 0 | Position of the chroma samples relative to luma. |
| Adjust color: matrix, transfer, primes, luma | – | on/off each | on | Hybrid sets the value next to the checked entry from the video that reaches the encoder; the value boxes are then locked. |
Hardware

The filters of this tab run on the GPU inside NVEncC. They are only available with Only use encoder checked. Crop, resize, letterbox and cut are then taken from Hybrid's normal settings and passed as --crop, --vpp-resize / --output-res, --vpp-pad and --trim. Each filter row has a checkbox; its parameters are locked while it is off. The screenshot does not show the last rows (LUT, Parallel encoding, Split encoding).
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Only use encoder | --avhw | on/off | off | NVEncC reads and decodes the source itself (hardware decoding); no Vapoursynth, AviSynth or ffmpeg filtering takes place. |
| Denoise: Gauss | --vpp-gauss | disabled, 3, 5, 7 | disabled | Gaussian blur with the given kernel size. Simple and fast; removes detail together with the noise. |
| Resizer, Quality | --vpp-resize algo=, vsr-quality= | auto, bilinear, spline16, spline36, spline64, lanczos2, lanczos3, lanczos4, lanczos, nn, npp_linear, cubic, super, ngx-vsr; 1 – 4 | auto, 1 | Scaling algorithm for the resize set in Hybrid. super only downscales (Hybrid uses lanczos when upscaling). ngx-vsr is NVIDIA's Video Super Resolution (Windows only) and shows its Quality setting. |
| Field order | --interlace | auto, bff, tff, none | auto | Field order NVEncC assumes when one of its deinterlacers is selected in Hybrid's deinterlace settings (--vpp-deinterlace adaptive or bob; IVTC uses --vpp-afs).
|
| Denoise: KNN — Radius, Strength, Lerp strength, Lerp threshold | --vpp-knn radius=, strength=, lerp=, th_lerp= | 1 – 100; 0 – 1; 0 – 1; 0 – 1 | off; 3, 0.08, 0.2, 0.8 | K-nearest-neighbour denoiser: every pixel is averaged with similar pixels around it. Lerp strength is the mix of original and filtered pixel (lower = stronger), Lerp threshold the edge detection threshold (higher keeps edges). |
| Denoise: PMD — Count, Strength, Threshold | --vpp-pmd apply_count=, strength=, threshold= | 1 – 100; 0 – 100; 0 – 255 | off; 2, 100, 100 | Denoiser based on Perona-Malik diffusion, which smooths along edges rather than across them. Count is the number of passes; a lower Threshold keeps more edges. |
| NLMeans — Sigma, H, Patch size, Search size, FP16 | --vpp-nlmeans sigma=, h=, patch=, search=, fp16= | 0 – 19; 0 – 1; 3 – 21; 3 – 21; none, blockdiff, all | off; 0.005, 0.05, 5, 11, blockdiff | Non-local means denoiser. Sigma is the noise variance, H the filter strength; a larger search window finds more matches and costs time. FP16 selects where half precision is used; blockdiff is faster with hardly any difference. |
| Unsharpen — Radius, Weight, Threshold | --vpp-unsharp radius=, weight=, threshold= | 1 – 9; 0 – 10; 0 – 255 | off; 3, 0.5, 10 | Unsharp mask sharpening. Weight is the strength, Threshold the smallest brightness change that gets sharpened. Denoise before sharpening. |
| Smooth — Quality, Strength, Precision | --vpp-smooth quality=, qp=, prec= | 1 – 6; 1 – 63; fp16, fp32 | off; 3, 12, fp16 | Smoothing in the frequency domain against compression artefacts (blocking, mosquito noise). Higher Quality is slower; Strength corresponds to the quantizer the source was compressed with. |
| WarpSharp — Threshold, Blur, Type, Depth, Chroma | --vpp-warpsharp threshold=, blur=, type=, depth=, chroma= | 0 – 255; 1 – 100; 13x13, 5x5; -128 – 128; luma mask, individual mask | off; 128, 1, 13x13, 16, luma mask | Sharpens by warping the picture towards edges. Threshold is the edge mask threshold, Blur the number of blur passes on the mask, Depth how far to warp. Chroma selects whether chroma uses the luma mask or masks of its own. |
| Edge Level — Strength, Threshold, Black, White | --vpp-edgelevel strength=, threshold=, black=, white= | -31 – 31; 0 – 255; 0 – 31; 0 – 31 | off; 0, 20, 0, 0 | Edge enhancement. Threshold ignores noise; Black and White allow the dark and the bright side of an edge to be pushed further. |
| Deband — Range, Sample | --vpp-deband range=, sample= | 0 – 127; 0 – 2 | off; 15, 1 | Removes banding in flat gradients. Range is the area looked at, Sample the sampling pattern. |
| Deband — Threshold, Split (Y/Cb/Cr) | thre= or thre_y=, thre_cb=, thre_cr= | 0 – 31 each | 15, split off | How large a difference still counts as a band; too high smooths real detail. With Split one value per plane. |
| Deband — Dither, Split (Y/C), Seed | dither= or dither_y=, dither_c=; seed= | 0 – 31 each; 0 – 99999 | 15, split off, 1234 | Strength of the dither added after smoothing, optionally separate for luma and chroma, and the seed of the random generator. |
| Deband — Blur first, Random each frame | blurfirst=, rand_each_frame= | on/off | off | Blur before the comparison (stronger, may lose detail); new random numbers for every frame. |
| Tweak — Brightness, Contrast, Gamma, Saturation, Hue, Swap UV | --vpp-tweak brightness=, contrast=, gamma=, saturation=, hue=, swapuv= | -1 – 1; -2 – 2; 0.1 – 10; 0 – 3; -180 – 180; on/off | off; 0, 1, 1, 1, 0, off | Basic color adjustments. Swap UV swaps the two chroma planes, for sources with exchanged color channels. |
| Rotate | --vpp-rotate | 90, 180, 270 | off, 90 | Rotates the picture; 90 and 270 swap width and height. |
| Transpose — Flip X, Y, Transpose | --vpp-transform flip_x=, flip_y=, transpose= | on/off each | off | Mirror horizontally, mirror vertically, mirror along the diagonal. The three can be combined. |
| LUT, (file), Interpolator | --vpp-colorspace lut3d=, lut3d_interp= | .cube file; nearest, trilinear, pyramid, prism, tetrahedral | off, empty, pyramid | Applies a 3D lookup table to the picture. Only .cube files. The interpolator decides how values between the nodes of the table are computed. |
| Parallel encoding, (count) | --parallel | auto, 1 – 4 | off, auto | Splits the file into parts and encodes them at the same time, to use encoder units that would otherwise idle. NVEncC switches it off by itself when the input comes through a pipe or is not seekable, so it needs Only use encoder. |
| Split encoding, (mode) | --split-enc | auto, auto_forced, forced_2, forced_3, forced_4, disable | off, auto | Splits every frame into strips that are encoded by several encoder units. Needs a card with more than one NVENC unit. |
Misc

H.265 only
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Coding unit size (min/max) | --cu-min, --cu-max | auto, 8, 16, 32 | auto / auto | Limits for the size of the coding units. NVEncC advises against setting them; auto gives the better quality. |
| Temporal Filtering | --tf-level | 0, 4 | 0 | Temporal filtering of the frames before encoding, which improves compression. Needs at least 4 B-frames. |
| Lookahead Level | --lookahead-level | 0 – 3 | 0 | Quality level of the lookahead; higher is slower. Needs lookahead above 0 and card support. |
AV1 only
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Tiles (col/row) | --tile-columns, --tile-rows | auto, 1, 2, 4, 8, 16, 32, 64 | auto / auto | Splits the frame into tiles that can be encoded and decoded in parallel; every tile border costs a little compression. |
| Partition (min/max) | --part-size-min, --part-size-max | auto, 4, 8, 16, 32, 64 | auto / auto | Smallest and largest luma block the encoder may use. Hybrid keeps the minimum at or below the maximum. |
| Refs (fwd/bwd) | --refs-forward, --refs-backward | auto, 1 – 4; auto, 1 – 3 | auto / auto | Highest number of forward and of backward (L1) reference frames. |
H.264 only
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| CABAC | --cabac / --cavlc | on/off | on | Entropy coder. CABAC compresses better; CAVLC is easier to decode. Locked when the card has no CABAC. |
| Deblock | --deblock / --no-deblock | on/off | on | The in-loop deblocking filter of H.264. |
| Interlaced encoding | --interlaced tff / bff | on/off | off | Encodes interlaced; the field order comes from the video. Needs field coding support of the card. |
| Blu-ray compatible | --bluray | on/off | off | Restricts the stream to what Blu-ray allows. Not in constant quantizer mode. |
DolbyVision
For H.265 and AV1.
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| DolbyVision | – | on/off | off | Switches the Dolby Vision signalling on. |
| Profile, Copy | --dolby-vision-profile | 5.0, 8.1, 8.2, 8.4, 10.0, 10.1, 10.2, 10.4; copy | 5.0, off | Dolby Vision profile to signal. Copy takes it from the source and is only available with Only use encoder. |
| RPU, Copy | --dolby-vision-rpu | file; copy | empty, off | RPU file with the Dolby Vision metadata that is interleaved into the stream. Copy takes the metadata from an H.265 source that has time stamps; only with Only use encoder. |
Misc
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| calc PSNR, calc SSIM | --psnr, --ssim | on/off | off | Lets the encoder measure PSNR or SSIM against its input and write it to the log. Costs speed, changes nothing in the output. |
| calc VMAF | --vmaf | on/off | off | The same for VMAF, which runs on the CPU and can become the bottleneck. |
| calc SSIMULACRA2, calc Butteraugli, calc CVVDP | --vship-ssimulacra2, --vship-butteraugli, --vship-cvvdp | on/off | off | Perceptual metrics computed on the GPU through libvship. For Butteraugli smaller is better. |
| No too small warning | – | on/off | off | No warning when the computed file size is below 1 MB. |
| DirectSynthLoading | --vpy / --avs | on/off | off | NVEncC opens the Vapoursynth or AviSynth script itself instead of getting the video through a pipe. |
| MT | --vpy-mt | on/off | off | Loads the script through NVEncC's multithreaded reader. Only with DirectSynthLoading and only on Windows. |
None of the metrics is available with i444 output.
HDR Signaling
For H.265 and AV1. Signalling only; the picture is not changed.
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Light Level, max cll, max fall, from Input | --max-cll | 0 – 65535 each | off, 1000, 300, from Input on | Maximum content light level and maximum frame-average light level in nits. from Input takes the values Hybrid found when analysing the source. |
| ATC, (value) | --atc-sei | undef, auto, bt709, … smpte2084, arib-std-b67 | off, undef | Alternative transfer characteristics SEI; needed for HLG, where it is set to arib-std-b67. H.265 only. |
| Master Display, from Input | --master-display | text | off, empty, from Input on | Mastering display data (SMPTE ST 2086) in the form G(x,y)B(x,y)R(x,y)WP(x,y)L(max,min). from Input takes it from the source.
|
| Dynamic HDR-10+ | --dhdr10-info | JSON file | off, empty | HDR10+ metadata from a JSON file; the arrow button selects the file. |
Below the groups
| Control | NVEncC option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Addition | – | text | empty | Text that is added to the end of the call unchanged, for options Hybrid does not offer. It is not checked. |
| CUDA schedule | --cuda-schedule | auto, spin, yield, sync | sync | What the CPU thread does while it waits for the GPU. spin is the fastest and keeps a core busy, sync sleeps and uses the least CPU, yield is in between, auto lets the driver decide. |
The Configuration row below the tabs saves, loads and deletes named sets of all NVEnc settings.
Example
AV1, constant quality 23, 10-bit output, tune hq, lookahead 32, spatial (strength 5) and temporal adaptive quantization on a 10-bit YUV 4:2:0 source (640x352, 25 fps):
vspipe "encodingTempSynthSkript.vpy" - --outputindex 0 -c y4m --progress | NVEnc --y4m -i - --fps 25.000 --codec av1 --profile main --tier 1 --level auto --sar 1:1 --lookahead 32 --output-depth 10 --tune hq --vbr 0 --vbr-quality 23.00 --aq --aq-strength 5 --aq-temporal --gop-len 0 --ref 3 --nonrefp --bframes 3 --bref-mode auto --mv-precision Q-pel --preset default --colormatrix smpte170m --colorrange limited --cuda-schedule sync --output "video.av1"
How Hybrid calls it
- The filter script (Vapoursynth or AviSynth) is piped into NVEncC as y4m (
--y4m -i -); without a script ffmpeg decodes the source and pipes the video. - With DirectSynthLoading NVEncC opens the script itself (
--vpyor--avs), with Only use encoder it opens the source (--avhw). - NVEncC writes a raw stream (.264, .265 or .av1); Hybrid muxes it into the chosen container in a separate job.
- Codec, profile, level (and tier),
--sar,--gop-len,--ref,--bframes,--mv-precision,--presetand--cuda-scheduleare always written. Options whose control is at 0 or auto are left out, so that NVEncC decides. - The pixel aspect ratio comes from Crop/Resize, the frame rate from the video that reaches the encoder.
- The codec-specific options are only written for their codec; HDR and Dolby Vision signalling only for H.265 and AV1.
- With Key frames for chapters Hybrid creates the key frame file before the encode and passes it as
--keyfile. - The 2pass option is a mode of the encoder; there is always only one encoding job.
Background
Hardware or software encoder
NVENC is the choice when speed matters: recordings, quick conversions, streaming. At the same bit rate a slow software encoder (x264, x265, SVT-AV1) still gives better quality, and it does not depend on the generation of the graphics card. Newer card generations brought better encoders, so the same settings give different results on different cards.
Constant quality
The constant quality mode is a variable bit rate mode without a bit rate target (--vbr 0) and a quality level instead. Its values are not interchangeable with x264's or x265's CRF; find a suitable value on a short sample.
Sources
- NVEnc by rigaya (project page)
- NVEncC option list
- NVIDIA Video Codec SDK
- The built-in help of NVEncC (
NVEncC --help) - Hybrid's tooltips