Export & Codecs

HandBrake Video Compressor: Settings That Shrink Files

HandBrake Video Compressor: Settings That Shrink Files
Image: Vipid

HandBrake is a free, open-source video transcoder for Windows, macOS and Linux, and the current release listed on its official site is 1.11.2. Used as a handbrake video compressor, it re-encodes a file at a quality target you choose, so a bloated screen recording or phone clip comes out smaller and still plays everywhere. HandBrake’s own quick start guide calls the default Fast 1080p30 preset a good choice because it is fast and compatible with most devices.

That default is a fine first try, but it is not a compression plan. Size depends on four decisions: the quality number, the encoder, the resolution and the audio. This tutorial walks through each one in order, then ties them into a batch script that shrinks a whole folder. If you want the general theory first, our guide to reducing video file size compares the codecs and tools side by side.

By the end you will have a repeatable HandBrake setup built in 12 steps, a saved preset, a command line version, a working batch project for Windows and for macOS or Linux, and a troubleshooting list for the errors that actually show up. The last sections cover easier tools for people who would rather not touch an encoder at all.

Prerequisites and versions for the HandBrake video compressor

You need a computer that can run HandBrake, a source video, and enough free disk space to hold a second copy of that video while it encodes. The version and platform details below follow HandBrake’s own site and documentation. Nothing here depends on a paid license, and no account is required.

  • HandBrake 1.11.2, the current release.
  • Windows: the documentation says HandBrake depends on the Microsoft .NET Desktop Runtime 10.0. Install it first or the app will not start.
  • macOS: the download page lists a universal disk image for macOS 10.13 and later.
  • Linux: the Flathub package fr.handbrake.ghb is the install route the documentation calls most convenient.
  • HandBrakeCLI at the same version as the GUI. You need it only for steps 11 and 12 and the working project.
  • A shell: Bash on macOS and Linux, or PowerShell 5.1 or newer on Windows 10 and 11.
  • Optional: a current FFmpeg build, which gives you ffprobe for checking results.
  • Hardware: any modern 64-bit machine works. A recent NVIDIA, Intel or AMD GPU only matters if you want hardware encoding, covered in the advanced tips.

One more prerequisite is a clear target. Write down where the compressed file is going, how large it can be, and what resolution the viewer needs. A file for a chat message and a file for a client review have different answers, and every later step gets easier once those answers are on paper.

Check the source too. Open it in any player and note the resolution, the frame rate and whether it has audio. Screen recordings often run at a variable frame rate, and phone clips often use HEVC video inside a MOV container. Both facts matter in the pitfalls section later.

Finally, keep the original. HandBrake does not delete a source on its own, but a batch job with a typo in the destination folder can overwrite files. Work on a copy, or point the output at a separate folder every time. A spare few gigabytes of disk space is cheap insurance against losing a master recording you cannot shoot again.

Render settings: the short version

Here are the settings this guide lands on for five common jobs. They are editorial starting points, not values copied from a HandBrake preset, so run a short test clip before you commit a long file. The sections after the table explain why each cell is set the way it is. Platform limits change, so check the destination’s current rules, and see our breakdown of Instagram video length limits by format when the cap is a platform rule rather than a file size.

HandBrake Video tab showing H.264 (x264) encoder, Constant Quality RF 22 and the fast preset for Tears Of Steel.mp4
Image: HandBrake Team
JobContainerMax resolutionFrame rateVideoAudio
Screen recording to shareMP41920×1080Same as sourceH.264, RF 22 to 24, FastAAC stereo, 128 kbps
Talking-head tutorial for webMP41920×1080Same as sourceH.264, RF 20 to 22, MediumAAC stereo
Phone clip for email or chatMP41280×72030 fps peakH.264, RF 24 to 26, FastAAC stereo, 128 kbps
Archive copy that keeps detailMKV or MP4Source sizeSame as sourceH.265, RF 22 to 24, MediumAAC stereo
Tiny review proxyMP4960×54030 fps peakH.264, RF 28, FastAAC stereo, 96 kbps

RF stands for Rate Factor, HandBrake’s name for the Constant Quality number. Lower means better picture and a bigger file. Higher means a smaller file with more visible compression.

The table is deliberately conservative. Most people who ask how to use a handbrake video compressor want one answer, and that answer is H.264 in an MP4 at RF 22, because it plays on nearly every phone, TV, browser and editor. Move to H.265 or AV1 only when you control the playback side or need the smallest possible file.

