📦 Open Source Video Transcoding 🟢 C

Handbrake

Tool for converting video from nearly any format to a selection of modern, widely supported codecs.

⭐ 12,637
Stars
🍴 3,155
Forks
1/5
Deploy Difficulty
May 11
Last Commit

HandBrake: The Universal Video Transcoder

What Is HandBrake?

HandBrake is a free, open-source video transcoder that converts video from nearly any format to a selection of modern, widely supported codecs. Originally developed in 2003 as a DVD ripping tool, it has evolved into a general-purpose video converter used by millions �?from home users compressing phone videos to professional content creators preparing footage for editing or streaming platforms.

HandBrake is built on top of FFmpeg, libavcodec, and other open-source libraries. It provides a clean graphical interface to the command-line power underneath, with a preset system that eliminates the need to understand codec parameters. It runs on Windows, macOS, and Linux with a consistent interface across all platforms.

Core Features

Format Input/Output

HandBrake reads virtually any common video format:

  • Containers: MP4, MKV, WebM, AVI, MOV, MPEG-TS, M2TS, FLV, and more.
  • Video Codecs: H.264, H.265/HEVC, VP8, VP9, AV1, MPEG-2, MPEG-4, and ProRes.
  • Audio Codecs: AAC, MP3, AC-3, E-AC3, DTS, FLAC, Opus, Vorbis.
  • Subtitles: SRT, SSA/ASS, VobSub, PGS, DVB-SUB.

HandBrake outputs to:

  • MP4: Maximum compatibility with phones, tablets, smart TVs, and web players.
  • MKV: Advanced container features �?multiple audio tracks, chapter markers, rich metadata.
  • WebM: Web-optimized with VP9/AV1 video and Opus audio, ideal for HTML5 video.

Preset System

HandBrake ships with over 50 built-in presets organized by category:

  • General: Very Fast 1080p30, Fast 1080p30, HQ 1080p30, Super HQ 1080p30.
  • Web: YouTube 1080p, Vimeo 4K, Discord Nitro (optimized for platform transcoding).
  • Devices: Apple TV 4K, Roku 2160p, Android 1080p, PlayStation 5.
  • Archival: Matroska H.265 MKV 2160p4K, ProRes 422 HQ (mezzanine codec for editing).

Users can create, modify, and export custom presets �?useful for studios standardizing delivery formats.

Quality Controls

  • Constant Quality (RF): A single slider (0-51 for H.264, lower = higher quality). RF 18-22 is considered visually transparent for most content. This is the recommended mode for most users.
  • Average Bitrate: Target a specific bitrate for predictable file sizes.
  • Two-Pass Encoding: First pass analyzes the video, second pass optimizes bit allocation �?best quality at a target file size at the cost of double encode time.

Hardware Acceleration

Supports hardware encoding for dramatically faster transcodes:

  • NVIDIA NVENC: H.264/H.265 encoding on GeForce and Quadro GPUs.
  • Intel Quick Sync Video (QSV): Hardware encoding on Intel CPUs with integrated graphics.
  • AMD VCE: Encoding on Radeon GPUs.
  • Apple VideoToolbox: Hardware encoding on macOS (Intel and Apple Silicon).

Note: Hardware encoding produces larger files at equivalent quality compared to software encoding. It excels when speed matters more than compression efficiency.

Video Filters

  • Deinterlace/Decomb: Convert interlaced content to progressive.
  • Detelecine: Reverse telecine for film-sourced content.
  • Denoise: hqdn3d and NLMeans for grain/noise reduction.
  • Crop & Scale: Automatic or manual cropping, resolution scaling with multiple algorithms (Lanczos, Bicubic).

Installation & Setup

PlatformMethodNotes
Windows.exe installer from handbrake.fr, winget install HandBrake.HandBrakeIncludes NVENC/QSV support
macOS.dmg from handbrake.fr, brew install --cask handbrakeNative Apple Silicon for best performance
Linuxapt install handbrake, flatpak install fr.handbrake.ghbFlatpak provides latest release

Post-Install Optimization:

  1. Preferences �?Video �?select hardware encoder if available (NVENC for NVIDIA GPUs).
  2. Set default output path to avoid cluttering source folders.
  3. Configure auto-naming: {source}-{preset} to distinguish encodes.

Practical Workflows

