Changes between Version 32 and Version 33 of CompilationGuide/MacOSX
- Timestamp:
- Mar 1, 2016, 8:16:03 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/MacOSX
v32 v33 1 1 [[PageOutline(1-100, Contents)]] 2 2 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.3 There are a few ways to get FFmpeg on OS X. 4 4 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. 5 One 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 7 Another 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 9 Alternatively, 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. 6 10 7 11 == ffmpeg through Homebrew == 8 12 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: 10 14 11 15 {{{ 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)" 13 17 }}} 14 18 15 Follow the on-screen instructions. This will take a few minutes while it's installing the necessary developer tools for OS X. Thenrun:19 Follow 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: 16 20 17 21 {{{ … … 19 23 }}} 20 24 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 additionaloptions:25 to 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: 22 26 23 27 {{{
