Trouble with ffmpeg on mac os catalina 10.15.3 - ffmpeg

I had ffmpeg installed before upgrading my os to catalina. When I tried to re-encode a video it complained with this message
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: image not found
zsh: abort ffmpeg
I found out openssl isn't used in catalina in favor for libressl..
I did a brew search openssl and found I have openssl#1.1 not 1.0.0
I'm weary about messing around with the version of openssl because so many other programs depend on it and I don't want to screw up my system..
My question is how can I get ffmpeg to run on my system? Mac os catalina 10.15.3

If you are using homebrew then brew reinstall ffmpeg fixed this issue for me.

This is what worked for me (found it on a random search, did not save source, sorry):
Open the location of the ffmpeg executable (e.g. /usr/local/bin) in Finder.
(This itself might pose a problem since Finder won't show these directories if you just navigate from "Mac OS Hard Drive". You can chdir to this directory in a Terminal, then "open ." - this will force a Finder window to open with this directory.)
Right-click on the ffmpeg executable, then choose "Open with... Terminal". A new Terminal window opens, then you get the message "Mac OS doesn't know this - so eff off" or something to that effect. Click "cancel".
Do Step 2 again. This time it pops up a window saying "are you sure... ?!" or some such. Select "Yes, open, damnit!" (or maybe just "Open"). A Terminal window flashes and disappears.
But now Mac OS knows ffmpeg should be allowed to run, so it should run however triggered.
You have to do it for the other modules, like ffplay, I think.
Hope this helps. I too am tired of fighting MAC OS trying hard to look like they are not built on FreeBSD, even though that is the very value of Mac OS to many of us. I am THIS close to switching to Linux, and saving a lot of money.

Related

Mavericks - Trying to install XQuartz X11 for Inkscape, "image not found"

So I'm trying to install Inkscape onto my Mac, which is running on Mavericks. Upon trying to open, i'm told that I need to install X11 and am forwarded to this site http://xquartz.macosforge.org/trac/wiki/X112.7.5. Downloaded the file, when trying to open i'm told that the image can't be found. How can I get X11 + Inkscape running?! Thanks for your help in advance!
When Inkscape asks
Where is X11?
I had to go to Applications -> Utilities -> X11
The reason you think it did not work is because the first time Inkscape opens, it takes up to a minute and a half. It just seems to sit there, doing nothing, but it will open for sure. Once it opens, close it completely via XQuartz, then re-open it and it will open in 2-3 seconds. Use this direct link for the latest version of XQuartz 2.7.11.
https://www.xquartz.org
Works just fine for Mavericks 10.9.5, no worries. If not, update to OS X 10.9.5 via AppStore.
Install the X11 2.7.4 from here. I had to restart after this install, but it worked like a charm. MATLAB took forever to open the first round, but it eventually did and now everything seems OK.
For the record, I'm running 10.9.1 on a 2009 MacbookPro. Had the same problem after I upgraded to Mavricks and could not install X11, the 2.7.5 Package.

using x11 emacs in mountain lion

I have been trying to use macport's installation by using sudo port install emacs +x11 on my laptop with mountain lion, but every time I open emacs in terminal, it opens in the terminal without any GUI. This also happens if I try to open emacs directly in an xquartz terminal session. Has anyone had any luck with installing the x11 version of emacs on mountain lion? And if so, how? Thank you!
Turns out apple cut the link between terminal and xquartz. If I open emacs in xterm, it will run just fine. I found this to be the case even when I was using terminal with an ssh server. Looks like apple's terminal isn't going to be all that helpful from here on out.
Edit; I'm not sure if it was an update to xQuartz, but the problem has been fixed. When I type in an x11 app into the normal terminal app, it will open xQuartz as normal.

Vim Command T on Mac not working

I've compiled vim73 manually on Mac OS X Lion using xcode and ruby1.9.3 on rvm. I've compiled the C extension for command-t. When I press leader+t the command-t is opening, it is showing some files, but when I type some chars it doesn't search.
What is the problem?
This isn't a direct answer but FWIW I had (prematurely I'm sure) given up on Command-T + Lion until I got into using the Janus MacVim distro which does sucessfully pull it down, build and integrate it.
I have the same behaviour on my Mac. It works as soon as I :cd into a different directory. For some reason it does not work under ~/

Imagemagick installation no good on Lion

I have a fresh installation of Lion. I need to install ImageMagick (IM) to use the "identify" command line tool to search for corrupt images in folders that have thousands of time lapse images.
I have installed IM from the Mac OS X Binary Release, word for word based on these directions.
I have Xcode 4.2 installed from the Mac App Store.
X11 appears to be installed default with Lion. X11 about shows: XQuartz 2.6.3 (xorg-server 1.10.3).
The problem is that IM's installation appears successful but every time I use the "identify" command it returns "identify: command not found".
I have searched and searched (within stack overflow, google, etc.) and found MANY MANY articles on both subjects (IM and detecting corrupt images), but I've found nothing that helps me out.
I have also tried installing MacPorts and that didn't work either. And it freaked me out as one of it's dependencies was downloaded from Facebook.net (WHAT?!). I did a fresh install of Lion after that happened.
Thanks for your time.
Installing ImageMagick with Homebrew worked for me:
brew install imagemagick

Plotting with Octave after most recent MAC OSX update

