Skip to content

Instantly share code, notes, and snippets.

@Piasy
Last active April 14, 2026 11:41
Show Gist options
  • Select an option

  • Save Piasy/b5dfd5c048eb69d1b91719988c0325d8 to your computer and use it in GitHub Desktop.

Select an option

Save Piasy/b5dfd5c048eb69d1b91719988c0325d8 to your computer and use it in GitHub Desktop.
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
@RadJKW

RadJKW commented Apr 12, 2023

Copy link
Copy Markdown

Found this gist while googling FFmpeg enable-chromaprint on macOS as of 04/2023.

Wanted to verify that with combining the solutions of @zoharbabin and @raedatoui. You can very easily install FFmpeg from home-brew with additional options.

Machine:
2021 M1 MacBook Pro 14inch (M1 Pro)

brew uninstall --force --ignore-dependencies ffmpeg
brew install chromaprint amiaopensource/amiaos/decklinksdk
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint

@cellulosa

Copy link
Copy Markdown

Did that work for you? I noticed that the built formula is under: /usr/local/Cellar/ffmpeg/6.0-with-options_1/bin/ffmpeg.

I noticed because if I run the command ffmpeg -muxers I do not see chromaprint, whereas if I point directly to /usr/local/Cellar/ffmpeg/6.0-with-options_1/bin/ffmpeg -muxers I can see it there.

@RadJKW

RadJKW commented May 19, 2023

Copy link
Copy Markdown

@cellulosa
If you are referring to my instructions, then yes this works.

Running the command ffmped -muxers shows E chromaprint Chormaprint.

I do not however have a folder at the location /usr/local/Cellar since I did not have to compile the build from source.

@cellulosa

Copy link
Copy Markdown

Cool, thanks! For some reason when I run these commands my main ffmpeg links to a non-build version (that is, without chromaprint) whereas the built version sits elsewhere. I am also discussing it here in case anybody else has the same issue.

@ChristianAndro

Copy link
Copy Markdown

Hi, anyone can help me ?, Im is Junior on linux os, and please help me How i can enable or adding the hardware accelerator nividia like hevc_nvenc, h264_nvenc and cuvid (cuda) or AMD vaapi, hevc_vaapi, h264_vaapi (amf, hevc_amf, h264_amf) on brew ffmpeg, now only support software encoding / decoding, But not support using hardware GPU for encoding and decoding , thanks for help

@sarimarton

Copy link
Copy Markdown

Use chatgpt

@ChristianAndro

Copy link
Copy Markdown

Use chatgpt

Thanks for your response, I have tried using chatgpt assistance, but it didn't work.

@EngHabu

EngHabu commented Dec 3, 2023

Copy link
Copy Markdown

@df-a thank you for the write up, super helpful!

One nit I would add:

git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

to

git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git ffmpeg

to reduce downloaded artifacts from ~180mb to ~17mb

And I also had to update the .configure command to:

./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-libopenjpeg --enable-libaom --extra-ldflags=-L/opt/homebrew/lib --samples=fate-suite/ --extra-cflags=-I/opt/homebrew/include

To use homebrewed lame and other requirements. Otherwise I kept getting ERROR: libmp3lame >= 3.98.3 not found errors

@alexey-sh

Copy link
Copy Markdown

M1 chip

Error: invalid option: --with-chromaprint

2024 year and there is no way to install ffmpeg with all options

@Saafo

Saafo commented Sep 26, 2024

Copy link
Copy Markdown

M1 chip

Error: invalid option: --with-chromaprint

2024 year and there is no way to install ffmpeg with all options

@alexey-sh try this: https://stackoverflow.com/a/55108365/13724447

@gabrielstuff

Copy link
Copy Markdown

Unfortunately all of this is not valid anymore and you'll need to follow these steps if you just want all options, even ones that you will never use !

brew tap homebrew-ffmpeg/ffmpeg
brew install amiaopensource/amiaos/decklinksdk
brew tap lescanauxdiscrets/tap
brew install lescanauxdiscrets/tap/zvbi
brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi libflite | tr '\n' ' ')`

The only lib I could not install was libflite :

Flite is a small fast run-time speech synthesis engine. It is the latest addition to the suite of free software synthesis tools including University of Edinburgh's Festival Speech Synthesis System and Carnegie Mellon University's FestVox project, tools, scripts and documentation for building synthetic voices. However, flite itself does not require either of these systems to run.

I guess, it will be next time !

Most of this operation can be found here: https://gist.github.com/Debdut/27a9b62a8f68534d39ae0c5d38591331?permalink_comment_id=5086936#gistcomment-5086936

Repo for ffmpeg with option: https://github.com/homebrew-ffmpeg/homebrew-ffmpeg

@jadenquinn

jadenquinn commented Mar 13, 2025

Copy link
Copy Markdown

Error: invalid option: --with-chromaprint
jaden@PureSlate ffmpeg %

I don't think any of this works anymore.

@AbandonedCart

Copy link
Copy Markdown

Error: invalid option: --with-chromaprint jaden@PureSlate ffmpeg %

I don't think any of this works anymore.

I believe you need to install chromaprint first and use -- enable-chromaprint but it's also been quite a while since I installed

@Wagonfixin

Copy link
Copy Markdown

Yeah, same here, I first install Homebrew’s chromaprint without it’s ffmpeg dependency with:
brew install --ignore-dependencies chromaprint
then, build ffmpeg with the --with-chromaprint option.

@crgrafton

Copy link
Copy Markdown

2024-10-27 2020 m1 macbook air

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

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