System Information
[Root@lookback ~]# getconf Long_bit
64
[Root@lookback ~]# Cat/etc/redhat-release
CentOS Release 6.7 (Final)
Yum source information, here is no longer said Epel and Rpmforge source installation
[Root@lookback ~]# Yum Repolist
Loaded plugins: Fastestmirror
Loading mirror speeds from cached hostfile
* Base:mirror.us.leaseweb.net
* Extras:mirror.us.leaseweb.net
* Updates:mirror.us.leaseweb.net
Warehouse Identification Warehouse Name State
Base CentOS-6-Base 6,575
Epel Extra Packages for Enterprise Linux 6-x86_64 11,766
Extras CentOS-6-Extras 35
Rpmforge RHEL 6-rpmforge.net-dag 4,718
Updates CentOS-6-Updates 298
repolist:23,392
[Root@lookback ~]#
Clean up some packages that are already on the system
Yum Remove libvpx libogg libvorbis libtheora libx264 x264 ffmpeg yasm-y
necessary environment for updating system and installing compilation
Yum Clean all && yum makecache && Yum update-y
Yum install gcc gcc-c++ automake autoconf libtool git subversion nasm
Compile and install XviD
wget http://downloads.xvid.org/downloads/xvidcore-1.3.4.tar.gz
Tar XF xvidcore-1.3.4.tar.gz
CD Xvidcore/build/generic
./configure
Make && make install
Ldconfig
Cd.. /.. /.. /
Compile and install lame
wget http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz
Tar XF lame-3.99.5.tar.gz
CD lame-3.99.5/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Compile and install audiocoding
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
Tar XF faac-1.28.tar.gz
CD faac-1.28/
Dos2unix Bootstrap &&/bootstrap
Dos2unix Configure &&/configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig && CD.
Linux CentOS 6.7 x64 compile installation FFmpeg
If the error in the previous figure appears at compile time, please comment on the line recompilation of the error message, as follows
[Root@lookback ~/faac-1.28]# sed-i ' 126s@^@//@ ' common/mp4v2/mpeg4ip.h
[Root@lookback ~/faac-1.28]# make clean && make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && m Ake Install
Ldconfig && CD.
Compile and install Opencore-amr
wget http://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-0.1.4.tar.gz
Tar XF fdk-aac-0.1.4.tar.gz
CD fdk-aac-0.1.4/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Cd..
Compile and install 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/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Cd..
Compile and install Libvorbis
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz
Tar XF libvorbis-1.3.5.tar.gz
CD libvorbis-1.3.5/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Cd..
Compile and install Libtheora
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
Tar XF libtheora-1.1.1.tar.bz2
CD LIBTHEORA-1.1.1/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Cd..
Compile and install Aacenc
wget http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/vo-aacenc-0.1.3.tar.gz
Tar XF vo-aacenc-0.1.3.tar.gz
CD vo-aacenc-0.1.3/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Cd..
Compile and install Yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
Tar XF yasm-1.3.0.tar.gz
CD yasm-1.3.0/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Cd..
Compile and install LIBVPX
git clone https://chromium.googlesource.com/webm/libvpx.git
CD libvpx/
./configure
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Cd..
Configure Lib
Export ld_library_path=/usr/local/lib/
Echo/usr/local/lib >>/etc/ld.so.conf.d/custom-libs.conf
Ldconfig
Compile and install x264
git clone git://git.videolan.org/x264.git
CD x264/
./configure--enable-static
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Ldconfig
Cd..
Compile and install FFmpeg
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
CD FFmpeg
Pkg_config_path= "/usr/local/lib/pkgconfig"
Export Pkg_config_path
./configure--prefix= "/usr/local/ffmpeg_build"--extra-cflags= "-i/usr/local/ffmpeg_build/include"--extra-ldflags = "-l/usr/local/ffmpeg_build/lib"--bindir= "/usr/local/bin"--EXTRA-LIBS=-LDL--enable-version3-- Enable-libopencore-amrnb--ENABLE-LIBOPENCORE-AMRWB--enable-libvpx--ENABLE-LIBFAAC--enable-libmp3lame-- Enable-libtheora--enable-libvorbis--enable-libx264--enable-libvo-aacenc--enable-libxvid--disable-ffplay-- ENABLE-GPL--enable-postproc--enable-nonfree--enable-avfilter--enable-pthreads
echo $?
Make-j ' awk '/processor/{i++}end{print i} '/proc/cpuinfo ' && make install
Cd..
Verifying installation
[Root@lookback ~]# which ffmpeg
/usr/local/bin/ffmpeg
[Root@lookback ~]# FFmpeg
FFmpeg version N-75247-g1d2beb6 Copyright (c) 2000-2015 the FFmpeg developers
Built with GCC 4.4.7 (gcc) 20120313 (Red Hat 4.4.7-16)
Configuration:--prefix=/usr/local/ffmpeg_build--extra-cflags=-i/usr/local/ffmpeg_build/include--extra-ldflags= -l/usr/local/ffmpeg_build/lib--bindir=/usr/local/bin--EXTRA-LIBS=-LDL--enable-version3-- Enable-libopencore-amrnb--ENABLE-LIBOPENCORE-AMRWB--enable-libvpx--ENABLE-LIBFAAC--enable-libmp3lame-- Enable-libtheora--enable-libvorbis--enable-libx264--enable-libvo-aacenc--enable-libxvid--disable-ffplay-- ENABLE-GPL--enable-postproc--enable-nonfree--enable-avfilter--enable-pthreads
Libavutil 55. 2.100/55. 2.100
Libavcodec 57. 1.100/57. 1.100
Libavformat 57. 0.100/57. 0.100
Libavdevice 57. 0.100/57. 0.100
Libavfilter 6. 1.100/6. 1.100
Libswscale 4. 0.100/4. 0.100
Libswresample 2. 0.100/2. 0.100
Libpostproc 54. 0.100/54. 0.100
Hyper fast Audio and Video encoder
usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...
Use-h to get all help or, even better, run ' mans ffmpeg '