home ¦ Archives ¦ Atom ¦ RSS

ffmpeg, homebrew, and aac

Link parkin’ this Stack Overflow solution for personal reference:

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.

$ brew tap homebrew-ffmpeg/ffmpeg
$ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
# or
$ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --HEAD

I have a script that uses ffmpeg to convert WAV files to m4a files for Apple Music. It needs the non-free Fraunhofer FDK AAC to properly encode the data and write out in the correct file format. It’s not often I use the script though and a skoosh of bitrot had settled in to my installation with homebrew. This solution fixed things up in a pinch.

© 2008-2024 C. Ross Jam. Built using Pelican. Theme based upon Giulio Fidente’s original svbhack, and slightly modified by crossjam.