Last active
October 25, 2022 20:14
-
-
Save mustafaturan/7053900 to your computer and use it in GitHub Desktop.
Installs latest ffmpeg on Centos 6
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
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
mkdir ~/ffmpeg_sources | |
cd ~/ffmpeg_sources | |
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" | |
make | |
make install | |
make distclean | |
. ~/.bash_profile | |
cd ~/ffmpeg_sources | |
git clone --depth 1 https://git.videolan.org/git/x264.git | |
cd x264 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static | |
make | |
make install | |
make distclean | |
cd ~/ffmpeg_sources | |
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git | |
cd fdk-aac | |
autoreconf -fiv | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
cd ~/ffmpeg_sources | |
curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz | |
tar xzvf lame-3.99.5.tar.gz | |
cd lame-3.99.5 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --disable-shared --enable-nasm | |
make | |
make install | |
make distclean | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz | |
tar xzvf opus-1.0.3.tar.gz | |
cd opus-1.0.3 | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz | |
tar xzvf libogg-1.3.1.tar.gz | |
cd libogg-1.3.1 | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz | |
tar xzvf libvorbis-1.3.3.tar.gz | |
cd libvorbis-1.3.3 | |
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
make distclean | |
cd ~/ffmpeg_sources | |
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx | |
cd libvpx | |
./configure --prefix="$HOME/ffmpeg_build" --disable-examples | |
make | |
make install | |
make clean | |
cd ~/ffmpeg_sources | |
curl -O http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz | |
tar xzvf libtheora-1.1.1.tar.gz | |
cd libtheora-1.1.1 | |
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-examples --disable-shared --disable-sdltest --disable-vorbistest | |
make | |
make install | |
make distclean | |
yum -y install freetype-devel speex-devel | |
cd ~/ffmpeg_sources | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" | |
export PKG_CONFIG_PATH | |
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libspeex --enable-libtheora | |
make | |
make install | |
make distclean | |
hash -r | |
. ~/.bash_profile | |
cd ~/ffmpeg_sources/ffmpeg/tools | |
make qt-faststart | |
cp qt-faststart /usr/bin | |
ldconfig | |
cd |
Hi,
I am getting this error
ERROR: libmp3lame >= 3.98.3 not found
I tried "&& require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame -lm" at the end of the config string.
Please help me.
regards
This is not available:
git clone --depth 1 git://git.videolan.org/x264
Use this:
git clone --depth 1 http://git.videolan.org/git/x264
Thanks a lot for the script.
I have the following error after running it:
ERROR: opus not found using pkg-config
Would really appreciate some help..
Please change "curl -O " to "wget " and "tar xzvf" to "tar -xvf"
libvpx enabled but no supported decoders found
centos 6 i386
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
can I ask if this will update ffmpeg to version 2.8 and higher? I have 2.5x and need to have at least 2.8.
Secondly, do I just paste the entire code above into Putty SSH and it will install? If not, is there any kind of 'idiots guide' for upgrading?
Kind regards