Hi I just recently downloaded the most recent snow leopard update. Then I tried to plot something using Octave which has been installed on my computer for months (and plotting has worked all that time) Even since I installed the update, and I try to plot using octave I get the following error:
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
Referenced from: /usr/X11R6/lib/libfontconfig.1.dylib
Reason: Incompatible library version: libfontconfig.1.dylib requires version 13.0.0 or later, but libfreetype.6.dylib provides version 10.0.0
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
Referenced from: /usr/X11R6/lib/libfontconfig.1.dylib
Reason: Incompatible library version: libfontconfig.1.dylib requires version 13.0.0 or later, but libfreetype.6.dylib provides version 10.0.0
/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 865 Trace/BPT trap GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.2.6" "$#"
/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 871 Trace/BPT trap GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.2.6" "$#"
error: you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function
I'm really not sure what to do. I'm way out of my league here.
The "note for MacOSX users" is no longer on the Octave homepage, and the workaround described in Marco's post didn't work for me either, but this did:
Open /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot in a text
editor. Use the editor search-and-replace feature to replace
"DYLD_LIBRARY_PATH" with "DYLD_FALLBACK_LIBRARY_PATH". There are four
instances that need to be replaced.
This is from the readme for the Octave MacOSX Binary. Note that it says it's for Lion users, but I'm running 10.6.8 and it worked for me.
I've recently build Octave and GNUplot on Lion using homebrew. Seems to work well. Here are some notes
Install Xcode from AppStore and HomeBrew (see Link)
Run 'brew install octave" and wait until graphicsmagick fails to compile
Run the command "brew install --use-clang --HEAD graphicsmagick". You might be asked to install Mercurial, just follow the instructions. You may also be asked to install fortran, so "brew install gfortran"
Run the command "brew install octave" again
Install Aquaterm
Now run "brew install gnuplot"
You now have the latest Octave installed. Just type octave from the terminal
To test the install run the following commands at the Octave command prompt
setenv("GNUTERM", "x11");
x = linspace(-10, 10, 100);
y = sin(x);
plot(x,y);
See the note for users of Mac OS X 10.6 on http://octave.sourceforge.net/. The changes solve the problem also in 10.5.8.
We updated freetype in OSX 10.6.5 and fontconfig, which links against freetype, wants this newer version. Gnuplot is failing to load because their developers are setting DYLD_LIBRARY_PATH which is forcing our libfontconfig to try using their libfreetype, which it cant.
This is a bug in Gnuplot.app ... developers should NEVER be setting DYLD_LIBRARY_PATH in shipping products!
I had the same problem and took me a while to find the "note for users of Mac OS X 10.6". I copy them here:
NOTES FOR SNOW LEOPARD USERS
1 - mkoctfile
Since OSX 10.6 the Apple shipped version of gcc builds by default 64bit binaries
As the libraries included with Octave.app version 3.2.3 are 32bit, you need to apply
the following patch in order for mkoctfile to work:
1.1) open the folder /Applications in the finder
1.2) right-click on Octave.app and select "show package contents"
1.3) navigate to /Applications/Octave.app/Contents/Resources/bin
1.4) right-click on the file "mkoctfile" and select "Open with -> Other ... -> TextEdit.app"
1.5) right after the line:
# along with this program; If not, see <http://www.gnu.org/licenses/>.
add the lines
CFLAGS="-m32 ${CFLAGS}"
FFLAGS="-m32 ${FFLAGS}"
CPPFLAGS="-m32 ${CPPFLAGS}"
CXXFLAGS="-m32 ${CXXFLAGS}"
LDFLAGS="-m32 ${LDFLAGS}"
and save.
2 - Gnuplot.app
An update to system libraries introduced with OSX 10.6.5 has broken the functionality
of the Gnuplot.app included with the Octave.app distribution, in order to use Gnuplot.app
on OSX 10.6.5 and later, you can use the fix described below:
2.1) open the folder /Applications in the finder
2.2) right-click on Gnuplot.app and select "show package contents"
2.3) navigate to /Applications/Gnuplot.app/Contents/Resources/bin
2.4) right-click on the file "gnuplot" and select "Open with -> Other ... -> TextEdit.app"
2.5) change the line:
DYLD_LIBRARY_PATH="${ROOT}/lib:${DYLD_LIBRARY_PATH}"
to
DYLD_LIBRARY_PATH="${ROOT}/lib"
and save.
NOTES FOR LEOPARD USERS
An update to system libraries introduced with OSX 10.5.8 has broken the functionality
of the Gnuplot.app included with the Octave.app distribution, in order to use Gnuplot.app
on OSX 10.5.8 and later, you can use the same fix described above for OSX 10.6.5.
I tried the above and it did not help. The source of the problem seems to be the version of gnuplot that comes with the Octave.app install.
I installed gnuplot directly with 'brew' and then I removed gnuplot from my Applications folder. Once that change was made, Octave was able to find the newer version of gnuplot that was compiled with the correct dependencies.
If you don't mind using MacPorts, you can install octave by the following command. And it will be a 64-bit version.
sudo port install octave-devel
I just want to share my experience regarding this issue.
I had similar problem today when I tried to use Octave/Gnuplot in Mac OS X (10.7.5, Lion) and none of the solutions above worked for me.
However I found another solution that did work, which is described in https://github.com/jyr/MNPP/issues/28. Basically, I did the following:
sudo cp /usr/X11/lib/libfreetype.* /Applications/Gnuplot.app/Contents/Resources/lib
Mountain Lions can also install Octave 3.4.0 with the dmg and throw in the older 4.2 gnuplot instead from the Maxima dmg. Easiest, but not the most recent version. (A classmate's idea which worked.)
Replacing the 4 instances of "DYLD_LIBRARY_PATH" with "DYLD_FALLBACK_LIBRARY_PATH" did not work for me on Mac OS X 10.9.
However, the second option given here:
http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/2011-04-21%20binary%20of%20Octave%203.4.0/
did work. i.e. using Gnuplot-4.2.6 that is bundled with Maxima DMG. Link below. http://sourceforge.net/projects/maxima/files/Maxima-MacOS/5.26.0-MacOSX/
I just copied Gnuplot.app into /Applications.

Resources