Skip to content

Instantly share code, notes, and snippets.

@folkevil
Forked from mustafaturan/latest-ffmpeg-centos6.sh
Created November 18, 2016 09:10
Show Gist options
  • Save folkevil/6e1f1537808d1069e1fc39afaf235c18 to your computer and use it in GitHub Desktop.
Save folkevil/6e1f1537808d1069e1fc39afaf235c18 to your computer and use it in GitHub Desktop.

Revisions

  1. Mustafa TURAN revised this gist Jun 5, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion latest-ffmpeg-centos6.sh
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ make install
    make distclean

    cd ~/ffmpeg_sources
    git clone --depth 1 http://git.chromium.org/webm/libvpx.git
    git clone --depth 1 https://chromium.googlesource.com/webm/libvpx
    cd libvpx
    ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
    make
  2. Mustafa TURAN revised this gist Jun 5, 2016. 1 changed file with 0 additions and 9 deletions.
    9 changes: 0 additions & 9 deletions latest-ffmpeg-centos6.sh
    Original file line number Diff line number Diff line change
    @@ -67,15 +67,6 @@ 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 http://git.chromium.org/webm/libvpx.git
    cd libvpx
  3. @mustafaturan mustafaturan revised this gist Oct 19, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion latest-ffmpeg-centos6.sh
    Original file line number Diff line number Diff line change
    @@ -109,6 +109,6 @@ hash -r

    cd ~/ffmpeg_sources/ffmpeg/tools
    make qt-faststart
    cp qt-faststart /usr/local/bin
    cp qt-faststart /usr/bin
    ldconfig
    cd
  4. @mustafaturan mustafaturan revised this gist Oct 19, 2013. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion latest-ffmpeg-centos6.sh
    Original file line number Diff line number Diff line change
    @@ -105,4 +105,10 @@ make
    make install
    make distclean
    hash -r
    . ~/.bash_profile
    . ~/.bash_profile

    cd ~/ffmpeg_sources/ffmpeg/tools
    make qt-faststart
    cp qt-faststart /usr/local/bin
    ldconfig
    cd
  5. @mustafaturan mustafaturan revised this gist Oct 19, 2013. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions latest-ffmpeg-centos6.sh
    Original file line number Diff line number Diff line change
    @@ -84,6 +84,15 @@ 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
  6. @mustafaturan mustafaturan created this gist Oct 19, 2013.
    99 changes: 99 additions & 0 deletions latest-ffmpeg-centos6.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,99 @@
    # 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 git://git.videolan.org/x264
    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
    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 http://git.chromium.org/webm/libvpx.git
    cd libvpx
    ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
    make
    make install
    make clean

    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