Created
August 25, 2015 22:14
-
-
Save zipizap/629d92ec649e95aaee17 to your computer and use it in GitHub Desktop.
How to compile ffmpeg with libfdk_aac in Ubuntu server 12.04 (does not work in other versions of ubuntu). See http://askubuntu.com/q/553688
This file contains 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 compile ffmpeg with libfdk_aac in Ubuntu server 12.04 (does not work in other versions of ubuntu). See http://askubuntu.com/q/553688 | |
## install dependencies | |
# sudo apt-get update | |
# sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libtheora-dev libtool libvorbis-dev pkg-config texi2html zlib1g-dev | |
# sudo apt-get install yasm | |
# sudo apt-get install libx264-dev | |
# sudo apt-get install unzip | |
# sudo apt-get install libmp3lame-dev | |
# sudo apt-get install libopus-dev | |
## As a normal user (does not need sudo) | |
# mkdir ~/ffmpeg_sources | |
# cd ~/ffmpeg_sources | |
# wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master | |
# unzip fdk-aac.zip | |
# cd mstorsjo-fdk-aac* | |
# autoreconf -fiv | |
# ./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
# make | |
# make install | |
# make distclean | |
# cd ~/ffmpeg_sources | |
# wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2 | |
# tar xjvf libvpx-v1.3.0.tar.bz2 | |
# cd libvpx-v1.3.0 | |
# PATH="$PATH:$HOME/bin" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples | |
# PATH="$PATH:$HOME/bin" make | |
# make install | |
# make clean | |
# cd ~/ffmpeg_sources | |
# wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | |
# tar xjvf ffmpeg-snapshot.tar.bz2 | |
# cd ffmpeg | |
# PATH="$PATH:$HOME/bin" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree | |
# PATH="$PATH:$HOME/bin" make | |
# make install | |
# make distclean | |
# hash -r | |
# echo "MANPATH_MAP $HOME/bin $HOME/ffmpeg_build/share/man" >> ~/.manpath | |
# . ~/.profile | |
### And now ~/bin/ffmpeg exists with libfdk_aac support! | |
# ffmpeg -i mp3_h264.mp4 -vcodec copy -acodec libfdk_aac videoUntouched_audioAac.mp4 | |
# (old method, without libfdk_aac (worse)) | |
# ffmpeg -i mp3_h264.mp4 -vcodec copy -acodec aac -strict experimental videoUntouched_audioAac.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment