Changes between Version 28 and Version 29 of CompilationGuide/MacOSX


Ignore:
Timestamp:
Oct 19, 2014, 10:47:47 AM (5 years ago)
Author:
slhck
Comment:

update info about Homebrew, add example configuration command

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MacOSX

    v28 v29  
    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.
     3Compiling 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.
    44
    5 == Shortcut: Compile FFmpeg through Homebrew ==
     5== ffmpeg through Homebrew ==
    66
    7 If you want to use Homebrew for compiling, you can simply run:
     7[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:
     8
     9{{{
     10ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
     11}}}
     12
     13Follow the on-screen instructions. This will take a few minutes while it's installing the necessary developer tools for OS X. Then, run:
    814
    915{{{
     
    1117}}}
    1218
    13 to get the latest stable 1.x version. Call {{{brew install ffmpeg --devel}}} to install the latest 2.x version. These versions are packaged as Homebrew formulae and will take care of all the dependencies and the installation itself. If you don't know how to configure and compile a binary, you will find using Homebrew much easier. If instead you want to manually compile the latest Git version of FFmpeg, just continue with this guide.
     19to 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. If you want all the extras there are, run:
    1420
    15 You can run {{{brew info ffmpeg}}} to see additional configuration options, e.g. in order to enable {{{libfdk_aac}}} or {{{libvpx}}}.
     21{{{
     22brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass--with-libbluray --with-libcaca --with-libfrei0r --with-libquvi --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265
     23}}}
     24
     25If you don't know how to configure and compile a binary, you will find using Homebrew quite easy. To later upgrade your ffmpeg version, simply run:
     26
     27{{{
     28brew update && brew upgrade ffmpeg
     29}}}
     30
     31If instead you want to manually compile the latest Git version of FFmpeg, just continue with this guide.
     32
    1633
    1734== Compiling FFmpeg yourself ==
     
    2340=== Homebrew ===
    2441
    25 To get FFmpeg for OS X, you first have to install [http://brew.sh/ Homebrew]. If you don't want to use Homebrew, see the section below.
     42To get ffmpeg for OS X, you first have to install [http://brew.sh/ Homebrew]. If you don't want to use Homebrew, see the section below.
    2643
    2744{{{
    28 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
     45ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    2946}}}
    3047