Resolution is the quickest lever after RF. Dropping a 4K source to 1080p cuts the pixel count to a quarter, which usually shrinks the file far more than any quality tweak. If the viewer will watch on a laptop or phone, 1080p is plenty. If they will read small interface text in a screen recording, keep the source size and raise quality instead.

Audio is the cheapest saving. Stereo AAC at a modest bitrate such as 128 kbps costs very little space compared with video, but a source that carries a surround track or a lossless track can hold far more than you need. The audio step below shows how to cap it.

Steps 1 and 2: install HandBrake and verify the download

Step 1: download from the official site only. HandBrake’s documentation states that its website is the only official download source and that the project publishes checksums for every download. Sites that reuse the HandBrake name, bundle installers or sell a version of the app are not the project. The documentation also names Flathub and the HandBrake GitHub project as official sources for Linux packages and development builds.

On Windows, install the .NET Desktop Runtime 10.0 first if it is missing, then run the HandBrake installer. On macOS, open the disk image and drag the app to Applications. On Linux, enable Flathub and install from the command line:

# System-wide install (asks for your password)
flatpak install fr.handbrake.ghb

# Per-user install, no sudo needed
flatpak --user install fr.handbrake.ghb

Step 2: verify the file you downloaded. This takes thirty seconds and protects you from a corrupted or tampered installer. The documentation gives one command per platform. Compare the output against the checksum published on the HandBrake download page or on GitHub. If the two differ, delete the file and download it again.

# macOS (Terminal)
shasum -a 256 ~/Downloads/HandBrake-*.dmg

# Windows (Command Prompt), replace the file name with your download
cd Downloads
certUtil -hashfile HandBrake-1.11.2-x86_64-Win_GUI.exe SHA256

The Windows file name above is only an example, so type the exact name of the file you saved. On Linux through Flathub, the package manager verifies integrity for you during the install.

After installing, launch HandBrake once and open the About window to confirm the version reads 1.11.2. The release notes include an upgrade notice worth following: empty the Queue before updating, and note down any custom presets, because presets made in an older version may not carry over to a newer one. If you are updating from a much older build, export your presets from the Presets menu first.

Then get the command line tool. The CLI is a separate download from the same site, and its version should match the GUI. On Windows, put HandBrakeCLI.exe in a folder on your PATH. On macOS, keep the binary in /usr/local/bin or another PATH folder. On Linux, the Flatpak route runs it through a wrapper command, shown in the project section. Confirm it works with one command, which prints the version and exits:

HandBrakeCLI --version

Steps 3 and 4: open the source and pick a preset

Step 3: open the source. HandBrake calls the video you already have the Source. Click Open Source in the toolbar and browse to your file, or drag the file onto the main window. If the source holds several titles, as DVD and Blu-ray rips often do, use the Title control to choose the clip you want. A single recording or phone clip has one title, so there is nothing to choose.

Before you change anything, read the Summary tab. It shows the source’s resolution, frame rate and duration, and it tells you whether you are about to downscale or just recompress. Note the source audio tracks too, because the Audio tab lists each one with its codec and channel layout. That list decides how much work step 9 will be.

Step 4: choose a starting preset. Presets are one-click bundles of settings. Pick the one closest to your goal, then adjust. The documentation says presets affect two things, compatibility and encoding time, and the quick start guide names Fast 1080p30 as a good default because it is fast and compatible with most devices. For a general web or sharing copy, start there. For a phone clip you want small, choose a lower-resolution preset from the General group.

Do not trust anyone’s memory, including mine, about what a preset contains. After selecting it, open the Video tab and read the encoder, the framerate mode and the RF value HandBrake loaded. Those three fields tell you more than any preset name, and they show you exactly what you are about to change.

Then pick the destination. The quick start guide asks you to take special care to note it, because otherwise you will not find your new video. Save As is the file name of the new video and To is the folder, and both are easy to skip past. Many first-time users finish an encode and cannot find the result because the default folder was not the one they expected.

One habit pays off immediately. Name the output with a suffix, such as -small, so it never collides with the original in the same folder. Do not rely on a warning dialog to protect your master file.

If you plan to run the same job often, this is also the moment to think about a custom preset. The next sections set values you will want to keep, and the Presets menu has a Save New Preset option that captures every tab at once. We return to it in step 10 and again in the advanced tips.

Steps 5 and 6: set the container, size and frame rate

Step 5: choose the container on the Summary tab. For almost every compression job, pick MP4. It plays in browsers, on phones and in nearly every editor, and our explainer on the MP4 video file covers what is inside one. Choose MKV only for an archive copy or when you need features MP4 handles poorly, such as several subtitle formats. Tick Web Optimized if the file will stream from a web page, since it moves the index to the start so playback begins before the download finishes.

