Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--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-libsoxr \
--with-libssh \
--with-libvidstab \
--with-libvorbis \
--with-libvpx \
--with-opencore-amr \
--with-openh264 \
--with-openjpeg \
--with-openssl \
--with-opus \
--with-rtmpdump \
--with-rubberband \
--with-sdl2 \
--with-snappy \
--with-speex \
--with-tesseract \
--with-theora \
--with-tools \
--with-two-lame \
--with-wavpack \
--with-webp \
--with-x265 \
--with-xz \
--with-zeromq \
--with-zimg
@Valehero

This comment has been minimized.

Copy link

Valehero commented Mar 2, 2018

ffmpeg 3.4.2 have option:
--with-librsvg \

@SamuelMarks

This comment has been minimized.

Copy link

SamuelMarks commented Mar 4, 2018

$ brew options ffmpeg | grep -vE "\s" | tr '\n' ' '
--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-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg \
--with-openssl --with-opus --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-speex --with-tesseract \
--with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg \
--without-gpl  --without-lame --without-qtkit --without-securetransport --without-x264 --without-xvid --HEAD
@megadr01d

This comment has been minimized.

Copy link

megadr01d commented Apr 17, 2018

@SamuelMarks You're also grepping the --without options.

@ghost

This comment has been minimized.

Copy link

ghost commented Apr 27, 2018

Make it faster.

$ brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
@hastryn

This comment has been minimized.

Copy link

hastryn commented Jun 6, 2018

Minor hijacking: Is there still no option for Homebrewed ffmpeg to use osx CoreAudio? Google linked to this thread. Thanks.

@bobvanluijt

This comment has been minimized.

Copy link

bobvanluijt commented Jan 12, 2019

+1 @m31271n

@varenc

This comment has been minimized.

Copy link

varenc commented Jan 28, 2019

All the brew install options for ffmpeg are now gone...☹️ The homebrew team is removing all options from core formulas. (looong discussion on that here)

Does anyone know of a semi-maintain alternative tap for ffmpeg? For now, I'm just using the last version of the formula that still had options (online here) but will eventually want to upgrade ffmpeg. If no one knows of any I might try to take this on and keep it updated. Won't have to worry about bottles since the target audience will be compiling with their chosen options anyway.

@justinmayer

This comment has been minimized.

Copy link

justinmayer commented Feb 5, 2019

I need the FFmpeg options that were removed from Homebrew, so I took it upon myself to publish a tap. 🚀

Perhaps with the assistance of the community (this means you!), we can improve the formula and keep it reasonably well-maintained as new versions of FFmpeg are released.

@Mr-Mondragon

This comment has been minimized.

Copy link

Mr-Mondragon commented Feb 10, 2019

I need the FFmpeg options that were removed from Homebrew, so I took it upon myself to publish a tap. 🚀

Perhaps with the assistance of the community (this means you!), we can improve the formula and keep it reasonably well-maintained as new versions of FFmpeg are released.

Awesome work Justin 👍 I'd love to assist, but am rather new to this (not to developing and using ffmpeg, but to the technicalities of Homebrew). What can we "the people" do to contribute and help keeping your tap up to date?

@kpennell

This comment has been minimized.

Copy link

kpennell commented Feb 26, 2019

@cancerberoSgx

This comment has been minimized.

Copy link

cancerberoSgx commented Aug 6, 2019

thanks! didn't knew brew can be used as ./configure! nice!

@antoni

This comment has been minimized.

Copy link

antoni commented Sep 7, 2019

Options are no longer available for FFmpeg in the default tap.

This is what you can use to install FFmpeg with all options from a 3rd party tap:

