Environment:Centos6.2 _ 64
1Download source code package
Wget ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2
Decompress:Tar jxvf x264-snapshot-20120718-2245-stable.tar.bz2
Wget http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz
Decompress:Tar zxvf ffmpeg-0.11.1.tar.gz
2, InstallationX264
2.1Install dependency packages
MissingYasm
Installation:Yum install yasm-y
2.2InstallX264
./Configure -- prefix =/usr -- enable-shared & make install
Reload the Configuration:Ldconfig
3, InstallationFFmpeg
FfplayMust depend onSDLLibrary
Yum install SDL-y
Installation:
./Configure -- enable-libx264 -- enable-GPL & make install
Attachment (automatic installation script ):
#! /Bin/Bash Echo " Install yasm... " Yum Install Yasm SDL * GTK + *- Y Echo " Install libx264... " Wget FTP : // Ftp.videolan.org/pub/x#/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2 Tar Jxvf x264-snapshot- 20120718 - 2245 -Stable. Tar . Bz2cd x264 -Snapshot- 20120718 - 2245 - Stable. /Configure -- enable-shared && Make && Make Install Ldconfig Echo " Install FFMPEG... " CD .. Wget HTTP: // Ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz Tar Zxvf FFMPEG- 0.11 . 1 . Tar . Gzcd FFMPEG - 0.11 .1 . /Configure -- enable-libx264 -- enable-GPL && Make && Make Install