CentOS 7 Compilation FFMpeg Integration H264 H265
I. Download related resources
- Go to the FFmpeg official website to download the version of FFMpeg you need:
https://ffmpeg.org/download.html - x264 official download page:
https://www.videolan.org/developers/x264.html
If you download the latest version, you can get it directly from the following address:
ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2 - x265 official download page:
https://bitbucket.org/multicoreware/x265/downloads/
II. Compiling x264
- Unzip and enter the x264 directory
- Configuration:
./configure
- Compile and install:
make -j4
make install
III. Compiling x265
- Unzip and go to the x265 source directory. The sample code is as follows:
cd x265_3.1.1/source/
- Configuration:
cmake CMakeLists.txt
- Compile and install:
make -j4
make install
IV. Compiling FFMpeg
- Unzip and enter the FFMpeg directory
- Configuration:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure --enable-libx264 --enable-libx265 --disable-w32threads --disable-debug --enable-pthreads
Other more configuration options reference help
./configure -h
- Compile and install:
make -j4
make install