libxine-extracodecs will get you the most wide-spread codecs installed, but not all of them. MPlayer, a movie player program for Linux, has support for a big bunch of video and audio formats. Installing them in Ubuntu / Kubuntu should be as easy as
sudo aptitude install w32codecs but for some reason it says “No candidate version found for w32codecs”. So here’s how to install them manually:
- Go to the MPlayer Download page. Scroll down to the Binary Codec Packages section. From the table, select the download link corresponding to your architecture (x86 in my case) and the mirror closest to you. Click on the link to download the codec bundle.
- Unpack the
essential-XXXXXXXX.tar.bz2file you have downloaded and copy the contents to
/usr/lib/win32/(You may need to create the directory first)
Now MPlayer can play about anything on Earth, as long as it’s not DRM’ed.
Update 2009 June 3rd: On a more recent Ubuntu, it appears that the codecs need to be installed in
/usr/lib/codecs/ instead of
/usr/lib/win32/, and you might also need to
aptitude install the old