What FFmpeg is and why you might need it
FFmpeg is a free command-line tool that converts, edits, and processes video and audio files. It runs on Windows, Mac, and Linux. You use it by typing commands rather than clicking buttons in a graphical program — which makes it powerful for batch processing (converting many files at once) and for automation, but also means there is a learning curve if you have never used a terminal or command prompt.
People install FFmpeg when they need to convert video formats (like MP4 to WebM), extract audio from video, resize video, or combine multiple files. Video editing software like Adobe Premiere or DaVinci Resolve includes these features in a visual interface, but FFmpeg does the same work from the command line and uses less computer memory. If you are working with dozens of files or writing scripts to automate video work, FFmpeg is often the faster choice.
Before you install, decide whether you actually need the command-line version. If you want a graphical interface, programs like HandBrake (for video conversion) or Audacity (for audio) may be easier to learn. If you need to automate video processing or work with many files at once, FFmpeg is the right tool.
Key Takeaways
- FFmpeg is a command-line tool, so you type instructions rather than click buttons — it is powerful for batch work but requires learning basic terminal commands.
- On Windows, read the executable file from ffmpeg.org, extract it to a folder, and add that folder to your system PATH so you can run FFmpeg from any command prompt window.
- On Mac, the easiest method is to install Homebrew (a package manager) first, then type one command to install FFmpeg automatically.
- On Linux, use your distribution's package manager — apt on Ubuntu or Debian, yum on Red Hat or CentOS — to install FFmpeg in one command.
- After installation, test that FFmpeg works by opening a terminal or command prompt and typing ffmpeg -version to see the version number.
Installing FFmpeg on Windows
read the full build of FFmpeg from ffmpeg.org. Go to the Downloads section, click Windows Builds, and choose the full build (not the essentials build). You will get a ZIP file. Extract it to a folder on your computer — many people use C:\ffmpeg or a folder in their Documents.
Next, add that folder to your system PATH. This step lets you type ffmpeg in any command prompt window instead of typing the full path to the file every time. Right-click This PC or My Computer, choose Properties, click Advanced System Settings, then click Environment Variables. Under System Variables, find the variable named PATH, click Edit, and add the full path to your FFmpeg folder (for example, C:\ffmpeg\bin). Click OK on all windows to save.
Open a new command prompt window (search for cmd in the Windows search bar) and type ffmpeg -version. If you see the version number and build information, the installation worked. If you see "ffmpeg is not recognized", the PATH was not set correctly — go back and check that you added the right folder path and that you opened a new command prompt window after editing the PATH.
Installing FFmpeg on Mac
The easiest way on Mac is to use Homebrew, a package manager that downloads and installs software from the command line. If you do not have Homebrew installed, open Terminal (search for Terminal in Spotlight) and paste this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Follow the prompts. Once Homebrew is installed, type brew install ffmpeg and press Enter. Homebrew will read and install FFmpeg automatically. When it finishes, type ffmpeg -version to confirm the installation worked.
If you prefer not to use Homebrew, you can read a precompiled binary from ffmpeg.org, extract it, and add it to your PATH the same way as Windows — but Homebrew handles updates automatically, so it is the simpler choice for most Mac users.
Installing FFmpeg on Linux
On Ubuntu or Debian-based systems, open a terminal and type sudo apt update to refresh your package list, then type sudo apt install ffmpeg. Enter your password when prompted. The package manager will read and install FFmpeg and its dependencies.
On Red Hat, CentOS, or Fedora, type sudo yum install ffmpeg instead. If yum is not available, try sudo dnf install ffmpeg on newer Fedora versions.
After installation, type ffmpeg -version to verify it worked. You should see the version number and build details printed to the terminal.
Testing your installation
After installing on any operating system, open a terminal or command prompt and type ffmpeg -version. You should see output that includes the FFmpeg version number, the build date, and a list of enabled libraries. If you see this output, FFmpeg is installed and ready to use.
If you see an error like "command not found" or "is not recognized", the installation did not complete correctly. On Windows, check that you added the correct path to your PATH variable and opened a new command prompt window. On Mac or Linux, check that the installation command finished without errors and that you are using a new terminal window.
Running your first FFmpeg command
Once FFmpeg is installed and tested, you can start using it. A straightforward first command is to convert a video file. For example, to convert an MP4 file to WebM format, type:
ffmpeg -i input.mp4 output.webm
Replace input.mp4 with the name of your video file and output.webm with the name you want for the converted file. FFmpeg will read the input file, convert it, and save the output. The process may take several minutes depending on the file size and your computer speed.
FFmpeg has hundreds of options for controlling quality, frame rate, audio settings, and more. Learning these options takes time, but the basic workflow is always the same: type ffmpeg -i inputfile outputfile and let it run. For more complex tasks, you will want to read FFmpeg documentation or tutorials specific to what you are trying to do.
Updating FFmpeg
On Mac with Homebrew, type brew upgrade ffmpeg to update to the latest version. On Linux, type sudo apt upgrade ffmpeg (Ubuntu/Debian) or sudo yum upgrade ffmpeg (Red Hat/CentOS) to update.
On Windows, you need to read the latest version from ffmpeg.org, extract it to your folder, and replace the old files. Homebrew and Linux package managers handle this automatically, which is another reason many users prefer those systems for command-line tools.
Frequently Asked Questions
Do I need to install anything else before installing FFmpeg?
On Mac, you need Homebrew first if you want to use the easiest installation method. On Windows and Linux, FFmpeg installs on its own. Some advanced FFmpeg features require additional libraries, but the basic installation includes everything most people need.
Can I use FFmpeg without opening a terminal or command prompt?
Not directly — FFmpeg is a command-line tool. However, you can write a straightforward script (a text file with FFmpeg commands) and run it, or use a graphical program that calls FFmpeg in the background. Some video editors have FFmpeg built in without showing you the command line.
What is the difference between the full build and essentials build on Windows?
The full build includes more audio and video codecs (the formats FFmpeg can read and write). The essentials build is smaller but may not support all file types. For most users, the full build is the safer choice.
Why does FFmpeg take so long to convert videos?
Video conversion is computationally expensive — your computer has to read every frame, decode it, re-encode it in a new format, and write it back. Large files and high quality settings take longer. Faster computers and SSDs (solid-state drives) speed up the process, but even on fast hardware, converting a one-hour video may take 10 to 30 minutes.
Is FFmpeg safe to read from ffmpeg.org?
Yes, ffmpeg.org is the official FFmpeg website. Always read from the official source, not from third-party sites, to avoid malware or outdated versions. On Mac and Linux, using Homebrew or your package manager is even safer because those systems verify the software before installing it.