15 Nov 2012 @ 9:09 AM 

Building FFmpeg on CentOS:

1. Update and install build environment:

yum update
yum install make automake autoconf libtool gcc-c++

2. Install YASM:

cd /tmp
wget http://pkgs.repoforge.org/yasm/yasm-1.1.0-1.el5.rf.x86_64.rpm
rpm -ivh yasm-1.1.0-1.el6.rf.x86_64.rpm

3. Download all sources:

cd /tmp/
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz
wget http://downloads.sourceforge.net/lame/lame-3.99.4.tar.gz
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz
wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
wget http://download.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
wget http://zlib.net/zlib-1.2.7.tar.gz
wget http://ffmpeg.org/releases/ffmpeg-0.9.1.tar.bz2

P.S. If some sources are not available, try to download from our website here:

wget http://webnoob.info/downloads/yasm-1.1.0-1.el5.rf.x86_64.rpm
wget http://webnoob.info/downloads/faac-1.28.tar.gz
wget http://webnoob.info/downloads/faad2-2.7.tar.gz
wget http://webnoob.info/downloads/lame-3.99.4.tar.gz
wget http://webnoob.info/downloads/libogg-1.3.0.tar.gz
wget http://webnoob.info/downloads/libtheora-1.1.1.tar.gz
wget http://webnoob.info/downloads/libvorbis-1.3.3.tar.gz
wget http://webnoob.info/downloads/xvidcore-1.3.2.tar.gz
wget http://webnoob.info/downloads/last_stable_x264.tar.bz2
wget http://webnoob.info/downloads/zlib-1.2.7.tar.gz
wget http://webnoob.info/downloads/ffmpeg-0.9.1.tar.bz2

4. Unpack them all:

for i in *.tar.gz; do tar -xzvf "$i"; done
for i in *.tar.bz2; do tar -xjvf "$i"; done

5. Preparation:

vi /tmp/faac-1.28/common/mp4v2/mpeg4ip.h

we need to remove line 126, it looks like:

char *strcasestr(const char *haystack, const char *needle);

6. Install Dependencies:

cd /tmp/faac-1.28
./bootstrap
./configure
make
make install

cd /tmp/faad2-2.7
chmod a+x bootstrap
./bootstrap
./configure
make
make install

cd /tmp/xvidcore/build/generic
./configure
make
make install

cd /tmp/x264-snapshot-20120214-2245-stable/
./configure --enable-shared
make
make install

cd /tmp/lame-3.99.4
./configure
make
make install

cd /tmp/libogg-1.3.0
./configure
make
make install

echo '/usr/local/lib' > /etc/ld.so.conf.d/ffmpeg.conf
/sbin/ldconfig

cd /tmp/libtheora-1.1.1
./configure
make
make install

cd /tmp/libvorbis-1.3.3
./configure
make
make install

cd /tmp/zlib-1.2.6
./configure
make
make install

7. Install FFmpeg:

cd /tmp/ffmpeg-0.9.1
./configure --enable-version3 --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libfaac --enable-libtheora --enable-libxvid
make
make install
/sbin/ldconfig

8. Testing:

wget http://the-fascinator.googlecode.com/svn/the-fascinator/trunk/plugins/transformer/ffmpeg/src/test/resources/nasa.mp4
ffmpeg -y -i nasa.mp4 -b 192k -ab 64k -ar 44100 -ac 1 -s 400x224 -f flv output.flv

That’s all =)

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 03:54 PM

EmailPermalink
Tags
Tags: , ,
Categories: Uncategorized


 

Responses to this post » (None)

 

Sorry, but comments are closed. Check out another post and speak up!

Tags
Comment Meta:
RSS Feed for comments

 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 35
  • Comments » 0
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Need Help?



    No Child Pages.

Check your IP



    No Child Pages.