How to install ffmpeg on windows and macos

Posted on

Installing FFmpeg on various operating systems can be straightforward, but it requires some understanding of the process. FFmpeg is a powerful multimedia framework that allows users to decode, encode, transcode, mux, demux, stream, filter, and play almost any type of multimedia files. Below, I'll outline the steps to install FFmpeg on popular operating systems such as Windows, macOS, and Linux.

Installing FFmpeg on Windows:

  1. Download FFmpeg:

    • Visit the official FFmpeg website (
    • Scroll down to the "Windows" section and click on the "Windows Builds" link.
    • Choose a build that matches your system architecture (32-bit or 64-bit) and download the ZIP file.
  2. Extract the ZIP file:

    • Once the download is complete, extract the contents of the ZIP file to a location on your computer (e.g., C:ffmpeg).
  3. Add FFmpeg to the system PATH:

    • Right-click on "This PC" or "My Computer" and select "Properties."
    • Click on "Advanced system settings" and then "Environment Variables."
    • Under "System Variables," find the "Path" variable and click "Edit."
    • Add the path to the FFmpeg bin directory (e.g., C:ffmpegbin) to the list of paths and click "OK" to save.
  4. Verify the installation:

    • Open a command prompt and type ffmpeg -version to verify that FFmpeg is installed correctly. You should see the version information printed in the console.

Installing FFmpeg on macOS:

  1. Using Homebrew:

    • Open Terminal (found in Applications > Utilities).
    • Install Homebrew by running the following command:
      /bin/bash -c "$(curl -fsSL"
    • Once Homebrew is installed, run the following command to install FFmpeg:
      brew install ffmpeg
  2. Using MacPorts:

    • If you prefer MacPorts, you can install FFmpeg by running the following command in Terminal:
      sudo port install ffmpeg
  3. Verify the installation:

    • After the installation is complete, you can verify that FFmpeg is installed by typing ffmpeg -version in Terminal.

Installing FFmpeg on Linux (Ubuntu/Debian):

  1. Using apt (Advanced Package Tool):

    • Open Terminal.
    • Update the package index by running:
      sudo apt update
    • Install FFmpeg by running:
      sudo apt install ffmpeg
  2. Using Snap:

    • If Snap is available on your system, you can install FFmpeg using the following command:
      sudo snap install ffmpeg
  3. Verify the installation:

    • Once the installation is complete, you can verify FFmpeg by typing ffmpeg -version in Terminal.

Additional Notes:

  • Compiling from source:

    • Advanced users may choose to compile FFmpeg from source code. Instructions for this process can be found on the FFmpeg website.
  • FFmpeg GUIs:

    • For users who prefer a graphical interface, there are several FFmpeg GUI applications available for Windows, macOS, and Linux. These applications provide a more user-friendly experience for working with FFmpeg commands.

In summary, installing FFmpeg on various operating systems involves downloading the appropriate binary or using package managers like Homebrew, apt, or Snap. Once installed, you can use FFmpeg's powerful command-line interface to perform a wide range of multimedia tasks. Remember to verify the installation to ensure that FFmpeg is working correctly on your system.