Recently in the study of TS stream video preparation FFMPEG video format encoding and conversion
Compiling FFMPEG was smooth but integrating with Libx264 was tedious
It took me a long time to find it online
It is hereby sorted here
Operating system: CentOS 6.4 64-bit kernel 2.6.32
Compiling environment: GCC 4.4.7
FFMPEG version: 2.4
X264 version: X264 0.142.2479 DD79A61
YASM version: 1.3
Prepare documents:
Ffmpeg source
https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
x264
Git clone git://git.videolan.org/x264.git
yasm
http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
Compile and install procedure:
1. Install YASM
Compiling FFMPEG was smooth but integrating with Libx264 was tedious
It took me a long time to find it online
It is hereby sorted here
Operating system: CentOS 6.4 64-bit kernel 2.6.32
Compiling environment: GCC 4.4.7
FFMPEG version: 2.4
X264 version: X264 0.142.2479 DD79A61
YASM version: 1.3
Prepare documents:
Ffmpeg source
https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
x264
Git clone git://git.videolan.org/x264.git
yasm
http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
Compile and install procedure:
1. Install YASM
tar zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make
make install
yasm --version
2. Compile and install X264
cd x264
./configure --enable-shared --enable-pthread --enable-pic
make
make install
3. Compile FFMPEG
cd ffmpeg
./configure --enable-libx264 --enable-gpl --enable-shared --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-pic
make
make install
Install well at FFMPEG runtime if prompted
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
You will need to modify the file: /etc/ld.so.conf
Add a line at the end of the file:
/usr/local/lib
Then execute the command:
ldconfig
Rerun the ffmpeg – encoders | grep x264 will find successful installation
Read More:
- Vs2013 compiling ffmpeg
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- Linux CentOS installing protobuf
- Ffmpeg (libx264) compiling for IOS
- Centos7 offline installation of redis and PHP extension redis
- Installing GCC reduced version GCC 4.4.6 under Linux
- When NPM install, make: G + +: command not found will be prompted
- Solutions to the failure of importing Python 3.7 SSL module
- Vs2015 compiling ffmpeg source code
- Installing opencv and Linux Makefile:160 : recipe for target ‘all’ failed problem resolution
- Vs2017 compiles pcl1.8.1 with vtk8.0 and uses qt5.9.5
- Solution to “550 create directory operation failed” in FTP operation file
- Installing open CV under Linux system
- cenos Upgrade g++ gcc(cc1plus: error: unrecognized command line option “-std=c++11”)
- On curl: (2) failed initialization
- When Linux installs redis, it executes make install and reports an error: Make: * * [server. O] error 1 (solved)
- Error in ffmpeg decoding real-time stream “non existing PPS 0 referenced, decode”_ slice_ header error,no frame!”
- How to execute Makefile
- Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed
- Git solves the problem of failed: http request failed