Install audio and video codecs in ubuntu

I already did a piece on medibuntu here, but in this post I’ll explain how to install the audio and video codecs for ubuntu.

For Ubuntu 9.04 “Jaunty Jackalope”:

Open up a terminal (applications -> accessories -> terminal) and copy/paste this code:

sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add – && sudo apt-get update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2

(if you use 64bit, replace w32codecs with w64codecs)

For Ubuntu 8.04 “Hardy Heron”:

Open up a terminal (applications -> accessories -> terminal) and copy/paste this code:

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add – && sudo apt-get update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2

(if you use 64bit, replace w32codecs with w64codecs)

For Ubuntu 8.10 “Intrepid Ibex”:

sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add – && sudo apt-get update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2

(if you use 64bit, replace w32codecs with w64codecs)

————–

Install a different media player (optional)

The default media player (totem) is good, but I like vlc media player better, especially for watching a dvd.

In a terminal

sudo apt-get install vlc

If you are looking for a better audio player, I suggest either exaile or bmpx.

You now have 99% of the codecs in the world installed on your system.

Looking for real player? click me.

About these ads
    • riley
    • June 24th, 2008

    Very helpful, thanks :)

  1. ThanX U 4 The Help

    • Satish
    • June 30th, 2008

    I get this when message at every step.
    E: Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    What does it mean.
    Please clarify.

  2. This most likely means you have another package manager running or still open (synaptic, add remove, update manager, …).

    Close it and the error will disappear.

    • FrankoOMundO
    • July 1st, 2008

    Thanks so much, This was Extremely helpful.
    Peace Y

    • talal
    • July 8th, 2008

    great help thanks

    • Andy B
    • August 21st, 2008

    Thanks for the guidance. Unfortunately I still can’t get audio with the video. I’ve loaded VLC via Vine and this is the only way I cam currently play a video and hear the soundtrack. Any further suggestions?

    Andy

  3. No, sorry.

    • Beth1957
    • November 19th, 2008

    Well, that worked beautifully for me! Thanks :)

    • Strider22
    • January 1st, 2009

    At the end of step 1, it asks if I want to install x-ttcidfont-conf. Do I? I use the Gnome desktop and never directly go into X.
    ————message——————
    Msttcorefonts uses defoma Msttcorefonts uses the DEbian FOnt MAnager (defoma). If you wish to use the fonts provided by this package under the X Window System, you must configure it to use defoma fonts.

    The easiest way to do so is to use the x-ttcidfont-conf package. For more information, install the x-ttcidfont-conf package and consult its documentation under /usr/share/doc/x-ttcidfont-conf.

    For uses of msttcorefonts not related to the X Window System (e.g. printing) this is not required.

    • sri
    • January 7th, 2009

    I followed the instructions but i get a screen which says package configuration (some sort of license agreement and terms).

    How can i get past the screen and how i can make sure that the codecs are installed?

    Please help as i am new to ubuntu

    • jorge
    • January 8th, 2009

    is almost imposible for me to make the dvd player work i only get sound but no image,a+nd i have tryied everything and by the way you never put the codecs for the 64 bit version

  4. sri!

    Press the “tab” key to get past the java license agreement and use the arrow keys agreeto the terms… had the same problem, hope this helps.

    • Doug
    • February 22nd, 2009

    Um…How many codecs, I’m up to 327 now?

    • skittles
    • March 21st, 2009

    i manage to install all the codecs but the problem i’m having now is the audio is not working. did i miss anything? what can i do to make sure the audio is working?

    • drjzzz
    • April 4th, 2009

    thanks very much, worked great!

    • Trevor
    • April 24th, 2009

    Hi,
    I am also using a 64 bit machine and it doesn’t work:
    E: couldn’t find package w64codecs

    • Joe
    • April 26th, 2009

    I followed the instructions but i get a screen which says package configuration (some sort of license agreement and terms). But i closed it out. and now i have all these errors and i saw if you pressed tab and what not to fix it it will be fine but i cant get back to that point.

    • Jaunty
    • June 25th, 2009

    Unfortunately, in Jaunty I am seeing

    gpg: can’t open `–': No such file or directory

    ?

    • Synyx
    • June 25th, 2009

    Unfortunately, in Jaunty I am seeing too

    gpg: can’t open `–’: No such file or directory

    why?

    I am noob

    • Joseph
    • June 30th, 2009

    You should be aware that they’ve changed the syntax in which you would normaly add keys etc.

    • Joseph
    • June 30th, 2009

    just go to the medibuntu page to do it the newer proper way.

    • ABAHO ELLY
    • September 18th, 2009

    Hi. Ubuntu 8 is what iam using but update codecs for c++ are not seen available on the site. lets have the full codes to write uonce and run the program. Hope you’ll do it for us. if possible, i can get them from my email.
    long live ubuntu.

  5. obrigado

  6. teste

  7. this is way difficult for me, when will we see akk these things automated like Windows

    • LINUX MAN
    • March 8th, 2010

    gpg: can’t open `–': No such file or directory
    ubuntu@ubuntu:~$

    Is there a new version of codecs to be installed? If so where can I go?

      • Lucid
      • May 18th, 2010

      just replace long dash with a regular short one (-):
      1. copy & paste
      2. left arrow until you reach the long dash & replace
      3. while you are at it, if you use 10.04 (lucid), replace jaunty with lucid.

      that’s it. it should work now.

  8. its very useful for me… thanx

    • Deepak kushwaha
    • August 4th, 2010

    sir, plzzzzzzzz tell me the site where i can download the audio and video codecs for ubuntu linux or tell me the procedure,who can i play my audio and video files in ubuntu linux…thanxxx in advace…..

      • Joseph
      • September 7th, 2010

      Like I said go to the medibuntu website. There is now a new way to do this!!!!

    • Deepak kushwaha
    • August 4th, 2010

    who can i play my audio files in ubuntu linux….bbyeee

    • Deepak kushwaha
    • August 4th, 2010

    Deepak kushwaha :who can i play my audio files in ubuntu linux….bbyeee

  9. the prices of Pioneer dvd players are dropping these days and they are quite a bargain;*”

    • Niall
    • August 9th, 2011

    Hey,

    anyone got this for 10.04???

    Thanks!!!

  10. I couldn’t get it to wok on windows XP, I guess I have a codec problem, these stuff can be very difficult for me, will try to search for a solution

  11. I get this when message at every step.
    E: Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

  12. The link for 32bit version codecs is not working anymore. Do you know where I can get the codecs?

  13. Thanks!!! Rock and roll.

  14. hi!,I like your writing so much! proportion we keep
    in touch more approximately your article on AOL?
    I require an expert on this house to solve my problem. May be that’s you!
    Looking ahead to see you.

  1. June 23rd, 2008
  2. September 11th, 2008
    Trackback from : New to Ubuntu? « Linux Owns
  3. October 7th, 2008
  4. October 27th, 2009

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 59 other followers

%d bloggers like this: