HandBrake Guide

Best HandBrake NVENC Settings for H.264, HEVC and AV1

Start with the built-in HEVC NVENC settings. Pick a codec your device can play, compare a short sample, and read the Activity Log when hardware encoding is slow.

A graphics card with three visible fans

For a fast HEVC copy in HandBrake 1.11.2, start with Hardware > H.265 NVENC 1080p or H.265 NVENC 2160p 4K and keep the Medium encoder preset for your first sample. The stock 1080p preset starts at CQ 27 and the 4K preset at CQ 30. Choose H.264 (NVEnc) for a receiver that needs H.264, or try AV1 (NVEnc) when your NVIDIA card can encode it and your receiver can play it. Check a difficult scene before converting the whole file.

Choose the codec your receiver can play

Start with the television, phone, editor or upload service that will receive the file. A card capable of encoding AV1 says little about a television that has to decode it. If the destination accepts HEVC, I'd use the built-in H.265 NVENC preset first because it gives you a reproducible starting point for size and quality.

DeliveryStarting pointWhat to confirm
Playback on older or unfamiliar devicesMP4, H.264 (NVEnc) and AAC stereoThe device accepts the output resolution and frame rate. Play the sample with sound.
Fast 1080p or 4K copy for a known HEVC playerMatching H.265 NVENC hardware presetBoth picture and audio tracks play. Compare size and texture against your target.
10-bit HEVC deliveryH.265 10-bit (NVEnc)The receiver accepts HEVC Main 10. If you need HDR, check the color signal and metadata separately.
AV1 delivery with confirmed playback supportAV1 (NVEnc) on a supported cardThe card can encode AV1 and the destination can decode it at the chosen size and frame rate.

For AV1, check your exact card in NVIDIA's encode and decode matrix. The GeForce RTX 3060 can decode AV1 and its NVENC block encodes H.264 and HEVC. The RTX 4060 and RTX 5060 also encode AV1. Check the NVENC - Encoding table for the card. In HandBrake 1.11.2 an MP4 container can carry all three codecs, while WebM limits the choices. The supported encoder and container combinations explain why switching formats can make a menu entry disappear.

If your delivery requires dynamic HDR metadata, check HandBrake's HDR10+ and Dolby Vision encoder tables before choosing a 10-bit encoder. The documented NVENC path for HDR10 writes static HDR10 mastering and light metadata to the container. The dynamic formats have their own supported encoder paths.

Find the NVENC encoder in HandBrake

  1. Open a local video. For an HEVC copy, choose the matching Hardware preset. Open the Summary tab and confirm Format is MP4 for the initial sample.
  2. Open the main Video tab. Check the selected Video Encoder ends in (NVEnc). The H.265 hardware preset chooses the 8-bit H.265 (NVEnc) encoder. Select another one explicitly when the destination calls for H.264, 10-bit HEVC or AV1.
  3. On Windows, if the encoder is missing, inspect Tools > Preferences > Video for the NVIDIA section and its availability status. In 1.11.2 the NVIDIA checkbox requests NVDEC for decoding when appropriate. The Video Encoder field in the job controls encoding. See the Windows hardware settings for that release.
  4. On Linux, verify the driver sees the card and that the HandBrake package you're using includes NVENC support. The app detects the encoder through the hardware and driver. HandBrake describes the platform-specific behavior in its NVENC setup notes. On supported Macs the separate VideoToolbox encoder is the hardware route.
HandBrake for Windows Video tab with H.265 (NVEnc) selected in Video Encoder
Check Video Encoder on the Video tab. The NVEnc entry selects NVIDIA hardware encoding. Open full size.

Use a current driver that NVIDIA supports for your card. If you're checking a minimum, match it to your HandBrake build. The 1.11.2 build pins the 13.0.19.0 headers, whose release notes list driver 570.0 as the minimum for their API on Windows and Linux. The current web manual lists 610.0, consistent with the newer 13.1 headers used in later development builds. A supported driver version and a detected card are the start. The encode has to open a session before the hardware can process frames.

Start at Medium and tune the file size or picture

The 1080p hardware preset definition sets HEVC NVENC, Medium, CQ 27, source frame rate with variable timing and AAC stereo in MP4. The 4K hardware preset uses CQ 30 and a 3840 × 2160 resolution limit. These presets can change the track selection from the source. Look at Audio and Subtitles before encoding, especially if you need surround sound or a translated track. Change frame-rate mode when your playback or editing requirements call for it.

HandBrake for Windows with H.265 (NVEnc), Constant Quality 27 CQ, and Encoder Preset Medium
Medium controls encoder speed. CQ 27 is the starting quality value for H.265 NVENC 1080p. Open full size.

For a picture-quality target, use Constant Quality. Within the same encoder, move the value down a few points if the picture needs more detail, or up if the file is larger than you need. Hold the speed preset steady until you see whether the quality change helps. Then try Slow against Medium when you can spend more time on compression. Let the sample decide. HandBrake explains the speed trade-off in encoder presets.

