Skip to content

Instantly share code, notes, and snippets.

@gukoff
Created March 11, 2018 15:22
Show Gist options
  • Save gukoff/4166580dce91598e32253977be969ded to your computer and use it in GitHub Desktop.
Save gukoff/4166580dce91598e32253977be969ded to your computer and use it in GitHub Desktop.
In case you get such an error:
dyld: Library not loaded: /usr/local/opt/x264/lib/libx264.148.dylib
Referenced from: /usr/local/Cellar/ffmpeg/3.3.2/bin/ffmpeg
Reason: image not found
Abort trap: 6
1. Run `brew reinstall x264`
2. Locate the missing library in a new place. For example, mine was at /usr/local/Cellar/x264/r2748/lib/libx264.148.dylib
3. Link the library to the needed place: `link -s /usr/local/Cellar/x264/r2748/lib/libx264.148.dylib /usr/local/opt/x264/lib/libx264.148.dylib`
The same applies to errors with x265 and/or different library versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment