Archive for August, 2011

Installing libx264 and ffmpeg on Ubuntu 11.10 – 64 bits

August 23rd, 2011 7 comments

The main goal to compile and install libx264 and ffmpeg is try to make work vlc and ffmpeg at the same time.

First remove old installation

sudo apt-get remove ffmpeg x264 libx264-dev

Install all the packages you will need

sudo apt-get update
sudo apt-get install build-essential checkinstall git libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev

Install X264

Install x264 packages getting the source code using git
Install git with:

sudo apt-get install git
git clone git://
cd x264/
./configure --enable-shared
sudo make install

Install ffmpeg

Install ffmpeg packages getting the source code using git

git clone git://
cd ffmpeg/
./configure --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-version3 --enable-nonfree --enable-avfilter --enable-pthreads
sudo make install

Configure global variables:

export LD_LIBRARY_PATH=/usr/local/lib
sudo gedit /etc/

//add this –> /usr/local/lib at the end of the file

sudo ldconfig
hash x264 ffmpeg ffplay ffprobe or
hash x264 ffmpeg ffprobe</p>
Categories: ffmpeg, ubuntu Tags: , , ,

Kivy – Label with background

August 3rd, 2011 2 comments

Kivy is a framework for develop multitouch applications, I started to use pyMT, but pyMT evolved into Kivy.

Adding a background to a label is not possible using the common functions in documentation.

A possible solution by @Mathieu Virbel could be:

class MyLabelWithBackground(Label):
And put in a kv that you load somewhere:
      rgb: 1, 0, 0 # your color here
      pos: self.pos
      size: self.size
Categories: kivy, multitouch, python Tags: , , ,