Install FFMPEG on macOS using Homebrew for x256/H.265/HEVC encoding

Consulting the official FFMPEG Compilation / Installation guide only tells us how to do a basic install of FFMPEG. For day to day encoding we would need some additional options enabled at compile time.

Searching around lead me to a GitHub gist discussion where multiple users shared their then-current ways of installing FFMPEG on their Macs with x265 enabled.

For those of you in a hurry, I also have the current workaround up on my GitHub repo for download: install_ffmpeg.sh

The first step is to have Homebrew directed to the latest release trunk by issuing the following in a Terminal window:

brew tap varenc/ffmpeg
brew tap-pin varenc/ffmpeg

And after that, we would actually install FFMPEG with all available options. As of writing (14/06/2019) this actually failed for me, but for completeness’ sake, this is the command you would normally want to use:

brew install ffmpeg $(brew options ffmpeg --compact)

Problem is for some reason the decklink option fails, so I went ahead and copied out all options to one consecutive line so that you don’t have to:

brew install ffmpeg --with-chromaprint --with-fdk-aac --with-librsvg  --with-libsoxr --with-libssh --with-tesseract --with-libvidsta --with-opencore --with-openh264 --with-openjpeg --with-openssl  --with-rubberban --with-webp --with-zeromq --with-zimg --with-srt --with-libvmaf  --with-libxml2 --with-g --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplu --with-rtmpdump --with-speex --with-two-lame --with-wavpack --with-xvid

Thanks for reading! Please consider Buying me a Coffee or checking out Colibri!