FFMPEG_TAP_NAME=homebrew-ffmpeg/ffmpeg
brew tap $FFMPEG_TAP_NAME
brew install $FFMPEG_TAP_NAME/ffmpeg $(brew options $FFMPEG_TAP_NAME/ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')

Note that this installs FFmpeg with all options, so you will need to install DeckLink SDK as well (or exclude that option):
brew install amiaopensource/amiaos/decklinksdk

@burakduganci

This comment has been minimized.

Copy link

burakduganci commented Nov 13, 2019

Make it faster.

$ brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')

thanks bro

@Kezzsim

This comment has been minimized.

Copy link

Kezzsim commented Nov 15, 2019

@antoni Chromaprint is a recursive dependency that pulls in another ffmpeg from the core tap

Not sure how to proceed

@antoni

This comment has been minimized.

Copy link

antoni commented Nov 19, 2019

@Kezzsim I've simply added grep -v 'chromaprint' and then installed chromaprint separately.

@Qix-

This comment has been minimized.

Copy link

Qix- commented Jan 25, 2020

The homebrew team is removing all options from core formulas.

By "team" you mean Mike McQuaid, who has a track record of being a jerk. Doesn't surprise me he made a unilateral decision to make Homebrew even worse than it is.

To combine the last few comments:

# Uninstall ffmpeg if you haven't already
brew uninstall ffmpeg

# Re-install with all options sans chromaprint
brew install chromaprint amiaopensource/amiaos/decklinksdk
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | tr '\n' ' ')
@wvreeven

This comment has been minimized.

Copy link

wvreeven commented Feb 25, 2020

That last command doesn't work since ffmpeg is a dependency of chromaprint:

$> brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | tr '\n' ' ')
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
Error: ffmpeg 4.2.2_2 is already installed
To upgrade to 4.2.2-with-options_1, run `brew upgrade ffmpeg`.

It should be

brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | tr '\n' ' ')
@NicolasReibnitz

This comment has been minimized.

Copy link

NicolasReibnitz commented Mar 12, 2020

Great work guys! Worked like a charm!

Here is what I used (to sum it all up):

brew uninstall --force --ignore-dependencies ffmpeg
brew install chromaprint amiaopensource/amiaos/decklinksdk
brew tap homebrew-ffmpeg/ffmpeg
brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | tr '\n' ' ')

Thanks!

@Kezzsim

This comment has been minimized.

Copy link

Kezzsim commented Mar 23, 2020

Is --with-game-music-emu still alright?
I had everything working 100% until recently I tried to upgrade to FFMPEG 4.2 and now I get

dyld: Library not loaded: @rpath/libclang_rt.ubsan_osx_dynamic.dylib
  Referenced from: /usr/local/opt/game-music-emu/lib/libgme.0.dylib
  Reason: image not found
[1]    15160 abort      ffmpeg -version

When trying to check the version. I am able to remove that from the dependencies and it works like normal
brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | grep -vi game-music-emu | tr '\n' ' ')

@elv-peter

This comment has been minimized.

Copy link

elv-peter commented Mar 25, 2020

@Kezzsim I had the same problem

@Wagonfixin

This comment has been minimized.

Copy link

Wagonfixin commented Apr 3, 2020

@Kezzsim, @elv-peter, Same here as well. I don't think it's a ffmpeg problem, as it appeared following Homebrew's update to libgme v0.6.3. Failed under Catalina 10.15.3 with Xcode 11.3.1, and is still failing on 10.15.4 and Xcode 11.4. Might try a local build of libgme later this weekend...

@reducm

This comment has been minimized.

Copy link

reducm commented Apr 23, 2020

brew options ffmpeg show nothing...

@Mon-ius

This comment has been minimized.

Copy link

Mon-ius commented May 16, 2020

it shows nothing

@df-a

This comment has been minimized.

Copy link

df-a commented May 23, 2020

Only way I managed to install it was to compile it myself. Any other way I would only keep getting a recursive dependency error, with ChromaPrint requiring FFmpeg and FFmpeg requiring ChromaPrint.

# start clean. make sure you have xcode installed and all the other basics such as brew.
brew uninstall --force ffmpeg chromaprint amiaopensource/amiaos/decklinksdk

# installs ffmpeg vanilla as dependency
brew install chromaprint amiaopensource/amiaos/decklinksdk

# let's neuter that shit
brew unlink ffmpeg

# install dependencies to cook our own
brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus \ 
sdl shtool texi2html theora wget x264 x265 xvid nasm
# and we're done brewing. Lay off the beer for now.

