Compiling ffmpeg (svn version) and x264 (git version) decoding encoder ffmpeg in Ubuntu (Linux) is a tool for decoding and encoding multimedia videos and audio files, it is used to play and convert a large number of multimedia (mainly video and audio) files. X264 is a library file for encoding/decoding H264 video format. It is more efficient than xvid or other popular codecs and provides better image quality after conversion. Avidemux, VLCPlayer, MEncoder, and Ha
Compile ffmpeg (svn version) and x264 (git version) decoding encoder in Ubuntu (Linux)
Ffmpeg is a tool for decoding and encoding multimedia videos and audio files. It is used to play and convert a large number of multimedia (mainly video and audio) files. X264 is a library file for encoding/decoding H264 video format. It is more efficient than xvid or other popular codecs and provides better image quality after conversion. The x264 library files can be used in Avidemux, VLC Player, MEncoder, and Handbrake.
Although ffmpeg and x264 are stored in the Ubuntu software warehouse, the ffmpeg installed in the Uuntu software warehouse apt-get is an incomplete version, we still need to compile it on our own to support conversion of more video and audio formats (such as 3gp.
Obtain the corresponding dependent Software
1. First, check that the corresponding Universe and Multiverse software sources have been added to the software source to solve the dependency files of x264 and ffmpeg through the software warehouse.
2. next if you have installed x264, libx264-dev and ffmpeg, uninstall it first, open the X terminal or the console to run the following command:
Sudo apt-get purge ffmpeg x264 libx264-dev
In the following steps, we will install the dependent software and other software required for compilation.
For Ubuntu: Intrepid Ibex 8.10
Command:
Sudo apt-get update
Sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaad-dev libfaac-dev libmp3lame-dev libtheora-dev
For Ubuntu: Hard Heron 8.04:
Command:
Sudo apt-get update
Sudo apt-get install build-essential subversion git-core checkinstall texi2html libfaad-dev libfaac-dev liblame-dev libtheora-dev
Dependency packages used by Intrepid Ibex 8.10 and hard Heron 8.04:
Libsdl1.2-dev: required to run ffplay
Libfaad-dev libfaac-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore4-dev libschroedinger-dev libspeex-dev libgsm1-dev: some files from the ffmpeg development application, some of which are already included in the ffmpeg source code, if the system contains a version that is too low, the installation may fail (uncommon ).
3. Use the Ubuntu version of Hard Hat 8.04. Install yasm first (a compilation software, similar to gcc ). It can optimize the x264 code. Of course, even if you do not have yasm, you can add the-disable-asm parameter to compile the program. However, the running efficiency of x264 is slightly lower.
It seems that the Yasm version in the Ubuntu hard Heron 8.04 software warehouse is 0.5.0, while the compilation of the latest x264 version requires the yasm version at least 0.6.1, otherwise, the message "Minimum version is yasm-0.6.1" appears when you execute the compilation command. In this case, we can execute:
Command:
Cd ~ /
Wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.2.tar.gz
Tar xzvf yasm-0.7.2.tar.gz
Cd yasm-0.7.2
./Configure
Make
Sudo checkinstall
Download and compile the corresponding software from the bank