Compressing iPhone Footage for Storage

  1. Source: 4K HEVC video from iPhone (100 Mbps, ~3.5 GB for 5 minutes).
  2. Preset: General �?Fast 1080p30.
  3. Quality: RF 22 (visually transparent for most content on TV/monitor).
  4. Resolution: Scale to 1080p (saves ~75% storage vs 4K with minimal visible difference for casual viewing).
  5. Audio: AAC stereo at 160 kbps.
  6. Result: ~800 MB file, visually identical to source on most displays.

Preparing Footage for YouTube

  1. Source: Screen recording or camera footage at native resolution.
  2. Preset: Web �?Creator �?YouTube 1080p60.
  3. Quality: RF 18 (YouTube re-encodes anyway, so start with high quality to avoid generational loss).
  4. Audio: AAC stereo at 320 kbps.
  5. Container: MP4 (YouTube’s preferred upload format).

Archiving Physical Media

  1. Rip: Use MakeMKV to extract Blu-ray/DVD to lossless MKV (typically 30-50 GB for a Blu-ray).
  2. Open in HandBrake: Load the MKV file.
  3. Preset: Archival �?Matroska H.265 MKV 2160p4K.
  4. Quality: RF 20 (transparent �?visually indistinguishable from source).
  5. Audio: Keep original lossless track (DTS-HD, TrueHD, LPCM) + add AAC stereo for compatibility.
  6. Subtitles: Include all tracks as separate selectable streams.
  7. Result: ~12-18 GB per film, same visual quality as the 50 GB original.

Creating Mobile-Friendly Versions

  1. Source: High-bitrate master video.
  2. Device Preset: Android 1080p30 or Apple 1080p30.
  3. Quality: RF 23 (phone screens are forgiving).
  4. Resolution: Limit to 1080p (4K overkill for phones).
  5. Audio: AAC at 128 kbps �?phone speakers cannot resolve higher bitrates.
  6. Result: Files optimized for Plex/Jellyfin mobile streaming �?smaller, faster to start.

Community & Ecosystem

Complementary Tools

  • MakeMKV: Rips Blu-ray/DVD to lossless MKV for HandBrake to compress. The two tools form the standard archiving workflow.
  • HandBrake Batch: Third-party GUI for processing folders with different settings per file.
  • HandBrake CLI: Command-line version for scripting and automation �?integrate with watch folders for automatic transcoding.
  • Docker HandBrake: jlesage/handbrake image for running on NAS or server (Unraid, TrueNAS).

Documentation

  • Official Documentation: handbrake.fr/docs �?Video encoding guides, preset explanations.
  • HandBrake Forums: forum.handbrake.fr �?Active community for presets and troubleshooting.

Comparison with Paid Alternatives

FeatureHandBrakeAdobe Media EncoderFFmpeg (CLI)Shutter Encoder
PriceFree$22.99/moFreeFree (donation)
GUIExcellentExcellentNoneGood
Presets50+ built-inGoodManual flagsGood
Hardware EncodingYesYesYes (manual)Yes
Queue/BatchYesYes (Watch Folders)Script-basedYes
Editable FiltersYes (basic)Yes (extensive)Yes (all)Yes
Learning CurveVery EasyModerateSteepEasy

HandBrake wins on ease of use �?open, pick a preset, click Start. Adobe Media Encoder integrates deeply with Premiere/After Effects for media professionals. FFmpeg offers unlimited control for power users who know the command-line flags. Shutter Encoder bridges the GUI/power-user gap with specialized professional tools.

Who Should Use HandBrake?

Perfect For

  • Home users compressing large video files for storage or sharing
  • Content creators prepping footage for YouTube/Vimeo upload
  • Media server owners optimizing files for Plex/Jellyfin/Emby transcoding
  • Anyone who finds FFmpeg command-line intimidating but needs format conversion

Not Ideal For

  • Professional editors needing frame-accurate cuts (use a video editor like DaVinci Resolve)
  • Complex filter chain requirements (FFmpeg offers unlimited filter graphs)
  • Real-time streaming or live encoding (use OBS Studio)
  • Video editing �?HandBrake transcodes, it does not cut, join, or composite

Verdict

HandBrake is the quintessential “just works” open-source tool. It takes a complex problem �?video encoding with dozens of interdependent parameters �?and reduces it to a preset picker and a Start button, without dumbing down the advanced controls for those who need them. For the overwhelming majority of users who need to convert a video to a different format or reduce its file size, HandBrake remains the definitive solution �?free, reliable, and quietly powerful.

Download: handbrake.fr