Skip to content

Instantly share code, notes, and snippets.

@yagince
Created June 17, 2014 00:56
Show Gist options
  • Select an option

  • Save yagince/d92567c6003ad816e73a to your computer and use it in GitHub Desktop.

Select an option

Save yagince/d92567c6003ad816e73a to your computer and use it in GitHub Desktop.

Install

ref

http://konboi.hatenablog.com/entry/2013/07/15/155232

Dependencies

sudo yum install -y SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel
sudo yum install -y freetype-devel giflib imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel
sudo yum install -y libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel
sudo yum install -y id3tag-devel libogg libvorbis vorbis-tools mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel xvidcore xvidcore-devel zlib-devel
sudo yum install -y amrnb-devel amrwb-devel libtheora theora-tools
sudo yum install -y glibc gcc gcc-c++ autoconf automake libtool make git-core
sudo yum install -y ncurses-devel nasm libvpx* opencore-amr-devel
sudo yum install -y yasm --enablerepo=epel nasm

Codecs

wget http://www8.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
bunzip2 all-20110131.tar.bz2; tar xf all-20110131.tar

sudo mkdir /usr/local/lib/codecs/
sudo mkdir /usr/local/lib64/codecs/
sudo cp all-20110131/* /usr/local/lib/codecs/
sudo cp all-20110131/* /usr/local/lib64/codecs/
sudo chmod -R 755 /usr/local/lib/codecs/
sudo chmod -R 755 /usr/local/lib64/codecs/

LibOgg

wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
tar xf libogg-1.3.2.tar.gz
cd libogg-1.3.2
./configureh
make
sudo make install

LibVorbis

wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
tar xf libvorbis-1.3.4.tar.gz
cd libvorbis-1.3.4
./configure
make
sudo make install

Libtheora

wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
tar xf libtheora-1.1.1.tar.gz
cd libtheora-1.1.1
./configure
make
sudo make install

Libvpx

git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --enable-shared --extra-cflags=-fPIC
make
sudo make install

Aacenc

wget http://downloads.sourceforge.net/opencore-amr/vo-aacenc-0.1.3.tar.gz
tar xf vo-aacenc-0.1.3.tar.gz
cd vo-aacenc-0.1.3
./configure --enable-shared
make
sudo make install

X264

git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared --extra-cflags=-fPIC --extra-asflags=-D__PIC__
make
sudo make install

libfdk_aac

git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
autoreconf -fiv
./configure
make
sudo make install

LAME MP3 Encoder

wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar xf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --enable-nasm --enable-efence --enable-decode-layer1 --enable-mp3x --enable-mp3rtp
./configure --disable-shared --enable-nasm
make
sudo make install

LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/usr/local/lib/
sudo sh -c "echo /usr/local/lib > /etc/ld.so.conf.d/custom-libs.conf"
sudo ldconfig

FFmpeg

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
git checkout n2.2.3
./configure \
--enable-shared \
--enable-libx264 \
--enable-gpl \
--enable-nonfree \
--enable-libvpx \
--enable-libfdk-aac \
--enable-libtheora \
--enable-libvorbis \
--enable-libmp3lame
make
sudo make install

make時にめっちゃ警告出る

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment