On macOs I always used to install or update ffmpeg through Homebrew. I use the libfdk_aac audio codec a lot so I always did this:
brew reinstall ffmpeg --with-fdk-aac
For some reason, since one or two brew updates, ffmpeg can no longer be installed with libfdk_aac.
When converting a video and using -acodec libfdk_aac
which has been working fine for years, I now get:
Unknown encoder 'libfdk_aac'
Is there a way to fix this?
Homebrew v2.0 dropped all of the extra options that are not explicitly enabled in each formulae. So the --with
options no longer work if you use the core Homebrew formulae.
Instead you can use a third-party repository (or "tap") such as homebrew-ffmpeg. This tap was created in response to the removal of the options from the core formulae.
Enable it then install ffmpeg
:
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
You can see a list of additional options with:
brew options homebrew-ffmpeg/ffmpeg/ffmpeg
It's recommended to install a recent build from the git master branch. You can do so with the --HEAD
option:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --HEAD