CQ 27 in an NVENC job and RF 27 in x265 describe different controls. The quality guide explains why a value from one encoder does not transfer to another. For H.264 or AV1, start at that encoder's own defaults and make a sample. Keep the advanced options from the chosen stock hardware preset for the first run. If you've already pasted an old settings string, try the stock configuration again before judging the encoder.

For a 1080p HEVC copy with visibly smeared texture at CQ 27, I'd make a second sample at CQ 25 with the same Medium preset. If the second sample fixes the detail but grows too large, put a number on the size limit and test again at the bitrate it allows. A long, noisy source and a clean screen recording can produce very different files at the same CQ. Check a demanding section from the actual material before keeping an adjustment.

If a command from an old guide names hq or hp, check the names your copy of HandBrakeCLI accepts before using it. The CLI reference lists --encoder-preset-list. For HEVC NVENC, run HandBrakeCLI --encoder-preset-list nvenc_h265. The 1.11.2 list runs from fastest to slowest, with medium in the middle.

For a hard upload limit, use Average Bitrate after calculating room for audio and container overhead. For example, 10 minutes of video averaging 1,100 kb/s plus a 160 kb/s audio track works out to about 94.5 MB before container overhead. Allow headroom and check the actual final file. HandBrake's quality and bitrate guide explains why constant quality cannot predict a file size. The size budgeting workflow covers additional audio tracks and tighter limits.

Compare NVENC with x265 using the same scene

Use a 20- to 30-second scene with motion and a revealing detail such as hair, grain, dark fabric or a gradient. Start with the same source range, crop, output resolution, timing, filters and audio in both jobs. Use different output filenames. The range controls let you reuse the exact start and end.

HandBrake for Windows range controls set to Seconds with separate start and end fields
The two fields mark positions in the source. Enter the same start and end in both test jobs. Open full size.
  1. Encode your Medium NVENC sample and make sure it plays on the destination.
  2. For a fixed size, compare H.265 NVENC and x265 at the same video bitrate with identical audio. Check the actual file sizes and inspect picture quality at the same viewing size. If you have no size cap, adjust each encoder separately until the samples are acceptable, then compare sizes.
  3. Record encoding time and file size after each run. Decide which copy you would keep before multiplying the first result across a queue. A sharper edge or smoother dark gradient may be worth more to you than a higher encode speed.

In HandBrake's published 4K-to-1080p comparison on a GTX 1060 and Xeon E5-2699 v4, H.265 NVENC at CQ 22 encoded at 63.4 fps and produced 906.5 MB. The x265 job at RF 22 reached 16.1 fps and produced 466.3 MB. The report compares these settings on one source without an independent matched-quality result. That pair explains why the same quality number can't settle either the speed or size question for your setup.

A 2024 RTX 4070 comparison on a 1.8 GB H.264 720p source reported 556 MB in 97 seconds for HEVC NVENC at Slow and CQ 32, and 558 MB in 72 seconds for AV1 NVENC at Medium and CQ 38. The posted VMAF values were 87.66 and 89.62, respectively, and replies questioned the score setup. I'd use the case to plan a same-source trial with separate CQ values for each codec. The exact settings depend on your picture and receiver.

Verify NVENC is running when the CPU is busy

Open Activity Log and inspect the record for the encode itself. The tagged encoder code logs lines such as encavcodecInit: H.265 (Nvidia NVENC) when it selects the corresponding encoder. A line that says nvenc: version ... is available reports capability detection at startup. Check for actual encoding progress after initialization, as the encoder startup messages and the NVENC capability check identify different events.

SymptomFirst checkNext move
No NVENC entry in Video EncoderMP4 selected, NVIDIA section, supported card, driver and packageTry H.264 or HEVC first. If only AV1 is missing, verify the specific card can encode AV1.
NVENC selected, encode stops before framesThe first encoder initialization error in Activity LogMake a fresh stock preset sample. If it fails too, record the build, driver, card and first error. Use a software encoder for the immediate delivery.
NVENC is encoding, CPU usage is highSource decoding, scaling, filters and subtitle burn-inMake one diagnostic sample with optional processing removed. Keep deinterlacing, cropping or color conversion when the finished file needs it.
Hardware copy is much larger than a CPU copyActual video bitrate, resolution, retained tracks and rate-control modeRun the matched comparison before changing codecs or assuming the same quality number yields the same file.

NVENC handles video encoding. HandBrake still has work for the CPU, including audio, subtitles, filters and possibly decoding. HandBrake's decoder notes explain how jobs with CPU-side filters such as crop and scale can switch to software decoding while NVENC still handles the output. Check the work the job is doing before interpreting a GPU utilization number. For an encode that stops, the Activity Log troubleshooting guide shows how to isolate the first failure.

Once you have a sample that plays and meets your size or quality target, save the settings as a named custom preset. Restore the full range and confirm your destination before adding the rest of the files to the queue.

Filed under Convert video