Install ffmpeg, the 2-Minute Fix
You ran a build and the terminal stopped you cold: command not
found: ffmpeg. That is not a broken build. One tool it leans on
just is not installed yet. Here is the fix.
ffmpeg is the engine that does the actual video and audio work behind a lot of AI and build tooling: cutting clips, pulling out frames, mixing in audio. Plenty of tools assume it is already there. Not every machine has it. So you install it once and forget it exists.
On a Mac
The clean way is Homebrew, the package manager most Mac dev setups already use. One line:
brew install ffmpeg Don't have Homebrew yet? Install it first from brew.sh (one command, on their homepage), then run the line above.
On Windows or Linux
Same idea, different package manager:
# Windows (PowerShell)
winget install Gyan.FFmpeg
# Linux (Debian / Ubuntu)
sudo apt install ffmpeg Check it worked
Run this. If you see a version number, you are done:
ffmpeg -version
ffmpeg version 8.1 Copyright (c) the FFmpeg developers ... That version line is the whole confirmation. The build that sent you here will now find ffmpeg and keep going.
If it still says command not found
Two usual causes, both quick:
- Old terminal. The install finished, but your terminal is still using its old PATH. Close it, open a new one, try again.
- Homebrew not on PATH. On a fresh Mac, the Homebrew installer prints a two-line fix at the very end of its output. Re-run those two lines, then try
ffmpeg -versionagain.
That is the whole thing. ffmpeg is the kind of invisible dependency a lot of AI and video tooling assumes you already have. Install it once, and the next build that needs it just works.
I build websites, automations, and AI tools, and write up what I learn along the way.
More tutorials ↗