views:

43

answers:

2

Hi,

I need to execute FFMPEG with some options that are not included when I install using apt-get, so I need to re-compile it. What is the best/easiest way to do it?

I'm using a Ubuntu 8.04 Server. The option I need to add is --enable libspeex1.

Thanks in advance.

+1  A: 

You could get the source package from ubuntu repository:

mkdir ~/ffmpeg 
cd ~/ffmpeg
apt-get source ffmpeg

Install packages required for compiling this package:

sudo apt-get build-dep ffmpeg

Modify the configure flags on your own:

cd */
vi debian/confflags

Then compile the modified package with the command:

dpkg-buildpackage -us -uc

Now you should have a .deb package, that you can install with

sudo gdebi ffmpeg*.deb
enzotib
A: 

I found this script: http://www.ffmpeginstaller.com/ that takes care of everything. I just have to download it and run

sudo ./install

It installs all dependencies and the libraries are the latest available.

fast-dev
forgot to mention, there is a file where the flags are declared. I just needed to add --enable-libspeex to it and it and run sudo ./install
fast-dev