MplayerInstallHowto

Differences between revisions 3 and 4
Revision 3 as of 2005-06-22 16:03:34
Size: 5600
Editor: 84-72-115-104
Comment: w32codecs info seems to have disappeared from RestrictedFormats page too :-(
Revision 4 as of 2005-07-22 01:21:15
Size: 2965
Editor: bob
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
{{{
MplayerInstallHowto
}}}
Line 7: Line 4:
= MplayerInstallHowto = [[TableOfContents()]]
Line 9: Line 6:
== 1- Introduction == == Introduction ==
Line 15: Line 12:
== 2- Contents == == Overview of the process ==
Line 17: Line 14:
    * 1- Introduction    1. Setting up your ubuntu repositories.
Line 19: Line 16:
    * 2- Contents    1. Choosing the right package and installing.
Line 21: Line 18:
    * 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
   1. Configuring sound.
Line 33: Line 20:
== 3- Overview of the process == == Setting up your ubuntu repositories ==
Line 35: Line 22:
    * 4- Setting up your ubuntu repositories.
    
    * 5- Choosing the right package and installing.
    
    * 6- Configuring sound.
    See AddingMultimediaRepositories
            
Line 41: Line 25:
== 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 ==
== Choosing the right package and installing ==
Line 75: Line 30:
             * 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.
Line 82: Line 31:
            * '''mplayer-k6''', this version is for AMD K6/Duron/Athlon.
                         * '''mplayer-amd64''', this version is for AMD64 CPUs.
       * '''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.
Line 94: Line 43:
                * '''sudo apt-get install mplayer-586''' for the mplayer-586 version.                 * {{{sudo apt-get install mplayer-586}}} for the mplayer-586 version.
Line 96: Line 45:
                * '''sudo apt-get install mplayer-k6''' for the mplayer-amd64 version.                 * {{{sudo apt-get install mplayer-k6}}} for the mplayer-amd64 version.
Line 98: Line 47:
                * '''sudo apt-get install mplayer-amd64''' for the mplayer-amd64 version.                 * {{{sudo apt-get install mplayer-amd64}}} for the mplayer-amd64 version.
Line 106: Line 55:
== 6- Configuring sound == == Configuring sound ==
Line 108: Line 57:
    * 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.     * 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.
Line 124: Line 73:
        * Mplayer reads its configuration file from ~/.mplayer/config (if it does not exists, just create it) :

------
        * Mplayer reads its configuration file from ~/.mplayer/config (if it does not exist, just create it) :
Line 141: Line 88:
------
    
== 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.
        
        * Added link to SynapticHowto.
        
        * Added clarity on which version for which processor.
        
        * Ubuntu uses esd by default.
    
    * 13/05/2005, 23:00
    
        * First version.

MplayerInstallHowto

TableOfContents()

Introduction

Overview of the process

  1. Setting up your ubuntu repositories.
  2. Choosing the right package and installing.
  3. Configuring sound.

Setting up your ubuntu repositories

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 :

    • 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).

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 exist, 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

######

MplayerInstallHowto (last edited 2008-08-06 17:01:29 by localhost)