Friday, 30 March 2007

Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs) in Ubuntu Dapper Drake,Edgy Eft,Feisty Fawn

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 Dapper Drake

You need to add the following lines to /etc/apt/sources.list file

gedit /etc/apt/sources.list

enter these two lines and save your file

deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse

Install Mplayer in Ubuntu Edgy eft

You need to add the following lines to /etc/apt/sources.list file

gedit /etc/apt/sources.list

enter these two lines and save your file

deb http://archive.ubuntu.com/ubuntu edgy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy universe multiverse

Install Mplayer in Ubuntu Feisty Fawn

You need to add the following lines to /etc/apt/sources.list file

gedit /etc/apt/sources.list

enter these two lines and save your file

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

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.
Edit /etc/apt/sources.list file and enter the following repositories

sudo gedit /etc/apt/sources.list

You can install this DVD playback and w32codecs using Seveas Repository

For Ubuntu Dapper Drake Users

deb http://mirror.ubuntulinux.nl dapper-seveas all
deb-src http://mirror.ubuntulinux.nl dapper-seveas all

For Ubuntu Edgy Eft Users

deb http://mirror.ubuntulinux.nl edgy-seveas all
deb-src http://mirror.ubuntulinux.nl edgy-seveas all

Now you need to copy the key using the following command

wget http://mirror.ubuntulinux.nl/1135D466.gpg -O- ¦ sudo apt-key add -

For Ubuntu Feisty Fawn Users

deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free

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

7 comments:

Knowledge said...

Great write up! Thank you.

Peter Berry said...

In the stage where you add the key, the ¦ in the pipeline doesn't work. You need to use the unbroken pipe symbol |. (at least in Feisty)

Knowledge said...

I get the following error when installing:

WARNING: The following packages cannot be authenticated!
liblame0
Install these packages without verification [y/N]?

Is there a key for these repositories or do you just say yes?

Matt said...

This works fine for me until the last step where I get:

Package w32codecs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package w32codecs has no installation candidate

Hai said...

hello matt,

link to w32codecs
is found in this thread, post #4
http://ubuntuforums.org/showthread.php?t=483853

Mary Anna said...

There seems to be a problem on the step after the wget -- I run "sudo apt-get update" and receive this error:

Fetched 2391B in 1s (1608B/s)
Reading package lists... Done
W: GPG error: http://medibuntu.sos-sts.com feisty Release: The following signatures couldn't 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

Arsetard says said...

i had the same problem as mary anna!