Illustrative: Orange and blue portable drives, SD cards and a ribbed aluminium dock on a desk in front of a laptop
Photo: Jakub Zerdzicki / Pexels

Step 6: set the resolution limit on the Dimensions tab. Use the Resolution Limit control rather than typing a width by hand. It caps the size while keeping the aspect ratio, and by default it does not scale a smaller source up. Set it to 1080p for a general copy and 720p for a small one. Leave cropping on automatic unless the source has black bars you know about, because a bad crop removes picture you meant to keep.

Upscaling is the first mistake to avoid. A 720p clip exported as 1080p holds the same detail in more pixels, so the file grows and the picture does not improve. If the Summary shows a small source, leave the limit at or above its native size and let the RF value do the work.

Now the frame rate, which lives on the Video tab. HandBrake offers a Framerate dropdown and three modes: Constant Framerate, Variable Framerate and Peak Framerate. Choose Same as source with Peak Framerate when you want to cap the rate without forcing one. Choose Constant Framerate when the file will go into an editor or when you see audio drift, since many editors handle constant frame rates better than variable ones.

A practical rule: a 60 fps gameplay recording that will be watched on a phone can drop to 30 fps and lose about half its frame data with little visible harm. A screen recording of a code editor can usually drop to 30 as well. Fast action, such as a racing game or a sports clip, looks choppy at 30, so keep the original rate there.

Leave the Filters tab alone on your first pass. Denoise can shrink noisy footage noticeably, but it also softens detail and slows encoding a lot, so add it only after a baseline encode. Deinterlace matters only for old interlaced sources, such as some broadcast recordings, and modern phone, camera and screen footage does not need it.

That finishes the shape of the file. Your picture size, rate and container are set, and nothing yet controls how hard HandBrake squeezes the pixels. The next section does exactly that.

Steps 7 and 8: Constant Quality, encoder and speed

Step 7: use Constant Quality. On the Video tab, find the Quality section and select Constant Quality. HandBrake then varies the bitrate frame by frame, spending more bits on busy scenes and fewer on static ones, and holds the picture quality at the RF value you set. The alternative, Avg Bitrate, targets a file size instead and is covered in a later section. For most jobs, Constant Quality gives a better picture per megabyte.

The RF ladder

RF (H.264, 1080p)Typical useWhat to expect
18Master copy you may edit againVery close to the source, large file
20High-quality deliveryHard to tell from the source on a normal screen
22General sharing and webThe balanced starting point for this guide
24Smaller shares, phone viewingSlight softness in dark or busy scenes
26Chat, email, quick reviewsVisible blocking in motion and gradients
28Throwaway proxyClearly compressed, very small

These rows are editorial guidance for the H.264 encoder at 1080p, built on the rule that lower numbers mean larger files and higher quality. Scales differ between encoders and sources, so treat the table as a testing ladder and not a promise. Encode a 30 second clip at RF 20, 22 and 24, then compare the sizes and watch each one at full screen.

Test on the hardest part of your video. A talking head in a quiet room compresses easily at any setting, but a clip with confetti, rain, fast cuts or dark gradients exposes weak settings quickly. If that hard section looks fine, the rest will too.

Choosing between H.264, H.265 and AV1

H.264 (x264) is the safe default. It plays almost everywhere, encodes fast and gives predictable results. H.265 (x265) produces smaller files at the same visible quality, but it encodes more slowly and some older devices, browsers and editors cannot play it. AV1 (SVT-AV1) can go smaller still and suits modern players, but playback and editor support are narrower again. Our OBS recording settings comparison covers how those encoder families behave on the capture side.

The compatibility question decides it. If you do not know where the file will be played, use H.264 in MP4. If you control the player, such as a family media server or a private review page, H.265 is a reasonable step down in size. Reach for AV1 only when you have confirmed that every viewer can play it. RF numbers also run on different scales per encoder, so redo the three-clip test whenever you switch.

Step 8: set the encoder speed. The Encoder Preset slider on the Video tab trades time for efficiency. Slower presets find more savings at the same RF, so the file comes out smaller or the picture comes out cleaner. Medium is a sound default for archives and final deliveries. Fast suits quick shares and long files. Going from Fast to Slow can add a lot of encoding time for a modest gain, so stop at Medium unless the file is short and you have time.

Leave Tune, Profile and Level on their defaults for general compression. The Profile and Level fields matter mainly for old hardware players with strict limits, and changing them without a reason can produce unplayable files. If a preset set them, leave them as set.

