Skip to content

Instantly share code, notes, and snippets.

@Debdut
Last active March 22, 2024 01:03
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
@GwynethLlewelyn
Copy link

Hi there! I found your gist via Google while searching for the following error:

FormulaUnavailableError: No available formula with the name "zvbi"

Ah! I was including --with-libzvbi because the option "Enable decoding of DVB teletext pages and DVB teletext subtitles" sounded interesting, even though I never used that before!

Removed, it seems to be pretty much useless.

ERROR: aribb24 not found using pkg-config

Fix:

cd /usr/local/share/pkgconfig
ln -s ../../Cellar/aribb24/1.0.4/lib/pkgconfig/aribb24.pc

And for good measure:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig

(since for some reason some configurations forget to search on all those paths...)

This should have been done automatically by homebrew on the official formula, but, alas, someone skipped this step, and I'm pretty sure that if I report it, people will know I'm using an unsupported version of macOS...

In any case, it still refuses to find it, so, at the end ofthe day, I got rid of it.

chromaprint not found

Chromaprint is useful, but it depends on the infamous AI framework openvino, which does not compile; my main issue is that I'm unable to get over the mysterious --env:std error thrown by clang. The instructions to "fix" that are... obscure, to say the least, and are usually on places where the intention is clearly not to give any useful information (e.g., Homebrew/homebrew-core#129340 — note how the moderators rushed to close this thread!)

ERROR: libflite not found

flite, or Festival Lite, is a small portable speech synthesiser, which seems not to be supported by Homebrew. Why? I have no idea. But I removed it as well...

Vulkan errors

These are beyond my ability to fix:

Last 15 lines from /Users/gwyneth/Library/Logs/Homebrew/ffmpeg/02.make:
/usr/local/include/vulkan/vulkan_core.h:1071:5: note: 'VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_SESSION_PARAMETERS_CREATE_INFO_KHR' declared here
    VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_SESSION_PARAMETERS_CREATE_INFO_KHR = 1000512004,
    ^
14 errors generated.
make: *** [libavcodec/vulkan_decode.o] Error 1
In file included from libavcodec/vulkan_h264.c:22:
libavcodec/vulkan_decode.h:31:5: error: unknown type name 'VkVideoDecodeAV1ProfileInfoMESA'; did youmean 'VkVideoDecodeAV1ProfileInfoKHR'?
    VkVideoDecodeAV1ProfileInfoMESA av1_profile;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    VkVideoDecodeAV1ProfileInfoKHR
/usr/local/include/vulkan/vulkan_core.h:11365:3: note: 'VkVideoDecodeAV1ProfileInfoKHR' declared here
} VkVideoDecodeAV1ProfileInfoKHR;
  ^
1 error generated.
make: *** [libavcodec/vulkan_h264.o] Error 1

This, unfortunately, is beyond my ability to fix.

The solution?

git clone https://git.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure
make
sudo make install

Worked like a charm (as so many other things that Homebrew managed to break). I wonder what weird patches the Homebrew crowd are applying to almost perfect, flawless, portable code, which compiles nicely... even on Apple-unsupported versions of macOS :-P

Anyway, thanks for the gist :)

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