Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 9.04 (Jaunty)

Sponsored Link
MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text- based subtitle formats too. For video output, nearly every existing interface is supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices.
Install Mplayer in Ubuntu 9.04 (Jaunty)

You need to add the following lines to /etc/apt/sources.list file or you need to make sure you have enabled Universe and multiverse repositories Using GUI.

sudo gedit /etc/apt/sources.list

Make sure you have the following two lines save and exit your file

deb jaunty universe multiverse
deb-src jaunty universe multiverse

Now you need to run the following command to update the source list

sudo apt-get update

Install mplayer using the following command

sudo apt-get install mplayer

If you want to open mplayer go to Applications—>Sound&Video—> Mplayer Movie Player

Install Mplayer Front-end

1) Smplayer

Qt Mplayer front-end, with basic features like playing videos, DVDs, and VCDs to more advanced features like support for MPlayer filters and more. One of the most interesting features of SMPlayer: it remembers the settings of all files you play. So you start to watch a movie but you have to leave… don’t worry, when you open that movie again it will resume at the same point you left it, and with the same settings: audio track, subtitles, volume…

sudo apt-get install smplayer

Install smplayer themes using the following command

sudo apt-get install smplayer-themes

2) gnome-mplayer

A simple GUI for MPlayerIt provides a simple and clean interface to MPlayer. GNOME MPlayer has a rich API that is exposed via DBus. Using DBus you can control a single or multiple instances of GNOME MPlayer from a single command.GNOME MPlayer can be used to play media on websites when used in conjunction with Gecko Mediaplayer.

Install gnome mplayer using the following command

sudo apt-get install gnome-mplayer

Install libdvdcss2 and w32 video codecs in Ubuntu 9.04 (Jaunty)

Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. This package is not available from the Ubuntu repositories due to licensing and legal restrictions.To play encrypted DVDs, the libdvdcss2 package is essential.

For Ubuntu 9.04 (Jaunty) Users use the following procedures

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list

Then, add the GPG Key using the following commands

sudo apt-get update

sudo apt-get install medibuntu-keyring

sudo apt-get update

For i386 Users install Codecs using the following command

sudo apt-get install w32codecs libdvdcss2

For amd64 Users install Codecs using the following command

sudo apt-get install w64codecs libdvdcss2

Using above download locations you can install most of the mutimedia codecs for ubuntu.

Mplayer Plugin for Firefox

If you want to install Mplayer with plug-in for Mozilla Firefox run the following command

sudo apt-get install mozilla-mplayer

Sponsored Link

You may also like...

27 Responses

  1. John Doe says:

    If you want to install SMPlayer, I recommend you use its repositories:

    This way you get the latest versions.

  2. JJMacey says:


    I’ll be changing from openSuSE11.1 to Jaunty Ubuntu soon.

    I run all my video / audio codecs using Kaffeine or Totem. XMMS provides the audio.

    Where’s that alternative?

  3. Bob says:

    @ JJMacey
    You can install both of those in Ubuntu.

  4. jaunty says:

    To install multimedia codec with out internet connection follow this link

  5. JJMacey says:


    Where’s those repositories. As long as I’m replying here do you know

    I’d like my MTV, BBC, CNN International without a TV Tuner card.

    Thanks for the reply.

  6. Manuel says:


  7. JJMacey says:

    I’ve followed several guides. But, am still missing some codecs to play some web sites.

  8. jbo5112 says:

    Why are the w32codecs/w64codecs still being recommended? I was quite certain they were all obsolete. WMV has been in ffmpeg for years and so has Quicktime. RealPlayer has a native codecs for Linux, and ffmpeg supports the format as well. Can anyone name a legitimate reason to install it?

  9. JJMacey says:


    Since my last post I switched from Ubuntu 9.04 32-bit to 64-bit and successfully installed all my needed codecs and players according to this guide.

    What are your alternatives?

  10. iwmcjody says:

    tried all of this several times and no luck. cannot access medibuntu list

  11. Giorgios says:

    Worked like charm.
    Followed your guide in its minutia, step by step and finally I got my WMV9 CBT Linux Nuggets videos playing in SMPlayer… after 2 years on a Linux OS..arggghhh

    However, there’s a delay when loading videos in Smplayer as compared to Dragon player(yes I’m a Kubuntu fan). But that’s fine with me.

    Not only will I bookmark your guide, I’ll print it too.

  12. kris says:

    hi this is kris i tried to install mplayer but i am not able to install it.when i use the command
    sudo apt-get install mplayer it gives the information like below.need some solution how to install it..
    [sudo] password for vamsi:
    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?

  13. Tosk says:


    That just means that apt is being run somewhere else. Probably Update Manager or Synaptic is open. That’s why you get that message.

    If all else fails, reboot. You should be fine then.

  14. Brandt says:


    Everything worked perfectly, until it came time to actually install the codecs… I got the first line in, and downloaded the list from medibuntu, but when I tried

    sudo apt-get install medibuntu-keyring

    it told me:

    E: Couldn’t find package medibuntu-keyring

    know what’s up?

  15. Law Device says:

    I get the same error as Brandt. This is very frustrating. I’ve spent hours trying to get Ubuntu to play DVDs!

  16. Nicholas says:

    i can not dual boot after updating my ubuntu 9.04 that is running under windows vista as an application.PLease help

  17. emile says:

    kris have you done a sudo apt-get update after adding repository then try getting the keyring

  18. emile says:

    sorry sorry it late and i’m blameing the coffee spiked horlics my last comment was for Brandt lol

  19. babanna says:

    Hi, this site is very useful for ubuntu users . I love linux.

  20. Juan Pablo says:

    Simply awesome post. Thanks a lot!!

  21. sivakumar says:

    root@sivakumar-desktop:/home/sivakumar# sudo apt-get update
    E: Could not get lock /var/lib/apt/lists/lock – open (11 Resource temporarily unavailable)
    E: Unable to lock the list directory

  22. Michael says:

    To sivakumar: commonly you get the locking error when you are trying to run apt-get in the command line while you have Synaptic Package Manager open.

  23. biborno says:

    thanx…….lots of…love linux…:)

  24. SinisterTux says:

    ran sudo apt-get install medibuntu-keyring
    reading package list done
    building dependancy tree
    reading state information done
    E: Couldn’t Find package medibuntu-keyring

  25. Landon says:

    To SinisterTux:

    Make sure you run the following:
    1. sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.list

    (where you must replace ‘jaunty’ with the correct release name if you’re not using Ubuntu 9.04)

    2. sudo apt-get update
    3. sudo apt-get install medibuntu-keyring

    Should work.

  26. i have debian etch 1, 2w, 3
    and i want to install the medeia codec
    any one who can help me plz email me
    [email protected]

  27. ghayoula says:

    think you very much ALLAH yjazeeeeek kol 5iiiiiiiiiiiir

Leave a Reply

Your email address will not be published. Required fields are marked *