================================================== ====
Howto: Compile the svn mplayer against the latest x264
================================================== ====
A little bit extra for this svn mplayer guide if anyone is interested? If you wish to compile mplayer against the very latest release of x264 to optimise encoding you will need to follow these steps before compiling the svn mplayer:
First download a few utilities that may or may not already be on your system:
Code:
$ sudo apt-get install build-essential xmlto git-core gpac libgpac-dev libgpac0.4.4
Next download and compile the assembler required for optimal x264 compilation. I could not get x264 to recognise the repository offerings in any shape or form so I suggest that you compile your own as I did:
Code:
$ cd $HOME
$ wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
$ tar xvf yasm-0.7.0.tar.gz
$ cd yasm-0.7.0
$ make
$ sudo make install
$ make clean
Next to download the x264 source code from the videolan git repository, the svn repository now being only a memory. First uninstall the repository x264 dev file that was used previously when compiling the svn mplayer and then download, compile and install the x264 source code:
Code:
$ cd $HOME
$ sudo apt-get remove libx264-dev
$ git clone git://git.videolan.org/x264.git
$ cd x264
$ ./configure --enable-shared --enable-pthread --enable-mp4-output
$ make
$ sudo make install
$ make clean
And finally compile the svn mplayer as before and the new x264 libraries should be picked up automagically. How easy is that! I would suggest the following steps as well so that when you wish to update x264 it can be done very simply. First set up an alias:
Code:
$ git config --global alias.up "pull --rebase"
and then you can update from the x264 directory as follows:
Further details about how to manipulate the videolan git repository can be found at: http://wiki.videolan.org/Git
Don't forget that x264 can be used as standalone program as well. Simply run x264 --help to see the options available. And remember: Have Fun!
Andrew
Bookmarks