Created
March 14, 2015 12:58
-
-
Save mrah/217cd8135eb6bac64aa3 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 ffmpeg installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # How to Build FFmpeg on Ubuntu | |
| There is an [official | |
| guide](https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu) out there, but it | |
| ignores the fact that it's possible to use pre-build packages for a lot of the | |
| dependent libraries (rather than compiling them). This set of instructions | |
| aims to fix that. | |
| ## Procedure | |
| ```bash | |
| # ensure "non-free" packages are available | |
| vi /etc/apt/sources.list # uncomment "multiverse" URLs | |
| apt-get update | |
| # install build / compilation tools | |
| apt-get install make | |
| apt-get install yasm | |
| # install fpm packaging tool | |
| apt-get install ruby-dev | |
| gem install fpm | |
| # install codecs / libraries | |
| apt-get install libx264-dev | |
| apt-get install libfdk-aac-dev | |
| apt-get install libfaac-dev | |
| apt-get install libspeex-dev | |
| apt-get install libfreetype6-dev | |
| # download and build ffmpeg source | |
| cd $HOME | |
| mkdir $HOME/ffmpeg_build | |
| wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | |
| tar xjvf ffmpeg-snapshot.tar.bz2 | |
| cd $HOME/ffmpeg | |
| ./configure \ | |
| --prefix="$HOME/ffmpeg_build" \ | |
| --enable-gpl \ | |
| --enable-libfdk-aac \ | |
| --enable-libfaac \ | |
| --enable-libfreetype \ | |
| --enable-libspeex \ | |
| --enable-libx264 \ | |
| --enable-nonfree | |
| make && make install | |
| make it into a .deb package | |
| fpm -s dir -t deb -n ffmpeg -v 2.3-git \ | |
| -d x264 \ | |
| -d libfdk-aac0 \ | |
| -d libfaac0 \ | |
| -d libspeex1 \ | |
| -d libfreetype6 \ | |
| $HOME/ffmpeg_build/=/usr | |
| ``` | |
| # run ffmpeg | |
| ./ffmpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment