Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get ffmpeg to work after installing from homebrew

I installed ffmpeg through homebrew but when I try to run it, even just typing in ffmpeg I get the following error message:

dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: Incompatible library version: ffmpeg requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0
Trace/BPT trap: 5

I've tried running brew update and brew upgrade but that didn't change anything. Running brew doctor the only error I get is:

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl http://github.com

New at doing things in the terminal, what to do next?

like image 204
phizzy Avatar asked Jul 24 '15 13:07

phizzy


People also ask

How do I know if FFmpeg is installed on my Mac?

Mac/Linux. Open a terminal window by pressing command and space on your keyboard to open Spotlight, typing Terminal, and pressing enter. Check if you have ffmpeg installed and what version you have installed. In the terminal, type ffmpeg -version and press enter.

Where does FFmpeg install on Mac?

To install FFmpeg: Go to https://www.ffmpeg.org/download.html. In Get packages & executable files, click the Mac icon. A link to static builds for macOS is displayed.


2 Answers

I got it to work by running brew search liblzma which told me lzma is now part of the xz formula.

So then I ran brew install xz and tried running ffmpeg again and it works now!

like image 175
phizzy Avatar answered Sep 30 '22 19:09

phizzy


What Worked Today

I'm running OSX Mojave 10.14.5 and got the dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib complaint.

  • brew install xz did not work
  • Reinstall worked like a boss
brew uninstall --force ffmpeg && brew install ffmpeg
like image 22
fusion27 Avatar answered Sep 30 '22 19:09

fusion27