For some reason you need to come again, start with my fedora. Everything when you're ready to download it. x264 is mainly for coding purposes. Decoder Libavcodec basically support the
preparatory work:
Yum Install yasm//installation yasm has enabled x264 to use--ENABLE-ASM options to optimize x86 and arm compilation Yum install gcc//install the basic compiled packages so that the Yum will automatically help you put those libstdc ... Wait a whole bunch of them. Yum Install FreeType//mplayer Ass/ssa support is required FreeType./AUTOGEN.SH-SYSCONFDIR=/ETC--PREFIX=/USR Share/man//Installation fontconfig, I install from the source code, you need to pay attention to if there is an error said to find something, the Qing consciously install the corresponding-devel package
Start Compilation:
Compile x264./configure--enable-shared--enable-asm--enable-mp4-output--enable-lavf-input--enable-pthread// Parameters can actually be done without these, but mainly to express the accuracy of this writing. --enable-shared the. so file. Compile FAAC and Faad, as long as direct make is good//also in order to compile Libogg libvorbis libtheora xvid
Note: For your own compilation, you may also need to compile the mplayer of each encoder in the following C and H file copy to the corresponding directory, otherwise it will be an error
The next step is to compile the MPlayer:
./configure--ENABLE-FAAC--enable-faad--enable-fontconfig--diasble-inet6--enable-xvid- Enable-theora//Description: Generally as long as this method of compiling is enough to use. If you really need to, you can add--enable-live and--ENABLE-QTX//The former support streaming media, the latter is supported QuickTime media. To enable live must go to download decoder pack something called live555. Make//Machine broken words should be made up for a long time, after the preparation made install
Subsequent:
If you want to compile your own smplayer, refer to this yum install Qt-devel//This will automatically pack a lot of devel. Yum Install gcc-c++//installation g++ make Prefix=/opt/media/smplayer Qmake=qmake-qt4//smplayer only depends on QT4, Here Qmake specifies that the qmake to be compiled is QT4 rather than qt3 to avoid errors make Prefix=/opt/media/smplayer Install//installation
======================================================================
Update Supplement :
About additional encoders:
In general, MPlayer can play all kinds of coding, we don't need to attach any codec, but we need to attach some encoders in order to implement some coding requirements in some formats. However, because the online article is a mess, it is easy to mislead us, here found a relatively good beginner's document, a certain degree of explanation. is wonderful. Divx:mplayer can already encode DivX, so no mp3lame is needed: The system used to encode mp3,64 bits can be compiled mp3lame with--libdir=/usr/lib64
About the parameters of the./configure
Many people like to add the Enable parameter. However, for MPlayer compilation, once you enable a feature, configure is considered to support the compilation of this feature. This is tantamount to forcing a function to compile, but once you open the function of the code does not, it will be a tragic error. At the same time, if you must compile this way, at least the corresponding Devel package should be installed.
About the occasional compile error:
Perhaps you have never met, I have encountered a problem here, MPlayer in the compilation process in a certain part of the dead loop. As it turns out, the time to modify a file referenced is in the future. So that's the problem.
Another common problem is that undefined reference to occur during compilation, which is obviously due to incorrect referencing of files. But it's really disgusting to actually fix it. The more exquisite repair method is to modify the makefile file, but I do not understand, so there is a more embarrassing way, is the lack of documents baked in the past ....