If Homebrew is already installed, skip to "Install FFmpeg" below.
Launch Terminal
in macOS, located at /Applications/Utilities/Terminal.app
. To install a bundle of command-line tools provided by Apple, paste the following line into the terminal window and press return. When prompted, click "Install," then "Agree."
xcode-select --install