https://github.com/homebrew-ffmpeg/homebrew-ffmpeg#installation-and-usage
$ brew tap homebrew-ffmpeg/ffmpeg
install with specific options
$ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-openh264 --with-openjpeg --with-rtmpdump --with-wavpack --with-webp
install with all options
brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')