Tag Archives: ffmpeg

super easy installing ffmpeg, ffmpeg-php, lame, libogg, libvorbis, mplayer, mencoder and flvtool2 in Debian 6

There are new comer Linux users that still think that installing ffmpeg, mencoder and flvtool2 is hard to do in Linux. I can understand this because not many tutorial site tell them how to do it easily. If you do not need “bleeding-edge” features of the latest ffmpeg, ffmpeg-php, mencoder, mplayer and flvtool2, you can use this tip I wrote. You need additional Debian repository to do this tip.

Add debian-multimedia repository in your /etc/apt/sources.list (edit this file using your favorite text editor such as vim or nano)

#debian multimedia
deb http://ftp.uni-kl.de/debian-multimedia/ stable main
deb-src http://ftp.uni-kl.de/debian-multimedia/ stable main

You can choose the nearest debian-multimedia repository server here: http://debian-multimedia.org/debian-m.php. Choose the one that near your server, at least in the same continent.

After adding to sources.list, do some:

apt-get update
apt-get install debian-multimedia-keyring
apt-get update&&apt-get upgrade

then, to install ffmpeg, mencoder, mplayer and flvtool2 in Debian Squeeze, do some:

apt-get install ffmpeg mplayer mencoder flvtool2

you’re done! It should be less than 5 minutes for a fast server.
apt-get will handle the dependency (such as libmp3lame, libogg, libvorbis) for you! No meddling with source code, no need to compile by yourself, no dependency headache, no libraries conflict, just working environment with some simple steps!

For ffmpeg-php there is additional repository: dotdeb repository. Read the instruction on how to add dotdeb repository in your current Debian 6 /etc/apt/sources.list
After adding dotdeb repository, you can simply install ffmpeg-php by:

apt-get update&&apt-get upgrade
apt-get install php5-ffmpeg
service apache2 restart    # restart apache2 to make sure ffmpeg-php module is loaded

That easy!

Installing more updated version of ffmpeg on Debian 5 (Lenny)‏

Problem: 
my ffmpeg chain-of-command used in my mp3 to Youtube uploader didn’t work with some error. Something like this:

error, non monotone timestamps 1 >= 0

I’m trying to ‘place’ the site on a Debian 5 (Lenny) server. I’m using ffmpeg from Debian 5 repository (with no additional repo added).
Cause:
the ffmpeg version installed is ‘too old‘, it has bugs that casing the conversion fail.

Solution: 
get the most updated version of ffmpeg for Debian 5 (Lenny)
You need to add Debian-multimedia repository into your /etc/apt/sources.list

dpkg -i debian-multimedia-keyring_2010.12.26_all.deb
deb http://www.debian-multimedia.org stable main non-free
  • update your package list and upgrade old packages
apt-get update && apt-get upgrade
  • reinstall ffmpeg:
apt-get install ffmpeg

done!