Sunday, 18 November 2007

Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs) in Ubuntu 7.10 (Gutsy Gibbon)

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 Gutsy Gibbon Feisty Fawn

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 in /etc/apt/sources.list file

gedit /etc/apt/sources.list

enter these two lines and save your file

deb http://archive.ubuntu.com/ubuntu gutsy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu gutsy 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 just type

gmplayer

or

You can Open from Applications—>Sound&Video—> Mplayer Movie Player

Once it opens you should see the following screen

Installing libdvdcss2 and w32 video codecs in Ubuntu Gutsy Gibbon

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.

For Ubuntu Gutsy Gibbon Users run the following command

sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list

Now you need to copy the key using the following command

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O-¦ sudo apt-key add -

Update the source list using the following command

sudo apt-get update

Install Codecs using the following command

sudo apt-get install w32codecs libdvdcss2

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

sudo apt-get update

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

6 comments:

nebeng said...

Hello,
Just want to share my experience.

To make mozilla-mplayer plugin works, I have to uninstall totem-mozilla first.

sudo apt-get remove totem-mozilla

More info here:
https://help.ubuntu.com/community/MPlayer

And I also have to configure Mplayer and make sure the video and audio is set to xv/X11 and alsa.

Partha said...

Just a small clarification. If you are running a 64 bit version of gutsy, then replace w32codecs with w64codecs. Have a nice day!

Jairo said...

Thanks for the guide. It was very useful for me.

liquid said...

I have a problem

W: GPG error: http://packages.medibuntu.org gutsy Release: Las firmas siguientes no se pudieron verificar porque su llave pública no está disponible: NO_PUBKEY 2EBC26B60C5A2783
W: Tal vez quiera ejecutar 'apt-get update' para corregir estos problemas


W: GPG mistake: http://packages.medibuntu.org gutsy Release: The following signatures could not be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
W: You may want to run 'apt-get update' to correct these problems

Thanks.

Alexander said...

I have a problem, mplayer can not be installed because it is depending on some libs:

libartsc0 (>= 1.5.0-1)
libmad0 (>= 0.15.1b)
libmpcdec3
libpulse0
libungif4g (>= 4.1.4)
libxvmc1

But it says, they can not be installed. Why that?

TIA

srinivas said...

hey when i am running this command :
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list

getting this error:

--23:34:20-- http://www.medibuntu.org/sources.list.d/gutsy.list
=> `/etc/apt/sources.list.d/medibuntu.list'
Resolving www.medibuntu.org... 87.98.242.110
Connecting to www.medibuntu.org|87.98.242.110|:80... failed: Connection refused.

how to solve it????.