Installation of FFmpeg under Linux
The first thing to install a variety of decoders
1, lame
lame-3.99.5.tar.gz
url:http://sourceforge.net/project/showfiles.php?group_id=290&package_id=309
The installation method is as follows:
1 TAR-ZXVF lame-3.99.5.tar.gz 2 CD lame-3.99.5 3./configure--enable-shared 4 make 5 make install
2, Libogg
libogg-1.3.1.tar.gz
url:http://www.xiph.org/downloads/
The installation method is as follows:
1 Tar XF libogg-1.3.1.tar.gz2 cd libogg-1.3.13./configure4 make && make install
3, Libvorbis
libvorbis-1.3.3.tar.gz
Url:http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz
(Libvorbis depends on Libogg, so libogg must be installed prior to Libvorbis)
The installation method is as follows:
1 Tar XF libvorbis-1.3.3.tar.gz 2 cd libvorbis-1.3.33./configure 4 make 5 make install
4, XviD
xvidcore-1.3.2.tar.gz
Url:http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
The installation method is as follows:
1 Tar XF xvidcore-1.3.2.tar.gz 2 cd xvidcore-1.3.23./configure4 make && make install
5, x264
latest_x264.tar.bz2 (which contains the directory is x264-snapshot-20131023-2245)
Url:http://www.videolan.org/developers/x264.html
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
The installation method is as follows:
Install First: yasm,
Download Yasm http://yasm.tortall.net/Download.html
1 Tar XF yasm.tar.gz2 cd yasm3./configure4 make && make install
Latest installation methods are as follows:
1 Tar XF latest_x264.tar.bz22 cd latest_x2643./configure4 make && make install
6, Libdts
libdca-0.0.5.tar.bz2
Url:http://www.videolan.org/developers/libdca.html
Installation method
1./configure2 Make && make install
7, A52
a52dec-0.7.4.tar.gz (This library has not been updated since 2002)
Http://liba52.sourceforge.net/downloads.html
Installation method:
1./configure2 Make && make install
8, Faad2
faad2-2.7.tar.gz
Http://www.audiocoding.com/downloads.html
Installation method
1./configure2 Make && make install
9, FAAC
faac-1.28.tar.gz
Http://www.audiocoding.com/downloads.html
Installation method:
1./configure2 Make && make install
Note: An error will be made when installing make, the following processing is required:
Comment out the 126th line in the Faac-1.28/common/mp4v2/mpeg4ip.h.
Char *strcasestr (const char *haystack, const char *needle);
10, AMR-NB
amrnb-11.0.0.0.tar.bz2
http://ftp.penguin.cz/pub/users/utx/amr/(Download the latest version from here)
Installation method:
Install patches First:
1 yum-y Install PATCH2 tar XF amrnb-11.0.0.0.tar.bz2 3 cd amrnb-11.0.0.04./configure5 make && Mak E Install
11, AMR-WB
amrwb-7.0.0.1.tar.bz2
http://ftp.penguin.cz/pub/users/utx/amr/(Download the latest version from here)
Installation method:
1./configure2 Make && make install
12, the most critical step, the installation of FFmpeg
1./configure--prefix=/usr/local/ffmpeg2--enable-libmp3lame--enable-libvorbis--ENABLE-GPL--enable-version3-- Enable-nonfree--enable-pthreads--ENABLE-LIBFAAC--enable-libopencore-amrnb--ENABLE-LIBOPENCORE-AMRWB-- enable-libx264--enable-libxvid--enable-postproc--enable-ffserver--enable-ffplay2 make 3 make install
In the./configure when the error, suggesting that there is no LIBOPENCORE-AMRNB and LIBOPENCORE-AMRWB two libraries. I refer to [2] and install them using the following command:
sudo apt-get install Libopencore-amrnb-dev Libopencore-amrwb-dev
If you join--enable-shared when./configure, there is no problem compiling the installation. However, running the FFmpeg command will make an error:
Relocation Error:/usr/local/lib/libavfilter.so.3:symbol Sws_get_class, version libswscale_2 not defined in file Libswsc Ale.so.2 with link time reference;
At this point you can refer to [3], to the effect that the dynamic library with GStreamer conflict, to uninstall GStreamer. But if I uninstall the GStreamer my multimedia software is not much use. So I uninstalled the ffmpeg and recompiled it into a static library. After installation, run FFmpeg successfully, the output is as follows:
ffmpeg version 2.0.1 copyright (c) 2000-2013 the ffmpeg developers built on Oct 25 2013 17:40:51 with gcc 4.6 (ubuntu/ LINARO 4.6.3-1UBUNTU5) configuration: --prefix=/usr/local/ffmpeg2 --enable-libmp3lame --enable-libvorbis -- Enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libfaac --enable-libopencore-amrnb -- enable-libopencore-amrwb --enable-libx264 --enable-libxvid --enable-postproc -- enable-ffserver --enable-ffplay libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.100 / 55. 12.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 79.101 / 3. 79.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100hyper fast audio and video encoderusage: ffmpeg [ Options] [[infile options] -i infile]... {[outfile options] outfile} ...
This article is from the "Healer" blog, make sure to keep this source http://zlyang.blog.51cto.com/1196234/1709347
CentOS 6.5 Installation Deployment FFMPGE tile Environment