How to run ffmpeg in macOS app

Issue #178

Install ffmpeg, which installs ffprobe

text
brew install ffmpeg

Find location of installed ffmpeg

text
which ffmpeg

Add all executables to project

Get error

unable to obtain file audio codec with ffprobe

Run in verbose mode

text
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

text
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

Written by

I’m open source contributor, writer, speaker and product maker.

Start the conversation