PDA

View Full Version : x264 "daily builds" for linux?


gino25
9th January 2007, 22:47
Hello people.

I use Kubuntu 6.10 and with adept i found in repository x264. But adept installed a version 4 months old (september). How can i update x264 to latest builds?


Is there a repository with latest builds for ubuntu?

nm
10th January 2007, 08:39
It is very easy to build x264 by yourself on Linux whenever a new revision is available.

1. Install the necessary tools: sudo aptitude install svn build-essential

2. Checkout a local copy of the x264 Subversion repository:
svn co svn://svn.videolan.org/x264/trunk x264


When you want to get the latest changes to x264 and build the code, run these steps:

3. Update your local copy: cd x264; svn update.
If you have already built it previously, clean up: make clean.

4. Configure the build system (in the x264 directory): ./configure.
You may also want to specify some options here, see ./configure --help[i] for the available settings.
For example, you could use: ./configure --enable-gtk --enable-pthread --extra-cflags="-O3 -ffast-math -fomit-frame-pointer -funroll-loops -march=<your cpu> -mtune=<your cpu>" (install libgtk2.0-dev package to build the GTK gui)

5. Compile (in the x264 directory): [i]make

6. Optional: install x264 to /usr/local: sudo make install
Alternatively, you can use it directly from the build directory: by running x264/x264 (or cd x264; ./x264)

You can write an automatic script for steps 3-5 (and 6) simply by putting the commands to a text file, for example build-x264.sh (put "#!/bin/bash" to the first line, without the quotes), and by marking it executable: chmod a+x build-x264.sh. Then the whole x264 update process is done with one command: ./build-x264.sh.

Quikee
10th January 2007, 09:55
6. Optional: install x264 to /usr/local: sudo make install
Alternatively, you can use it directly from the build directory: by running x264/x264 (or cd x264; ./x264)


Optional you could use "checkinstall" (sudo apt-get install checkinstall) to create a deb file in this step (checkinstall will also automatically install the deb).

The advantage is that your x264 will be shown in adpet/synaptic and you can easily remove it there if you don't need it anymore. However you must manually edit the version of x264 so it doesn't conflict with the one in repository (usually the date as a version will do - 20070110 if you would build it today).

I compile cvs/svn mplayer, x264 and xine-lib.

gino25
12th January 2007, 14:22
thank you very much. I try it now!!!!!!!!!!

smok3
19th August 2009, 00:10
nm...

mocham
22nd August 2009, 11:03
-march=<your cpu> -mtune=<your cpu>

Just curious, does anyone that uses these optimizations see a significant difference in the binary's performance on modern dual or quad core CPUs?

sl1pkn07
23rd August 2009, 11:05
http://ppa.launchpad.net/freshmedia/ppa/ubuntu/pool/main/x/x264/