Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X Mountain Lion (10.8)?

I have Xcode installed as well as the CLI for Xcode (gcc etc).

I have a version of FFmpeg currently installed, but somehow I get a segmentation error on libx264 as well as the libvpx (I can't convert to MP4 and WebM).

All I want to do is batch convert video files to HTML5 compatible videos. All my source videos consist of .mov .mp4 and .wmv files. .ogv works fine by the way.

So the real question:

  1. How to uninstall everything of FFmpeg on my Mac now
  2. Reinstall a FFmpeg version that can convert to .mp4, .webm, and .ogv

I also tried the precompiled version of Miro video converter but somehow that doesn't work either.

share|improve this question

migrated from stackoverflow.com Jul 26 '13 at 13:48

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 10 down vote accepted

Static Builds

The FFmpeg project, on the download page, offers links to static builds for ffmpeg, which you can just download, extract, and use in a terminal.

At the moment, these are available:

Static builds cannot contain every possible encoder, mostly due to licensing issues.


Building through Homebrew

Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew:

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

Then install FFmpeg through the ffmpeg formula:

brew install ffmpeg

This will download a lot of dependencies such as x264, LAME, FAAC, et cetera, but after that you should be good to go. You can also brew install ffmpeg --HEAD to get the absolute latest version.

For additional options, check the output of brew info ffmpeg. You can, for example, add the following options, which are normally disabled:

--with-fdk-aac          Enables the Fraunhofer FDK AAC library
--with-ffplay           Enables FFplay media player
--with-freetype         Builds with freetype support
--with-frei0r           Builds with frei0r support
--with-libass           Enables ASS/SSA subtitle format
--with-libcaca          Builds with libcaca support
--with-libvo-aacenc     Enables VisualOn AAC encoder
--with-libvorbis        Builds with libvorbis support
--with-libvpx           Builds with libvpx support
--with-opencore-amr     Builds with opencore-amr support
--with-openjpeg         Enables JPEG 2000 image format
--with-openssl          Enables SSL support
--with-opus             Builds with opus support
--with-rtmpdump         Enables RTMP protocol
--with-schroedinger     Enables Dirac video format
--with-speex            Builds with speex support
--with-theora           Builds with theora support

Building Yourself

You can of course build FFmpeg tools yourself, following the OS X compilation guide. This guide will always be up to date, and by manually compiling you may be able to tweak a few parameters.


To uninstall whatever version of FFmpeg you installed we'd need to know how you've installed it in the first place. Since Homebrew will install to /usr/local/Cellar, and symlink to /usr/local/bin/ffmpeg, it probably won't cause any problems with other libraries. However, check the make install scripts of the versions you (supposedly) built yourself and see where they placed FFmpeg. Then just delete them from there — it won't interfere with Homebrew.

The segmentation fault could be due to improper linking between the x264 or libvpx libraries. Since Homebrew will take care of this, you shouldn't run into any issues.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.