Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
VPS and Hosting

How to Install FFmpeg on a Mac (Homebrew or Manual)

How to install FFmpeg on a Mac guide by 99RDP

FFmpeg is the free command-line tool behind most video and audio converters. macOS does not include it, so you need to install it yourself. There are two good ways: Homebrew, which installs and updates FFmpeg with one command and runs natively on both Apple Silicon and Intel Macs, and a manual install of a ready-made binary for when you cannot or do not want to use a package manager. FFmpeg 9.0, released in August 2026, is the current major version.

Quick answerOpen Terminal and run brew install ffmpeg (install Homebrew first if you do not have it), then check with ffmpeg -version. For a manual install, download a macOS build from the links on the official FFmpeg download page, unzip it, move ffmpeg to /usr/local/bin, and remove the download quarantine flag.

Method 1: install FFmpeg with Homebrew

Homebrew is the most common package manager on macOS. It installs FFmpeg together with the codec libraries it needs.

  1. Open Terminal (Applications → Utilities).
  2. If Homebrew is not installed, install it:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    At the end, the installer prints two "Next steps" commands that add Homebrew to your PATH. Run them; on Apple Silicon Macs Homebrew lives in /opt/homebrew.
  3. Install FFmpeg:
    brew install ffmpeg
  4. Check that it works:
    ffmpeg -version
    The first line shows the version, for example ffmpeg version 9.0.

Update it later with brew upgrade ffmpeg, or remove it with brew uninstall ffmpeg.

Comparison of installing FFmpeg on a Mac with Homebrew or manually from a static build
Homebrew or manual?

Method 2: install FFmpeg manually

Use this when you are on a locked-down Mac, need a single static binary for a script, or want to avoid Homebrew.

  1. Open the official FFmpeg download page, click the Apple logo and choose one of the macOS static builds linked there. Download the ffmpeg zip (and ffprobe if you need it).
  2. Check which Mac you have (Apple menu → About This Mac). Make sure the build matches your chip; an Intel-only build needs Rosetta 2 on Apple Silicon, so prefer Homebrew there.
  3. Unzip the file. You get a single file called ffmpeg.
  4. Move it into a folder on your PATH:
    sudo mkdir -p /usr/local/bin
    sudo mv ~/Downloads/ffmpeg /usr/local/bin/
    sudo chmod +x /usr/local/bin/ffmpeg
  5. Remove the quarantine flag that macOS adds to downloaded files, otherwise Gatekeeper blocks the first run:
    sudo xattr -d com.apple.quarantine /usr/local/bin/ffmpeg
    If you prefer the graphical way, run ffmpeg once, then open System Settings → Privacy & Security and click Open Anyway.
  6. Open a new Terminal window and run ffmpeg -version.

To remove a manual install, delete the file: sudo rm /usr/local/bin/ffmpeg.

Steps to install FFmpeg manually on macOS: download, unzip, move into the PATH, allow in Privacy and Security, test
Manual install steps

First commands to try

# convert a MOV from your iPhone or screen recording to MP4
ffmpeg -i input.mov -c:v libx264 -crf 23 -c:a aac output.mp4

# extract the audio as MP3
ffmpeg -i video.mp4 -vn -c:a libmp3lame -q:a 2 audio.mp3

# encode with the Mac's hardware encoder (much faster)
ffmpeg -i input.mov -c:v hevc_videotoolbox -b:v 6M -tag:v hvc1 output.mp4

The videotoolbox encoders use the Mac's built-in media engine. They are fast but give larger files than libx264 or libx265 at the same quality.

Fixing "command not found: ffmpeg"

  • Homebrew install: Homebrew is not on your PATH. Run the two "Next steps" commands the installer printed, or add eval "$(/opt/homebrew/bin/brew shellenv)" to ~/.zprofile, then open a new Terminal window.
  • Manual install: make sure the file is in /usr/local/bin and is executable (ls -l /usr/local/bin/ffmpeg).
  • "cannot be opened because the developer cannot be verified": remove the quarantine flag as shown above.
Troubleshooting for "command not found: ffmpeg" on macOS: PATH, Homebrew prefix and file permissions
Fixing command not found

Encoding big batches without tying up your Mac

FFmpeg uses every CPU core it can get, so long encodes make a laptop hot, loud and slow for hours. For large batches, many people run FFmpeg or HandBrake on a remote server instead: upload the files, start the queue, close the window and download the results later.

Frequently asked questions

What is the easiest way to install FFmpeg on a Mac?

With Homebrew: brew install ffmpeg. It works natively on Apple Silicon and Intel Macs and keeps FFmpeg up to date.

Does FFmpeg work on Apple Silicon (M1 to M5)?

Yes. Homebrew installs a native Apple Silicon build. Manual builds must match your chip, or run through Rosetta 2.

Where is FFmpeg installed on a Mac?

With Homebrew, in /opt/homebrew/bin/ffmpeg on Apple Silicon or /usr/local/bin/ffmpeg on Intel. Run which ffmpeg to see the path.

How do I update FFmpeg on macOS?

Run brew update && brew upgrade ffmpeg. For a manual install, download the new build and replace the file in /usr/local/bin.

Nishant Kumar, Sr. Server Engineer at 99RDP
Written byNishant KumarSr. Server Engineer, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More VPS and Hosting guides

All VPS and Hosting guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services