Shrink your videos with HandBrake without a noticeable loss in quality
The video that comes out of a camera or a screen recorder is much bigger than it needs to be. These programs record fast and do not take the time to compress the file, so you end up with a twenty-minute lesson that weighs four gigabytes, eats into your plan's storage and makes uploads take longer for no reason.
HandBrake is a free, open-source program that re-encodes video more efficiently. It gives you the same file at the same resolution and the same frame rate, at a much smaller size, usually between a third and a half of the original. This guide walks you through setting it up step by step on Mac and Windows.
Watch the video walkthrough
If the video above does not load, watch it directly on YouTube.
What exactly does HandBrake do?
HandBrake does not cut anything from your video or shrink its dimensions. It decodes the video and encodes it again with smarter settings, which removes the extra size the recording program had no time to compress.
To be precise: re-encoding cannot be reversed, and in theory it is not lossless. With the right settings, though, no eye can spot the difference on any screen, and the resolution and frame rate stay exactly the same. That is what "no noticeable difference" means here.
Download and install HandBrake
Download the program only from its official site: handbrake.fr. The latest version at the time of writing is 1.11.2. It is completely free, with no paid edition and no watermark on your video.
On a Mac
Open the download page and click Download (Universal). The single version runs on both Apple Silicon and Intel Macs.
Open the downloaded file and drag the HandBrake icon into the Applications folder.
The first time you run it, macOS may block it because it comes from outside the App Store. Open "System Settings", then "Privacy & Security", scroll to the bottom and click Open Anyway.
The program needs macOS 10.13 or later.
On Windows
On the download page, click Download (exe installer) under the section that matches your processor: Intel/AMD for most computers, or ARM64 for recent Qualcomm devices.
Run the installer and follow its steps.
If a blue Windows SmartScreen warning appears, click More info, then Run anyway.
The program needs Windows 10 or later. The interface and settings are almost identical on both systems, so the rest of this guide applies to both.
The golden settings, step by step
HandBrake's interface is in English only, so each option is named exactly as it appears on your screen.
Open the video. Click Open Source in the top bar and choose your file, or drag and drop the file onto the program window.
Pick a starting point. From the Preset menu, choose General, then Fast 1080p30. This is only a starting point, and you will adjust it in the next steps.
Keep the resolution. Open the Dimensions tab and set Resolution Limit to None. This step is what keeps the output at the same resolution as the original.
Protect the edges of the picture. In the same tab, set Cropping to None if your lesson is a screen recording or slides on a dark background, so the program does not crop part of your picture thinking it is a black bar.
Keep the frame rate. Open the Video tab, set Framerate (FPS) to Same as source, and leave Variable Framerate as it is.
Choose the encoder. In the same tab, set Video Encoder to H.264 (x264). This encoder plays on every device and browser without exception.
Set the quality. Make sure Constant Quality is selected, not Avg Bitrate, then move the slider to the RF value from the table below.
Balance size and time. Set Encoder Preset to Medium. The closer you move it to Slow, the smaller the file at the same quality, but compression takes longer.
Prepare the file for web playback. Go back to the Summary tab, keep Format on MP4, and turn on Web Optimized so playback starts for your learner before the whole file has loaded.
Set the audio. In the Audio tab, set the codec to AAC and the Bitrate to 128 or 160. That is more than enough for spoken explanation, and anything higher adds size with no audible benefit.
Choose where to save. In the Save As field at the bottom, pick a folder and a name different from the original so you do not overwrite it by mistake.
Start. Click Start on a Mac or Start Encode on Windows, and let the computer work.
Which RF value should you choose?
RF stands for Rate Factor, HandBrake's quality scale. It works the opposite way from what you might expect: the lower the number, the higher the quality and the bigger the file, and the higher the number, the smaller the file and the lower the quality. The scale runs from 0 to 51, and you will never need either end.
These are the ranges the HandBrake team officially recommends for x264 and x265:
| Video resolution | Recommended range | Our pick for platform lessons |
|---|---|---|
| 480p and 576p | RF 18 to 22 | RF 20 |
| 720p | RF 19 to 23 | RF 21 |
| 1080p | RF 20 to 24 | RF 22 |
| 4K (2160p) | RF 22 to 28 | RF 24 |
Why does the number go up as the resolution goes up? A high-resolution video carries more detail, so a small loss disappears inside it and the eye does not catch it.
If your lesson is a screen recording or a fixed camera on a speaker, raise the number one or two steps above our pick and save more space, since little movement makes compression easier. For lessons full of motion or animation, lower the number by one step.
The most common trap: most presets carry a resolution in their name, and Fast 1080p30, for example, scales down any video above 1080p and cuts its frame rate to thirty frames per second. That is why the two steps Resolution Limit → None and Framerate → Same as source are not optional: without them, your video loses resolution and smooth motion without you noticing.
Compress several videos in one go
You do not need to set everything up again for each lesson:
After setting up the first video, click Add to Queue instead of Start.
Open the next video with Open Source. Your settings are kept as you left them.
Change only the save name, click Add to Queue again, and repeat for the rest of the lessons.
When you are done, click Start Queue and let the computer work through the whole list.
To save time next time, save your settings as your own preset: from the Preset menu, choose Save New Preset and give it a name you will remember. It will be ready every time you open the program.
Check the result before deleting the original
Play the new file and jump to three or four different points in it, especially scenes with motion or small text.
Make sure the audio stays in sync with the picture right to the end of the video, not just at the start.
Check the file's properties and confirm its dimensions match the original.
Keep the original on an external drive or in cloud storage. If you later need to re-edit the lesson or export it at higher quality, you will need the original, not the compressed copy.
Frequently asked questions
Should I use H.265 instead of H.264?
H.265 gives you a file about a third smaller at the same quality, but it compresses more slowly and works on fewer older devices and browsers. If saving space comes first and you can wait, try it. If what matters most is that playback never stalls for any learner, stay with H.264. Note that the RF scale does not carry over between the two encoders: 22 in x264 is not the same as 22 in x265.
Should I turn on graphics card acceleration?
In the Video Encoder menu you will find options such as VideoToolbox on Mac and NVENC or QuickSync on Windows. These compress much faster because they use the graphics card, but they produce a bigger file at the same quality. For archiving and uploading your lessons, software x264 is still the better choice despite being slower. Keep the accelerated options for when you are in a hurry.
Why did the file get bigger instead of smaller?
Usually because your original video was already well compressed, like a video you downloaded from another platform, or because you picked an RF value that is too low. Raise the number by two steps and try again. If the size stays the same, your file did not need compressing in the first place.
How long does compression take?
It depends on how powerful your computer is, the length of the video and the Encoder Preset value. Expect a one-hour 1080p lesson to take between fifteen and forty-five minutes on a recent computer. Add your lessons to the queue and run it at a time when you do not need the computer.
What about subtitles and chapters?
Subtitles burned into the picture stay as they are. Separate subtitle files have to be added manually from the Subtitles tab, or they will not carry over to the new file. The same goes for chapter markers in the Chapters tab.
After compressing
Upload the new file to your lesson directly, and you will see the upload time drop as much as the size did. Keep an eye on the storage indicator in the media library to see how much of your plan you saved.
Related articles
Direct link: Products.
Summary
Compress your lesson videos to half their size or less, at the same resolution and frame rate, on Mac and Windows.