Hudson Buddy
Hudson Buddy

Reputation: 736

ffmpeg not working after update to Mavericks

After recently updating to Mavericks 10.9.5, my installation of ffmpeg has been bugging out

Error:

dyld: Library not loaded: /usr/local/lib/libx264.142.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found
Trace/BPT trap: 5

Any thoughts? I'm not very familar with manual compiling and I installed ffmpeg through Homebrew.

I tried uninstalling and doing:

brew install ffmpeg --HEAD
brew install ffmpeg --build-from-source

but it spits back a ./configure error

==> ./configure --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
gpac 0.5.0 doesn't build against ffmpeg 2.4.1 (https://github.com/Homebrew/homebrew/issues/32978)

Upvotes: 14

Views: 11563

Answers (5)

Komolafe Ezekiel dare
Komolafe Ezekiel dare

Reputation: 115

i ran brew reinstall libvmaf to reinstall libvmaf, as my own error was

 Library not loaded: /usr/local/opt/libvmaf/lib/libvmaf.1.dylib

and also i got this error too

'/usr/local/opt/libvmaf/lib/libvmaf.1.dylib' (no such file),

but after running

brew reinstall libvmaf

it fixed my issue

if this does not work for kindly use another answer, there is no need to drop a minus point, thanks

Upvotes: 0

YuriBro
YuriBro

Reputation: 902

brew upgrade ffmpeg

Worked for me

Upvotes: 7

Paullo
Paullo

Reputation: 2127

I think this is worth sharing as pointed out by James. I had this similar issue and able to fix mine by looking into /usr/local/lib/ the location of the lib

dyld: Library not loaded: /usr/local/lib/libx264.142.dylib

$ ls -lsha /usr/local/lib/libx264.* 

In my case I found out that I have libx264 installed but a different version from what ffmpeg was looking for. I found

/usr/local/lib/libx264.152.dylib 

which is a symbolic link to actual installation location

/usr/local/Cellar/x264/r2854/lib/libx264.152.dylib

Notice it is only a difference of version number thus, I had to create a symbol link to the version that was needed by ffmpeg. With the command below, I was able to resolved this on MacOS 10.13

sudo ln -s /usr/local/Cellar/x264/r2854/lib/libx264.152.dylib /usr/local/lib/libx264.148.dylib

The only issue I would expect from this is incompatibility problem like function depreciation (because I am using a newer version) which did not occur. I hope this will help someone too. You will need to use the exact version available in your system if it is different from mine.

Upvotes: 4

James T Snell
James T Snell

Reputation: 1678

For High Sierra (macOS 10.13) I tried the uninstall ffmpeg method in the answer from chrisallick, but it didn't resolve the matter for me. I ended up going a big step further and completely removed and reinstalled my homebrew.

Proceed at your own risk.

Step 1. Uninstall Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Step 2. Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 3. Install ffmpeg

brew install ffmpeg

Obviously any other applications you installed via homebrew will have to be reinstalled if you chose this option.

This approach actually worked for me on High Sierra. There's probably a more direct method, until someone posts it, consider just doing this. And again, chrisallick's more direct method didn't actually work for my case.

Upvotes: -3

chrisallick
chrisallick

Reputation: 1358

My solution after some fiddling.

brew uninstall ffmpeg
brew doctor

then it told me i had an unlinked ffmpeg and i had some dependencies

brew install faac lame xvid
brew doctor

then it told me i JUST had an unlinked item.

brew install ffmpeg

and it worked.

Upvotes: 28

Related Questions