Steps 9 and 10: audio, subtitles and the queue

Step 9: trim the audio. Open the Audio tab and look at what the source carries. Many recordings hold one stereo track, which needs no change beyond the codec. Others hold several tracks, such as a surround mix plus a commentary track, and every extra track costs space. Remove the tracks you do not need.

For the track you keep, set the codec to AAC, the mixdown to Stereo, and the bitrate to 128 kbps for speech, or a little higher when music matters. If the source audio is already a small AAC stereo track, you can use the passthrough option to copy it untouched, which avoids a second round of quality loss and saves a little time. Do not choose passthrough for a lossless or surround track you want to shrink, since that copies the large original unchanged.

Subtitles come next. If the source has burned-in captions, they are part of the picture and nothing changes. If it has separate subtitle tracks and you do not need them, remove them on the Subtitles tab. If you do need them, keep them as selectable tracks in an MP4 or MKV instead of burning them in, so viewers can turn them off. Burn-in is worth it only when the destination ignores subtitle tracks entirely.

Step 10: use the preview and the queue. The documentation has a page on previewing your settings, framed as a way to see what the new video will look like in a fraction of the time. Click Preview, choose a start point and a short duration, and let HandBrake encode a quick sample with your settings. Open the sample in a real player and check the hardest scene. Ten seconds of preview can save an hour of wasted encoding.

When the sample looks right, use Add to Queue instead of Start. The Queue lets you stack several jobs, each with its own settings, and run them one after another while you do something else. This is the right tool for a handful of files with different needs. For dozens of files with identical settings, the command line project later in this guide is faster to set up.

Before you start the queue, save your settings as a preset. In the Presets menu, choose Save New Preset, give it a clear name such as Share 1080p RF22, and tick the options you want stored. Next time you load it in one click, and the same preset works from the command line once exported.

The Queue has one catch. It holds jobs inside the app, so closing HandBrake or updating it with jobs pending can lose them, and the official upgrade notice tells you to empty the queue before updating for that reason. Finish the queue first, then update.

Steps 11 and 12: encode, then check the result

Step 11: start the encode. In the GUI, press Start (or Start Queue). HandBrake shows progress and a notification when it finishes. On the command line, one command does the whole job. The version below repeats the settings from the GUI steps, using the Fast 1080p30 preset as a base and overriding the quality:

Illustrative: A silver laptop keyboard and trackpad lit against a black background, with keys showing two different scripts
Photo: Abdelrahman Ahmed / Pexels
HandBrakeCLI \
  -i "screen-recording.mkv" \
  -o "screen-recording-small.mp4" \
  -Z "Fast 1080p30" \
  -q 22 \
  -E av_aac -B 128 --mixdown stereo \
  --optimize

Here -i is the source, -o the destination, -Z the preset name, and -q the RF value, which overrides whatever the preset set. The options -E av_aac -B 128 --mixdown stereo force AAC stereo at 128 kbps, and --optimize is the command line version of the Web Optimized box. On Windows, put the whole command on one line or end each line with a backtick in PowerShell.

To see every preset name your install knows, and to confirm spelling, list them:

HandBrakeCLI --preset-list

While it runs, the CLI prints a progress line you can read at a glance. This is an illustration of the format with made-up numbers, so your speed and time will differ:

Encoding: task 1 of 1, 45.32 % (112.45 fps, avg 108.90 fps, ETA 00h02m11s)
Encoding: task 1 of 1, 100.00 % (110.12 fps, avg 109.30 fps, ETA 00h00m00s)
Encode done!
HandBrake has exited.

Step 12: check the result. Never assume a finished encode is a good one. First compare file sizes, then play the output, then inspect it. A short check with ffprobe prints the numbers that matter:

ffprobe -v error \
  -show_entries format=duration,size,bit_rate \
  -show_entries stream=codec_name,width,height,r_frame_rate \
  -of default=noprint_wrappers=1 \
  screen-recording-small.mp4

A sample result looks like the block below. The values are illustrative and were not measured from a real file:

codec_name=h264
width=1920
height=1080
r_frame_rate=30/1
codec_name=aac
duration=612.480000
size=88400000
bit_rate=1154000

Read it in three passes. The codec and dimensions should match what you chose. The duration should match the source within a fraction of a second, because a big gap means dropped frames or a failed encode. The size should be clearly smaller than the original, and if it is not, jump to the troubleshooting list.

Then watch it. Scrub to the start, the middle and the end. Listen for audio drift, which shows as lips and voice slowly separating. Look at dark scenes and fast motion, where blocking appears first. A two minute spot check catches nearly every problem that a number cannot.

