Skip to content

Instantly share code, notes, and snippets.

@varenc
Last active October 30, 2020 01:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save varenc/3bf730ad968b7a44d5dca168d3031001 to your computer and use it in GitHub Desktop.
Save varenc/3bf730ad968b7a44d5dca168d3031001 to your computer and use it in GitHub Desktop.
# Homebrew has done away with options in all of their core formulas
# discussion on this change here: https://github.com/Homebrew/homebrew-core/issues/31510
# Instead, Use the last version of the homebrew forumla that still supported them.
# the formula is here: https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb
# install it like this:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb \
--with-aom \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
--with-libbluray \
--with-libbs2b \
--with-libcaca \
--with-libgsm \
--with-libmodplug \
--with-librsvg \
--with-libsoxr \
--with-libssh \
--with-libvidstab \
--with-libvmaf \
--with-opencore-amr \
--with-openh264 \
--with-openjpeg \
--with-openssl \
--with-rtmpdump \
--with-rubberband \
--with-speex \
--with-srt \
--with-tesseract \
--with-two-lame \
--with-wavpack \
--with-webp \
--with-zeromq \
--with-zimg
### list all options available
run `brew options https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb` to see all options
### install with all options available
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb $(brew options https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
@varenc
Copy link
Author

varenc commented Feb 5, 2019

I ended up just creating a 3rd party tap with better instructions: https://github.com/varenc/homebrew-ffmpeg-with-options

@exekutive
Copy link

Error: Calling Installation of ffmpeg from a GitHub commit URL is disabled! Use 'brew extract ffmpeg' to stable tap on GitHub instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment