How to run ffmpeg in macOS app
Issue #178
Install ffmpeg, which installs ffprobe
1 | brew install ffmpeg |
Find location of installed ffmpeg
1 | which ffmpeg |
Add all executables to project
Get error
unable to obtain file audio codec with ffprobe
Run in verbose mode
1 | ffmpeg -v |
Get
[debug] Encodings: locale US-ASCII, fs utf-8, out None, pref US-ASCII
[debug] Python version 2.7.10 (CPython) - Darwin-18.2.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg present, ffprobe present
Run version of ffprobe
1 | ffprobe --version |
Get dylb not found
dyld: Library not loaded: /usr/local/Cellar/ffmpeg/4.1.1/lib/libavdevice.58.dylib
Similar issue https://techglimpse.com/ffprobe-command-error-linux-solution/
Read dylib path https://stackoverflow.com/questions/23777191/dyld-library-not-loaded-when-trying-to-run-fortran-executable-from-objective-c