When a size cap rules: target a file size with two passes

Constant Quality picks the picture and lets the size land where it lands. Sometimes the size is the rule, such as an upload form with a hard limit or an email service that rejects large attachments. For that case, HandBrake offers Avg Bitrate, where you set the bitrate and the file size follows from the duration. The official documentation has a technical page on constant quality versus average bit rate if you want the full reasoning.

The maths is simple. File size is roughly the total bitrate multiplied by the duration, divided by eight to turn bits into bytes. Take a 10 minute (600 second) clip with a 4 MB limit. Four megabytes is 32 megabits, which spread over 600 seconds leaves a very small total bitrate. That is barely enough for audio alone, so the cap is unrealistic and the clip needs trimming or a different delivery method.

Try a roomier example. A 3 minute (180 second) clip with a 25 MB limit gives 200 megabits to spread over the clip. Subtract 96 kbps for audio and a margin of safety, and what remains goes to video. That is enough for a clean 720p screen recording but tight for busy footage at 1080p.

In the GUI, choose Avg Bitrate on the Video tab, type the video bitrate in kbps, and tick 2-pass encoding. Two passes let HandBrake study the whole clip first, then spend the bits where they help most, so quality at a fixed size is better than a single pass. Expect the encode to take roughly twice as long.

HandBrakeCLI \
  -i "demo.mov" \
  -o "demo-25mb.mp4" \
  -Z "Fast 1080p30" \
  -e x264 -b 900 --two-pass --turbo \
  --maxWidth 1280 --maxHeight 720 \
  -E av_aac -B 96 --mixdown stereo

The --turbo flag speeds up the first pass, which only collects statistics, and costs almost nothing in final quality. The 720p cap in this command is deliberate. At a low bitrate, fewer pixels look better than many pixels starved of data. Always leave a small safety margin below the limit, since container overhead adds a little.

If you are shrinking footage for a specific platform, check its current rules first. The export and codecs section of this site collects the codec and format explainers that sit behind those limits.

Common pitfalls when using HandBrake to compress video

These six mistakes account for most disappointing results. Each one is easy to avoid once you know it.

  1. Setting RF too low and growing the file. A source that was already compressed hard, such as a phone clip or a downloaded video, can come out bigger at RF 18 than the original. The encoder spends bits preserving compression artifacts. Raise the RF number, or skip re-encoding that file.
  2. Compressing twice. Every re-encode loses a little detail. Compress from the original master when you can, never from a copy that was itself compressed. If you need three sizes, make all three from the master.
  3. Upscaling a small source. Exporting 720p as 1080p adds pixels and size without adding detail. Use the Resolution Limit control and leave small sources at their native size.
  4. Ignoring the frame rate mode. A variable frame rate file from a screen recorder or phone can cause audio drift in editors. Use Constant Framerate when the output goes into an editor or when you see sync problems.
  5. Using H.265 or AV1 without checking playback. A smaller file that will not open is worse than a larger file that does. Test the output on the least capable device that will play it. Our guide to converting iPhone video to MP4 shows how often the HEVC question trips people up on phone footage.
  6. Losing the output file. The Destination is easy to miss. The quick start guide tells you to note it for exactly this reason. Set the folder deliberately before you press Start.

A seventh trap is the stdin problem in scripts. HandBrakeCLI reads from standard input, so when it runs inside a loop it can swallow the rest of your file list. The working project below avoids this with one small redirect.

An eighth is trusting the preview alone. A ten second sample may miss the one dark scene or fast pan that falls apart at your RF value. Spot check at least three points in the finished file, including the hardest section, before you delete the original.

Complete working project: batch-compress a folder

This project compresses every video in a folder, writes MP4 files into a second folder, skips files it has already done, and keeps the original whenever the new file turns out larger. It uses only HandBrakeCLI and your shell. Make two folders, source and compressed, put your videos in source, and save the script next to them.

First the macOS and Linux version. Save it as compress.sh and run chmod +x compress.sh:

#!/usr/bin/env bash
# Usage: ./compress.sh [source_dir] [output_dir]
# Run RF=24 ./compress.sh to change quality for one run.

SRC="${1:-./source}"
OUT="${2:-./compressed}"
RF="${RF:-22}"

mkdir -p "$OUT"
shopt -s nullglob nocaseglob

