HandBrake Guide

How to compress video in HandBrake: quality, size and settings

Choose an acceptable quality before chasing a smaller file. Set up a source-safe copy, tune RF and tracks, preview difficult scenes and verify the completed output.

A metal caliper around a stack of slides showing an ocean wave

To compress a video in HandBrake, choose a preset that fits its destination, use Constant Quality on the Video tab, then encode a short preview before the whole file. For an ordinary SDR viewing copy, I’d start with MP4 and H.264 (x264): they give the recipient a practical chance of playing the file without another conversion. General → Fast 1080p30, RF 22 and AAC stereo at 160 kbps are a useful starting combination only when a 1080p ceiling, a 30 fps ceiling and stereo sound suit the job.

There is no setting that guarantees both a particular percentage reduction and unchanged quality. HandBrake re-encodes the picture; a smaller copy spends fewer bits on some combination of picture detail, motion and sound. Keep your original and judge the copy where it will actually be watched.

Choose the goal before changing settings

Use Constant Quality when you want an acceptable picture at a sensible size. You choose the quality setting, and the encoder uses the bitrate it needs. A clean talking-head recording and a grainy night scene can finish at very different sizes with the same RF. That variation is expected.

If an upload must be below a hard limit, such as 100 MB, use a duration-based average-bitrate budget instead. Constant Quality cannot promise that result. Our guide to reducing video to a target file size covers the calculation, audio allowance and margin. If a site specifies a codec, frame rate or dimensions, those requirements come first.

For archival preservation, retain the source. HandBrake does not pass video through without conversion, so this workflow creates a new viewing or delivery copy. If you only want MKV changed to MP4 while keeping the encoded picture, check the conversion versus remuxing decision before spending time on a lossy encode.

Set up a smaller viewing copy

  1. Open Source and select the best original available. Confirm the title, duration and range. Do not accidentally compress one chapter or an earlier low-quality export.
  2. Choose a suitable preset before making detailed changes. A different preset can replace settings you have already adjusted.
  3. For the SDR, 1080p-or-lower, up-to-30-fps stereo delivery described above, choose General → Fast 1080p30. On Summary, confirm MP4.
  4. On Video, confirm H.264 (x264) → Constant Quality → RF 22. Leave the preset’s encoder speed at Fast for the first comparison.
  5. Check Dimensions, frame rate, Audio and Subtitles using the decisions below. The preset is a starting bundle, not proof that every selected track and limit fits your source.
  6. Use Save As and Browse to create a clearly named copy, such as interview-small.mp4, in a writable folder. Confirm the destination is different from the original.

The HandBrake 1.11.2 preset definition sets Fast 1080p30 to x264 RF 22, Fast encoder speed, a 1920 × 1080 resolution limit, 30 fps Peak Framerate and AAC stereo at 160 kbps. A 4K or 60 fps source therefore needs a deliberate decision: accept those reductions or choose and configure a more suitable preset.

HandBrake Summary with MP4, H.264 and AAC stereo above the Save As path
Confirm MP4 and the intended tracks. Use a separate output path so you can compare the two copies. Open full size.

Adjust quality without chasing a magic RF

For x264 and x265, a higher RF means lower quality and usually a smaller file; a lower RF means higher quality and usually a larger file. HandBrake’s quality guidance recommends RF 20–24 for 1080p with these encoders. RF 22 is a reasonable first sample, not a promise that all footage will look good or become smaller.

If that sample looks good but is still unnecessarily large, try RF 23 or 24 with everything else unchanged. If faces become waxy, fine text breaks up, gradients band or motion loses detail, move back toward higher quality. Compare at the intended display size and during playback; a paused frame alone can hide motion problems.

Do not copy RF 22 between every encoder. x264, x265 and SVT-AV1 have different quality scales, and Apple VideoToolbox runs its numerical quality direction the other way. The official quality guide explains these differences. Start again with an appropriate setting after changing encoder rather than assuming equal numbers mean equal quality.

What published results show about size

In HandBrake’s published quality comparison, the 12-minute-14-second Tears of Steel source was converted from 4K to 1080p with x264 Medium while only RF changed:

Quality settingReported total output size
RF 27238.0 MB
RF 24357.5 MB
RF 21562.7 MB

These are results for that clip and configuration, measured on a Mid-2010 Mac Pro with a Xeon W3680, 24 GB RAM and macOS Mojave. They illustrate the direction and uneven size change; they do not predict your file or establish a quality winner. My takeaway is to move RF in small steps and watch the difficult scene, rather than expecting each step to save a fixed percentage.

Encoder speed is a separate decision

Fast 1080p30 is an application preset containing picture, audio and other settings. Fast, Medium and Slow on the Video tab are encoder speed presets. They control the encoder’s internal work and can affect efficiency, quality and size.

Keep the selected speed fixed while finding an acceptable RF. If you can afford a longer encode, compare a slower speed on the same difficult sample, then reconsider quality. The encoder-preset documentation explicitly warns that changing speed can require a quality or bitrate adjustment. “Very Slow” is not a guaranteed smallest-file button, and Ultrafast is a speed choice rather than a compression target. Leave Tune and Advanced Options alone unless the footage gives you a specific reason to change them.

Should you switch to H.265 or AV1?

Consider them when the receiving player or service accepts the complete output format and saving space matters more than using the x264 starting recipe. H.265 and AV1 can be useful compression options, but their benefit depends on content, encoder, settings and the quality you accept. Verify the receiver’s codec, bit-depth and container requirements, then compare samples. A hardware encoder can shorten encoding work, but its availability does not establish a smaller file or a universal quality advantage; the official codec overview distinguishes software and hardware implementations.

