MplayerInstallHowto

Revision 2 as of 2005-06-22 15:58:32

Clear message

MplayerInstallHowto

MplayerInstallHowto

MplayerInstallHowto

1- Introduction

2- Contents

  • 1- Introduction
  • 2- Contents
  • 3- Overview of the process
  • 4- Setting up your ubuntu repositories
  • 5- Choosing the right package and installing
  • 6- Configuring sound
  • 7- Author
  • 8- About the document

3- Overview of the process

  • 4- Setting up your ubuntu repositories.
  • 5- Choosing the right package and installing.
  • 6- Configuring sound.

4- Setting up your ubuntu repositories

  • This chapter will make sure you have access to hoary repositories, section multiverse.
  • You can skip this step if you think you have already configured your package manager with enough sources and in fact, you're encouraged to do so. Things won't break. At most you will not find the package and will have to read this chapter then.
  • To enable the multiverse section of ubuntu repositories, you can either :
    • Use the "Ubuntu update manager" and choose "Preferences". This is the user-friendly way to do it.
    • Add "multiverse" for an ubuntu repository in /etc/apt/sources.list.
    • Use this default /etc/apt/sources.list (which is really good by the way) :


## Hoary
## Security
deb http://security.ubuntu.com/ubuntu hoary-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted universe multiverse
## Major bug fixes
deb http://archive.ubuntu.com/ubuntu hoary-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary-updates main restricted universe multiverse
## Main archive
deb http://archive.ubuntu.com/ubuntu hoary main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary main restricted universe multiverse


5- Choosing the right package and installing

  • Many different versions of mplayer exists in ubuntu, we will choose the one that best suits your processor.
  • The different versions available :

    • You can see the complete list of available versions here http://packages.ubuntu.com/hoary/allpackages if you really want to.

    • Basically, you will have to choose one of these packages :

      • mplayer-586, this version is for Pentium Pro/Celeron/Pentium II/Pentium III/Pentium IV.

      • mplayer-k6, this version is for AMD K6/Duron/Athlon.

      • mplayer-amd64, this version is for AMD64 CPUs.

  • Installing mplayer :

    • Use your preferred package manager, be it synaptic, apt-get, or anything else.

      • Follow http://www.ubuntulinux.org/wiki/SynapticHowto to install mplayer using synaptic and select the package best suited for your processor as defined above.

      • Installing mplayer using apt-get :
        • sudo apt-get install mplayer-586 for the mplayer-586 version.

        • sudo apt-get install mplayer-k6 for the mplayer-amd64 version.

        • sudo apt-get install mplayer-amd64 for the mplayer-amd64 version.

      • You may also consider installing :

        • mplayer-fonts (to handle subtitles).

        • mozilla-mplayer (mplayer plugin for mozilla to allow playing embedded movies on web pages).

6- Configuring sound

  • Mplayer-* packages really provide mplayer and gmplayer. Mplayer is more a command-line version of mplayer and gmplayer (the one you're using) a graphical version.

  • Ubuntu uses esound as its default sound daemon, we will configure mplayer to use the appropriate audio driver, esd.

  • Configuring sound in gmplayer : (the one you're using)

    • Start mplayer in "Menu" -> "Sound & Video" -> "Mplayer".

    • Right-click on the mplayer window and select "Preferences".
    • In the "Audio" tab, choose the "esd" driver.

    • Validate your change with "OK" and exit mplayer.
  • Configuring sound in mplayer :

    • Mplayer reads its configuration file from ~/.mplayer/config (if it does not exists, just create it) :


######
## Audio drivers

## Ubuntu uses esd by default.
ao=esd

## These are only mentionned for the sake of completion.
#ao=oss
#ao=alsa
#ao=arts

######


7- Author

  • Yannick Le Saint (kyncani) <y.lesaint@gmail.com>

  • Got valuable help from ubuntu-doc mailing list.

8- About the document

  • 13/05/2005, 07:11
    • Configure gmplayer also, as it is our main interest.
    • Advise some related packages.
  • 13/05/2005, 04:20
    • Removed w32codecs, as the package is not in ubuntu. (See RestrictedFormats for how to get them.)

    • Added link to SynapticHowto.

    • Added clarity on which version for which processor.
    • Ubuntu uses esd by default.
  • 13/05/2005, 23:00
    • First version.