Changes between Version 32 and Version 33 of CompilationGuide/MacOSX


Ignore:
Timestamp:
Mar 1, 2016, 10:16:03 PM (3 years ago)
Author:
rogerdpack
Comment:

try to clarify the options, update the brew install

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MacOSX

    v32 v33  
    11[[PageOutline(1-100, Contents)]]
    22
    3 Compiling on Mac OS X is as easy as any other *nix machine, there are just a few caveats. The general procedure is {{{./configure <flags>; make && sudo make install}}}, but some use a different configuration scheme, or none at all.  You can also install the latest stable version of `ffmpeg` without the need to compile it yourself, which saves you a bit of time. Just follow this guide.
     3There are a few ways to get FFmpeg on OS X.
    44
    5 Alternatively, if you are unable to compile, you can simply [https://ffmpeg.org/download.html download a static build for OS X], but it may not contain the features you want.
     5One is to build it yourself.  Compiling on Mac OS X is as easy as any other *nix machine, there are just a few caveats. The general procedure is get the source, then {{{./configure <flags>; make && sudo make install}}}, though specific configure flags are possible.
     6
     7Another is to use some "build helper" tool, to install it for you.  For example, homebrew or macports, see the homebrew section in this document.
     8
     9Alternatively, if you are unable to compile, or do not want to install homebrew, you can simply [https://ffmpeg.org/download.html download a static build for OS X], but it may not contain the features you want.  Typically this involves unzipping an FFmpeg distribution file [like .zip file], then running it from within the newly extracted files/directories.
    610
    711== ffmpeg through Homebrew ==
    812
    9 [http://brew.sh/ Homebrew] is a command-line package manager, which is quite similar to `apt-get` on popular Linux distributions. In order to use it, you need to install `brew` first:
     13[http://brew.sh/ Homebrew] is a command-line package manager, which is quite similar to `apt-get` on popular Linux distributions. In order to use it, you need to install `brew` first, if you haven't already:
    1014
    1115{{{
    12 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
     16/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    1317}}}
    1418
    15 Follow the on-screen instructions. This will take a few minutes while it's installing the necessary developer tools for OS X. Then run:
     19Follow the on-screen instructions. This will take a few minutes while it's installing the necessary developer tools for OS X. After it success, next run:
    1620
    1721{{{
     
    1923}}}
    2024
    21 to get the latest stable version with minimal configuration options. These versions are packaged as Homebrew formulas and will take care of all the dependencies and the installation itself. You can run {{{brew info ffmpeg}}} to see additional configuration options, e.g. in order to enable {{{libfdk_aac}}} or {{{libvpx}}}, which is highly recommended. Example with some additional options:
     25to get the latest released version with minimal configuration (and library dependency) options. These versions are packaged as Homebrew formulas and will take care of all the dependencies and the installation itself. You can run {{{brew info ffmpeg}}} to see additional install options, e.g. in order to enable {{{libfdk_aac}}} or {{{libvpx}}}, which is highly recommended. Example with some additional recommended options:
    2226
    2327{{{