# clone head
# if you ever want to update or customize FFmpeg at any point 
# just delete the binary (/usr/local/bin/ffmpeg in this case)
# and start again from this step.
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg

# at this point, ChromaPrint has to be installed, else this step will fail.
# sample compilation command. Customize this to your needs
# the flags are different from the brew version LDO. RTFM.
./configure  --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass \
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame \
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 \ 
--enable-libopus --enable-libxvid --enable-chromaprint --enable-decklink --samples=fate-suite/

# the actual install once you're done configuring
make && make install

# ffmpeg should install to /usr/local/bin/ffmpeg. Test this out
which ffmpeg
ffmpeg -version

example output

% which ffmpeg

/usr/local/bin/ffmpeg


% ffmpeg -version

ffmpeg version N-97866-g38490cbeb3 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 11.0.3 (clang-1103.0.32.59)
configuration: --prefix=/usr/local --enable-chromaprint --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-gmp --enable-version3 --enable-libwebp --enable-libopenjpeg --extra-ldflags=-L/usr/local/lib
libavutil      56. 46.100 / 56. 46.100
libavcodec     58. 86.101 / 58. 86.101
libavformat    58. 43.100 / 58. 43.100
libavdevice    58.  9.103 / 58.  9.103
libavfilter     7. 82.100 /  7. 82.100
libswscale      5.  6.101 /  5.  6.101
libswresample   3.  6.100 /  3.  6.100
libpostproc    55.  6.100 / 55.  6.10
@shrubberies

This comment has been minimized.

Copy link

shrubberies commented May 24, 2020

Only way I managed to install it was to compile it myself. Any other way I would only keep getting a recursive dependency error, with ChromaPrint requiring FFmpeg and FFmpeg requiring ChromaPrint.

works for me

@Albertdup

This comment has been minimized.

Copy link

Albertdup commented May 28, 2020

Any way of adding Nvidia NVENC support to the options? I am using Linux Ubuntu 20.04

@robatron

This comment has been minimized.

Copy link

robatron commented May 30, 2020

@df-a , worked like a charm, thanks!

@Piasy

This comment has been minimized.

Copy link
Owner Author

Piasy commented Jun 14, 2020

@df-a Good job man! 👍

A small note: please make sure pkg-config is installed, which could be installed by brew install pkg-config, otherwise ./configure could fail with ERROR: libass not found using pkg-config.

@jasonpaulmichaels

This comment has been minimized.

Copy link

jasonpaulmichaels commented Jun 23, 2020

Hey everyone, total newbie here...

I just wiped a machine and did a complete reload of Catalina, updated all patches, etc. I then installed Xcode via the Appstore, rebooted, install Homebrew via terminal with the default Home-brew install command

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

and then ran this series of terminal commands to install FFMPEG w/ all options --

brew uninstall --force --ignore-dependencies ffmpeg
brew install chromaprint amiaopensource/amiaos/decklinksdk
brew tap homebrew-ffmpeg/ffmpeg
brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | tr '\n' ' ')

The only error I received was after running the last command which was --

Error: ffmpeg: An unsatisfied requirement failed this build.

I am uncertain if this is something I need to be worried about? Can anyone provide any information?

If anyone cares to look, the linked TXT file has the entire terminal cache on the commands entered and the results. I didn't want to post it in the thread for fear it wouldn't collapse and then you'd have to scroll through all of it.

And while I'm here, not to Hi-Jack, but as a part of FFMPEG and my workflow I need to install AppleVideoToolbox to activate hardware compression on this new iMac 27" -- can anyone comment on that?

Thank you!

@zoharbabin

This comment has been minimized.

Copy link

zoharbabin commented Jul 17, 2020

This worked for me -

brew uninstall --force --ignore-dependencies ffmpeg
brew install chromaprint amiaopensource/amiaos/decklinksdk
brew tap homebrew-ffmpeg/ffmpeg
brew install ffmpeg
brew cask install xquartz
brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi chromaprint | tr '\n' ' ')

Note the addition of brew cask install xquartz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.