Installing FFmpeg and Adding It to Your System PATH
FFmpeg is a command-line tool. To use it from any directory in your terminal, you need to add its binary folder to your system's PATH environment variable.
1. Installation on macOS (Homebrew)
The easiest way to install FFmpeg on macOS is via Homebrew:
# Install ffmpeg via Homebrew package manager
brew install ffmpegHomebrew automatically adds ffmpeg to your PATH. Verify the installation:
ffmpeg -version2. Installation on Windows
- Download a static build from ffmpeg.org/download.html (choose a "Windows builds" link from gyan.dev or BtbN).
- Extract the downloaded
.zipfile to a stable location such asC:\ffmpeg. - Open System Properties > Advanced > Environment Variables.
- Under System Variables, find
Path, click Edit, and add the path to thebinfolder inside your extracted directory (for example,C:\ffmpeg\bin). - Open a new terminal window and verify:
ffmpeg -version3. Checking Installed Codecs
To see which codecs and formats are available in your installation:
# List all supported encoders
ffmpeg -encoders
# List all supported input/output formats
ffmpeg -formatsPublished on Last updated: