Skip to content

Instantly share code, notes, and snippets.

@wongyiuhang
Last active February 16, 2023 15:59
Show Gist options
  • Save wongyiuhang/d207aaf554e1985dd283a2fa1df949af to your computer and use it in GitHub Desktop.
Save wongyiuhang/d207aaf554e1985dd283a2fa1df949af to your computer and use it in GitHub Desktop.
Build Independent ffprobe on macOS

Prerequisite

  1. Install make
brew install make

Build

  1. git clone FFmpeg/FFmpeg
git clone https://github.com/FFmpeg/FFmpeg.git
  1. git checkout the desire version
git checkout release/5.1
  1. Run configure command on the Terminal
./configure \
  --enable-static \
  --pkg-config-flags=--static \
  --disable-ffmpeg \
  --disable-ffplay
  1. Run make
  2. You may find the resulting ./ffprobe
@JuanIrache
Copy link

Hello. Can I ask why you are disabling libxcb? I am seeing some crashes because of it missing. "Library not loaded: /opt/homebrew/opt/libxcb.1.dylib"

Thank you

@SavageCore
Copy link

Hello. Can I ask why you are disabling libxcb? I am seeing some crashes because of it missing. "Library not loaded: /opt/homebrew/opt/libxcb.1.dylib"

Thank you

Fix for SavageCore/node-ffprobe-installer#200 (comment)

@wongyiuhang
Copy link
Author

(Feb 16, 2023) The build configuration step has been replaced with standard build option flags.

The previous way of modifying the ./configure file was a kind of brute force.

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