Skip to content

Instantly share code, notes, and snippets.

@Debdut
Last active August 15, 2024 13:29
Show Gist options
  • Save Debdut/27a9b62a8f68534d39ae0c5d38591331 to your computer and use it in GitHub Desktop.
Save Debdut/27a9b62a8f68534d39ae0c5d38591331 to your computer and use it in GitHub Desktop.
FFMPEG brew all options without errors

Possible Errors

  • ERROR: DeckLinkAPI.h not found
  • ERROR: chromaprint not found
  • FormulaUnavailableError: No available formula with the name "zvbi"

Solution

brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-game-music-emu --with-jack --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libopenmpt --with-librist --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvmaf --with-libxml2 --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-openssl@1.1 --with-rav1e --with-rtmpdump --with-rubberband --with-speex --with-srt --with-svt-av1 --with-tesseract --with-two-lame --with-webp --with-xvid --with-zeromq --with-zimg
@ohjho
Copy link

ohjho commented Jun 12, 2024

running on a MBP 2023 with Apple M2 Max chip here and found this solution works, but this also:

brew install chromaprint amiaopensource/amiaos/decklinksdk

# chromaprint depends on ffmpeg
brew uninstall --force --ignore-dependencies ffmpeg 

brew tap homebrew-ffmpeg/ffmpeg

# basically remove those packages you mentioned above with the exception of chromaprint
brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | grep -vi libzvbi | grep -vi libflite | grep -vi openvino | tr '\n' ' ')

you of course can remove chromaprint too by adding grep -vi chromaprint

@jslpc
Copy link

jslpc commented Aug 3, 2024

Thank you for your command! I found this gist while searching about why I was getting the zvbi error.

One thing, though, is that using --with-openssl@1.1 results in the following error:

Error: invalid option: --with-openssl@1.1
Did you mean?  with-openssl

Running the same command after removing the @1.1 worked for me flawlessly. Just a heads up!

@seanbrodie
Copy link

To use the --with-zvbi option, you need to install libzvbi before installing ffmpeg as stated in the homebrew-ffmpeg README.

brew tap lescanauxdiscrets/tap && brew install lescanauxdiscrets/tap/zvbi

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