for f in "$SRC"/*.{mp4,mov,mkv,m4v,avi,webm}
do
  base="$(basename "${f%.*}")"
  dest="$OUT/${base}.mp4"

  if [ -e "$dest" ]
  then
    echo "skip    $base (already done)"
    continue
  fi

  echo "encode  $base at RF $RF"
  HandBrakeCLI -i "$f" -o "$dest" \
    -Z "Fast 1080p30" -q "$RF" \
    -E av_aac -B 128 --mixdown stereo \
    --optimize < /dev/null > /dev/null 2>&1

  if [ $? -ne 0 ]
  then
    echo "FAILED  $base"
    rm -f "$dest"
    continue
  fi

  old=$(wc -c < "$f")
  new=$(wc -c < "$dest")

  if [ "$new" -ge "$old" ]
  then
    echo "bigger  $base, keeping the original"
    rm -f "$dest"
    cp "$f" "$OUT/$(basename "$f")"
  else
    saved=$(( 100 - (new * 100 / old) ))
    echo "done    $base, $saved% smaller"
  fi
done

The redirect < /dev/null is the stdin fix. Without it, HandBrakeCLI consumes input meant for the loop and the script stops after the first file. The check on $? catches failed encodes and removes the half-written file so a rerun does not skip it. On Linux with the Flatpak install, replace HandBrakeCLI in the script with flatpak run --command=HandBrakeCLI fr.handbrake.ghb, and note that the Flatpak sandbox may need permission to read your folders.

Now the Windows version. Save it as compress.ps1 and run it from PowerShell:

param(
  [string]$Source = ".\source",
  [string]$Out = ".\compressed",
  [int]$RF = 22
)

New-Item -ItemType Directory -Force -Path $Out | Out-Null
$types = "*.mp4","*.mov","*.mkv","*.m4v","*.avi","*.webm"

Get-ChildItem -Path "$Source\*" -File -Include $types | ForEach-Object {
  $dest = Join-Path $Out ($_.BaseName + ".mp4")

  if (Test-Path $dest) {
    Write-Host "skip    $($_.BaseName) (already done)"
    return
  }

  Write-Host "encode  $($_.BaseName) at RF $RF"
  & HandBrakeCLI.exe -i $_.FullName -o $dest `
    -Z "Fast 1080p30" -q $RF `
    -E av_aac -B 128 --mixdown stereo `
    --optimize 2> $null | Out-Null

  if ($LASTEXITCODE -ne 0) {
    Write-Host "FAILED  $($_.BaseName)"
    Remove-Item $dest -ErrorAction SilentlyContinue
    return
  }

  $old = $_.Length
  $new = (Get-Item $dest).Length

  if ($new -ge $old) {
    Write-Host "bigger  $($_.BaseName), keeping the original"
    Remove-Item $dest
    Copy-Item $_.FullName $Out
  } else {
    $saved = 100 - [math]::Floor($new * 100 / $old)
    Write-Host "done    $($_.BaseName), $saved% smaller"
  }
}

If PowerShell blocks the script, run Set-ExecutionPolicy -Scope Process RemoteSigned in that window, which changes the policy only for the current session. A run over three files prints something like this, with illustrative figures:

encode  tutorial-part-1 at RF 22
done    tutorial-part-1, 71% smaller
encode  tutorial-part-2 at RF 22
done    tutorial-part-2, 68% smaller
encode  already-small-clip at RF 22
bigger  already-small-clip, keeping the original

Extend it as you like. Add --encoder-preset medium for tighter files on a final pass, or use a saved preset by exporting it from the Presets menu and calling it with --preset-import-file my-preset.json -Z "Your Preset Name". Both scripts leave the originals untouched, so you can rerun them with a different RF without losing anything.

Troubleshooting HandBrake compression problems

Each item below names the symptom, the likely cause and the fix. Work down the list in order, since the early items are the most common.

  1. HandBrake will not launch on Windows. The documentation says the app needs the Microsoft .NET Desktop Runtime 10.0. Install that runtime from Microsoft, then start HandBrake again.
  2. The output is larger than the source. Your RF is too low for an already compressed source. Raise RF by 2 to 4, lower the resolution limit, or leave that file alone. The batch scripts above keep the original in this case.
  3. The encode is extremely slow. You may have a slow Encoder Preset, a 4K source, or a heavy filter such as Denoise. Switch to Fast, cap the resolution at 1080p, and remove filters. Consider a hardware encoder if you have a supported GPU and accept slightly larger files.
  4. Audio drifts out of sync. The source has a variable frame rate. Set the Framerate to Constant Framerate on the Video tab and encode again.
  5. There is no sound in the output. The Audio tab has no track selected, or you passed through a codec or layout the player cannot decode. Add a track and set it to AAC stereo.
  6. The output looks blocky in dark scenes. RF is too high for that footage. Lower it by 2, or use a slower Encoder Preset. Banding in dark gradients is a classic sign of too little quality headroom.
  7. The file will not play on a TV or old device. It probably uses H.265 or AV1, or a profile and level the device rejects. Re-encode as H.264 in an MP4 with Profile and Level at their defaults.
  8. HandBrake reports no valid source found. The file may be damaged, still being written, or in a format HandBrake cannot read. Confirm it opens in a media player, wait for any recording to finish, and try again. HandBrake cannot open copy-protected discs.
  9. Custom presets disappeared or misbehave after an update. The upgrade notice warns that custom presets may not be compatible with newer versions. Recreate the preset from a built-in one, or import the exported file and check every tab.
  10. The batch script stops after one file. HandBrakeCLI is reading from stdin inside the loop. Add the < /dev/null redirect on macOS and Linux, as the working project does.
  11. Your antivirus flags the installer. Delete it and download again from the official site only, then compare the checksum as in step 2. A mismatch means do not run it.

If none of these fits, find the Activity Log in the app. The HandBrake documentation has a page on activity logs because the log tells helpers exactly what failed. Attach it when you ask for help on the project’s community channels or GitHub issue tracker, and mention that you are on version 1.11.2.

Easier alternatives to the HandBrake video compressor

HandBrake wins on control and price, but it asks you to understand RF, encoders and containers. If you only need one file smaller once, a browser tool or a simpler desktop app may finish the job faster. The table lists what each tool’s own pages showed in October and November 2026, with only facts confirmed on official pages.

ToolWhere it runsCost status (checked November 2026)Pick it when
HandBrakeDesktop (Windows, macOS, Linux)Free and open source, no accountYou want control, batch jobs and repeatable presets
Shutter EncoderDesktopFree, no paid plan listedYou want an FFmpeg-based app with many format options
Mastershot compressorBrowserCompression is free, Pro costs $7 a month or $70 a yearYou want a quick compress that stays on your computer
FreeConvert Video CompressorBrowserFree with advertisingYou have a one-off small file and no install rights
UniConverter OnlineBrowserThree free uses without registration, watermark-freeYou need a couple of quick tries before deciding
Wondershare UniConverter 18Desktop (Windows, macOS)Paid, AI features may use credits, price varies by storefrontYou want guided target-size compression and batch tools

Mastershot’s own pages say its compressor adds no watermark and processes the file locally, reading it from your computer instead of uploading it. Its terms list a single paid consumer plan, Pro, at $7 a month or $70 a year, and state that compression stays free. That makes it a reasonable pick for a sensitive file you would rather not upload.

Shutter Encoder is the closest desktop rival in spirit. Its official pages describe it as free, with no paid plan listed. It exposes many FFmpeg options in a different interface, which suits people who find HandBrake’s tabs unfamiliar. Wondershare’s UniConverter 18 is the paid, guided option, with target-size compression and a Watch Folder feature for batch work, but its AI tools may use credits, so check the storefront price on the day you buy.

Web tools trade control for convenience. FreeConvert’s own pages say the service is free with advertising, and its free plan reportedly limits files to 1 GB and five minutes each. Read the limits on the day you use any browser tool, because they change. FlexClip, another browser option, publishes a Help Center article on what happens when a video editor subscription expires, which is worth reading before you rely on a paid tier for a deadline.

Editors can compress too. If you are cutting a video anyway, the export dialog in your editor often handles size, and our look at a free CapCut alternative that joins clips and our roundup of video editing apps for PC, Mac, phone and browser cover tools where trimming and exporting happen in one place. Compress once, at the end, rather than at every stage.

From the Vipid archive: if the file you are shrinking is a short branded opener, the animated logo intro theme shows the kind of short clip you would join to your main video before the final compression pass.

Advanced tips for smaller files and faster encodes

Use hardware encoders for speed, software for size. HandBrake’s documentation lists hardware encoder pages for AMD VCN, Apple VideoToolbox, Intel Quick Sync Video, NVIDIA NVENC and Media Foundation on ARM. These encode much faster than the CPU encoders, but they generally produce larger files than x264 or x265 at the same visible quality. They suit long recordings where time matters more than the last few percent of size. Run HandBrakeCLI --help and read the encoder list to see which ones your build offers.

Save a custom preset per job type. Make one for screen recordings, one for talking heads and one for small shares. Name them for the destination, not the settings, so you reach for the right one without thinking. Export them as JSON files and keep copies in a cloud folder so a reinstall costs nothing.

Match RF to content type. Screen recordings with flat colors and sharp text compress very well, and a higher RF often looks fine. Footage with film grain, rain or confetti needs a lower RF or a light denoise to look clean. Test two or three RF values on the hardest 30 seconds of each new type, then store the winner in a preset.

Cut the length before you compress. The biggest saving for many recordings is not an encoder setting at all. Trim dead air at the start and end, and use the Range control near the source selector to encode only the part you need. A recording with two minutes of waiting at the front can lose a lot of size from trimming alone.

Use Medium for finals and Fast for drafts. Review copies do not need the last few percent of efficiency. Save the slower presets for the file that will live on a site or in an archive.

Schedule long runs. The scripts above run from any scheduler. On macOS and Linux, a cron entry can run the shell script overnight. On Windows, Task Scheduler can launch the PowerShell script with the -File option. Overnight runs suit long libraries, since the encode competes with nothing else.

Mind the snapshots. The documentation separates stable releases from development snapshots and warns that snapshots may be experimental or unstable. Use the stable release for client work. Try a snapshot only when you need a fix that has not shipped and you can afford a failed encode.

Keep a log. Add a line to each script that appends the file name, RF and result to a text file. A month later you will know which setting gave the best balance, and you will stop guessing.

Common questions

Is HandBrake free to use as a video compressor? Yes. HandBrake is free and open source, and its official download pages list no paid plan, subscription or account requirement. Get it only from the HandBrake website, which the documentation names as the only official download source.

Which HandBrake version is current? HandBrake 1.11.2 is the current release listed on the official HandBrake site. It follows 1.11.0 and 1.11.1 in the same series. A file named 1.9.0 is an old build, not the current one.

What RF value should I use for the smallest file with good quality? For 1080p H.264, start at RF 22 and test 24 if you need a smaller file. Go lower for footage with fine detail or noise, and higher for flat screen recordings. Test on the hardest 30 seconds of your video before you encode the full file.

Why is my compressed video bigger than the original? The source was already compressed more tightly than your RF value allows, so the encoder spent extra bits on it. Raise the RF number, cap the resolution or keep the original.

Does HandBrake compress video without losing quality? No. It re-encodes the video with lossy codecs, so some detail is always lost. At RF 18 to 20 the loss is hard to see, and at higher values it becomes visible. Keep your original if you may edit the footage again.

Can HandBrake hit an exact file size? It can get close. Use Avg Bitrate with two-pass encoding and work out the bitrate from the size and duration, as shown in the size cap section, then leave a small safety margin below the limit.

Should I use H.265 or AV1 instead of H.264? Only if every device that will play the file supports it. H.265 and AV1 can give smaller files, but H.264 in an MP4 plays almost everywhere. When you cannot confirm the player, choose H.264.

Is there an official online version of HandBrake? The project describes itself as the open source video transcoder and distributes desktop and command line downloads through its website, Flathub and GitHub. Treat any site that sells or hosts a version under the HandBrake name as unofficial until you have checked it against those sources.

More from the Vipid blog

Make it with Vipid

Jonah Reyes

Editing & Export Editor · Vipid Team

Jonah Reyes is the Editing & Export Editor at Vipid. He covers editing software, export settings and codecs, and the video specs of YouTube, Shorts, TikTok and Reels, plus OBS and screen recording. He builds Vipid’s spec tables from the platforms’ own documentation and re-checks them every 60 to 90 days, so the numbers in a guide match what the upload dialog actually accepts.

All articles by Jonah Reyes ›   How we check tools ›

Keep reading

Animated GIF Cropper: Crop Every Frame, Keep the Loop
Export & Codecs

Animated GIF Cropper: Crop Every Frame, Keep the Loop

Jonah Reyes·28 Nov 2026
Remove Background From an Animated GIF: Tools Ranked
Export & Codecs

Remove Background From an Animated GIF: Tools Ranked

Jonah Reyes·27 Nov 2026
AV1 vs HEVC [2026]: 30.6% Fewer Bits, 1 Vendor Test
Export & Codecs

AV1 vs HEVC [2026]: 30.6% Fewer Bits, 1 Vendor Test

Jonah Reyes·10 Nov 2026

Blog

Intros & Templates
Titles & Motion
Streaming
Editing & Export
AI Video

Vipid

About Vipid
Themes
News archive 2011–2016
Vipid Team

Editorial

Editorial policy
How we check tools
Corrections

Legal

Privacy policy
Terms of service
Making video intros since 2010.
The Vipid blog covers the tools behind them.