如何修复 Mac Mojave 上“ffprobe”的安装

Ale*_*lex 3 macos

我使用的是 Mac Mojave,但在使用ffprobe. 我收到以下错误:

$ ffprobe
dyld: Library not loaded: /usr/local/opt/x265/lib/libx265.179.dylib
  Referenced from: /usr/local/bin/ffprobe
  Reason: image not found
Abort trap: 6
Run Code Online (Sandbox Code Playgroud)

我尝试卸载它,但也不起作用:

$ brew uninstall ffprobe
Error: No such keg: /usr/local/Cellar/ffprobe
Run Code Online (Sandbox Code Playgroud)

我也跑了brew doctor,但没有帮助。我尝试安装该工具,但得到了输出:

$ brew install ffprobe
Updating Homebrew...
Error: No available formula with the name "ffprobe" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
Run Code Online (Sandbox Code Playgroud)

那么如何解决这个问题呢ffprobe

Ale*_*lex 8

看来这ffprobe是包裹的一部分ffmpeg!我想你需要知道这一点(brew不想告诉你那些重要的信息!)。因此,要解决此问题只需重新安装ffmpeg

brew uninstall ffmpeg
brew install ffmpeg
Run Code Online (Sandbox Code Playgroud)