Keep the detail and motion the viewer needs

In Dimensions, check the actual output width and height. Reducing 4K to 1080p, or 1080p to 720p, may be sensible for a small-screen viewing copy. It can also make spreadsheet cells, slides and interface labels unreadable. I’d preserve readable text before trading resolution for a smaller lecture recording. Enlarging a low-resolution source cannot recover missing detail.

HandBrake Dimensions with Cropping set to None
Choose None when the framing should stay intact. Then check the final dimensions after scaling. Open full size.

Inspect the crop too. Encoded black bands can be removed when the framing remains correct, but crop values remove real source pixels. Check several points if the aspect ratio changes or subtitles sit near an edge. The final picture dimensions can change independently of the crop because a preset also imposes a resolution limit.

For motion, choose deliberately:

  • Same as Source + Variable Framerate: retains the source’s frame timing without imposing a new frame-rate conversion.
  • A specified rate + Peak Framerate: caps faster portions. The 30 fps cap in Fast 1080p30 can discard motion from 50/60 fps material.
  • Constant Framerate: use when the receiving editor, service or device requires a fixed rate. Select a suitable rate rather than using CFR as a generic size-saving trick.

HandBrake’s frame-rate explanation separates these modes. Do not automatically turn a screen recording into 15 fps or sports into 30 fps just because a compression recipe says so. Watch scrolling, pointer movement, camera pans and action before accepting the result.

This starting recipe is for SDR. HDR10, HDR10+ and Dolby Vision require attention to the encoder, bit depth, supported metadata and playback path. Do not apply an ordinary H.264 recipe and assume HDR appearance will survive; the HDR documentation explains the supported workflows.

Check audio, track selection and subtitles

On Audio, confirm the correct language and mixdown for each retained track. AAC stereo at 160 kbps is a practical starting option for this stereo viewing copy. Keep surround or a higher-quality audio path when that is part of the delivery requirement; do not silently discard it to meet the example.

Passthru copies compressed audio without re-encoding it. A large passthrough track can therefore remain a significant part of a much smaller video. For scale, a constant 160 kbps audio track contributes about 72 MB per hour before container overhead; 640 kbps contributes about 288 MB. Those are bitrate calculations, not measured output sizes. The audio codec guide describes the available encoding and passthrough choices.

Remove an unwanted commentary, duplicate language or extra track only after identifying it. Presets can store audio and subtitle selection rules, which are then applied to each source; they do not guarantee that the track you wanted was selected. Check the actual track rows again for the next file.

On Subtitles, retain the needed language and decide whether the receiving player can use a selectable track or needs Burn In. Burning text into the image is permanent. Check forced dialogue separately: a short sample may contain none, and the Foreign Audio Scan result needs verification in the completed encode.

Preview the hard scene, then verify the whole copy

Open Preview, select a representative position and encode a short segment—30 seconds is a useful example. On Windows the action is Encode Preview; the Mac workflow uses Live Preview. The preview workflow lets you judge encoded output before committing to the full job.

Choose more than an easy static opening if the video contains movement, grain, small text or dark gradients. Compare the source and encoded sample for the information that matters: faces and texture for an interview, legible labels for a tutorial, stable detail during action. Listen to dialogue and check lip sync. Change one setting, encode again and keep the better acceptable trade-off.

HandBrake macOS Preview with the sample position slider and Live Preview
Choose a difficult scene and use Live Preview on Mac. Check the full copy after the sample gives you a useful setting. Open full size.

A preview is not a complete subtitle test. For example, the Windows 1.11.2 preview code removes Foreign Audio Scan from the sample job. Verify the resulting forced subtitles in the full file instead of treating their absence in a preview as the final result.

When the settings are acceptable, recheck the full range and destination, then choose Start Encode or add the configured job to the queue. After completion, open the saved file in the intended player or upload destination. Confirm its size, full duration, beginning, middle and end, motion, audio languages, sync and subtitles. Keep the original until the copy passes that check.

Why the compressed file is bigger—and what to change

HandBrake is not an archive compressor with a guaranteed reduction. An already efficient phone recording or downloaded copy may use fewer bits than your new settings request. A larger output does not recover detail already removed from the source.

What you findLikely explanationNext useful action
The output is larger at a low x264 RFThe chosen quality asks for more data than the source usedTry a slightly higher RF on the same sample; stop when quality becomes unacceptable
Video is small but the total remains largePassthrough or multiple audio tracks contribute substantial dataInspect each audio track and use an appropriate supported encode or remove only unwanted tracks
Size or quality changed after selecting hardware encodingA different encoder and quality scale are now in useRetune and compare rather than reusing the old RF number
A clean lecture still needs fewer megabytesResolution may exceed the viewing task, or the upload has a hard budgetCheck text at a lower resolution; use average bitrate for a strict cap
Repeated attempts look progressively worseEach attempt was made from the previous lossy outputReturn to the best original and create each candidate from it

Also compare equal durations and the actual files, rather than a player’s rounded display or an unfinished output. If no acceptable sample achieves the reduction, keep the larger acceptable copy, change the delivery requirement or choose another supported codec. RF 0 and a slower preset cannot restore lost detail or guarantee a tiny file.

For a failed or stalled encode, use the activity log and the HandBrake error troubleshooting workflow. For a successful encode that simply misses an upload limit, return to the size budget. Those are different problems, and changing random quality settings is a poor way to diagnose either.

Filed under Compress video