MplayerInstallHowto

Differences between revisions 17 and 18
Revision 17 as of 2006-05-08 01:40:16
Size: 4776
Editor: ppp-70-252-1-142
Comment: changed to 6.06 from 6.04
Revision 18 as of 2006-05-23 04:06:41
Size: 4883
Editor: ppp-70-252-2-253
Comment: minor formatting & grammar changes
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
'''[http://www.mplayerhq.hu mplayer]''' and its graphical cousin, '''gmplayer''', are versatile media players available from the [http://www.ubuntulinux.org/ubuntu/components multiverse] repository. They can play all types of FreeFormats media, and with the addition of some packages available from outside of Ubuntu, they can also play most non-free media formats. See RestrictedFormats for instructions for enabling non-free formats in mplayer and gmplayer.   '''[http://www.mplayerhq.hu MPlayer]''' and its graphical cousin, '''gmplayer''' are versatile media players available from the [http://www.ubuntulinux.org/ubuntu/components multiverse] repository. They can play all types of FreeFormats media, and with the addition of some packages available from outside of Ubuntu, they can also play most non-free media formats. See RestrictedFormats for instructions for enabling non-free formats in MPlayer and gmplayer.
Line 8: Line 8:
You must have administration privileges to install packages. RootSudo explains how Ubuntu provides the necessary privileges.   You must have '''administrative privileges''' to install packages. RootSudo explains how Ubuntu provides the necessary privileges.
Line 10: Line 10:
In order to install mplayer, you will need to enable the [http://www.ubuntulinux.org/ubuntu/components/ multiverse] repository. AddingRepositoriesHowto explains how to enable the multiverse repository.   In order to install MPlayer, you will need to enable the [http://www.ubuntulinux.org/ubuntu/components/ multiverse] repository. AddingRepositoriesHowto explains how to enable the multiverse repository.
Line 13: Line 13:
Beginning with Ubuntu 6.06, you no longer need to identify the correct mplayer package to install. Simply [:AddingRepositoriesHowto: enable the multiverse repository] and install the mplayer package using your favorite package manager, or, type in a terminal:
{{{
  Beginning with Ubuntu 6.06, you no longer need to match your CPU to the proper MPlayer package. Simply [:AddingRepositoriesHowto: enable the multiverse repository] and install the ''mplayer'' package using your favorite package manager, or, type in a terminal:
  {{{
Line 21: Line 21:
Mplayer comes in several flavors, some of which are optimized to take advantage of your CPU's capabilities. The following chart will help you choose the package that will best suit your computer. [:AddingRepositoriesHowto: Enable the multiverse repository] and install the correct package using your favorite package manager, or use the terminal command line that is provided in the chart.   MPlayer comes in several flavors, some of which are optimized to take advantage of your CPU's capabilities. The following chart will help you choose the package that will best suit your computer. [:AddingRepositoriesHowto: Enable the multiverse repository] and install the correct package using your favorite package manager, or use the terminal command line that is provided in the chart.
Line 23: Line 23:
Note that you should only install the mplayer-586 or mplayer-k6 if you have one of the CPU's listed for those packages in the chart. Newer CPU's like for example AMD Athlon or intel Pentium 4 will run much faster with the mplayer-386 package. The reason for this is that mplayer-386 is compiled with runtime CPU detection and takes advantage of modern features like MMX2, SSE, SSE2, 3DNow!, 3DNow2! on CPU's that supports it.   Note that you should only install ''mplayer-586'' or ''mplayer-k6'' if you have one of the CPU's listed for those packages in the chart. Newer CPU's such as the AMD Athlon or Intel Pentium 4 will run much faster with the ''mplayer-386'' package. ''mplayer-386'' is compiled with runtime CPU detection and takes advantage of modern features like MMX2, SSE, SSE2, 3DNow!, 3DNow2! on CPU's that supports it.
Line 25: Line 25:
The packages mplayer-686 and mplayer-k7 are also available as dummy packages that only installs mplayer-586 and mplayer-k6. Never install those packages, even if you have a i686 or k7 class CPU. mplayer-386 will give significantly better performance (30-40% decrease in CPU usage).   attachment:IconsPage/IconDialog-Warning1.png The packages ''mplayer-686'' and ''mplayer-k7'' are also available as dummy packages that install ''mplayer-586'' and ''mplayer-k6'' respectively. '''Never''' install those packages, even if you have a i686 or k7 class CPU. ''mplayer-386'' will give significantly better performance (30-40% decrease in CPU usage).
Line 40: Line 40:
Configuring mplayer and gmplayer is not obvious to the casual observer. The configurations options given below are mostly taken from Ubuntu 6.04, and should work on most computers. To use this configuration, first open your mplayer configuration file:
{{{
  Configuring MPlayer and gmplayer is not obvious to the casual observer. The configurations options given below are mostly taken from Ubuntu 6.06, and should work on most computers. To use this configuration, first open your MPlayer configuration file:
  {{{
Line 45: Line 45:
Then cut and paste the following block into the file:
{{{
# Specify default video driver (see -vo help for a list).
  Then cut and paste the following block into the file:
  {{{
# Specify default video driver (see mplayer -vo help for a list).
Line 50: Line 50:
# Specify default audio driver (see -ao help for a list). # Specify default audio driver (see mplayer -ao help for a list).
Line 62: Line 62:
Save and close the file.   Save and close the file.
Line 65: Line 65:
mplayer and gmplayer provide excellent streaming video support for mozilla, firefox, epiphany and konqueror. To enable support for streaming media install the package '''mozilla-mplayer''' using your favorite package manager, or, type in a terminal:
{{{
  MPlayer and gmplayer provide excellent streaming video support for Mozilla, Firefox, Epiphany and Konqueror. To enable support for streaming media install the package ''mozilla-mplayer'' using your favorite package manager, or, type in a terminal:
  {{{

Introduction

Before you start

Ubuntu 6.06 (Dapper Drake)

  • Beginning with Ubuntu 6.06, you no longer need to match your CPU to the proper MPlayer package. Simply [:AddingRepositoriesHowto: enable the multiverse repository] and install the mplayer package using your favorite package manager, or, type in a terminal:

    sudo apt-get install mplayer

Ubuntu 5.10 (Breezy Badger) and earlier

Choosing the right package

  • MPlayer comes in several flavors, some of which are optimized to take advantage of your CPU's capabilities. The following chart will help you choose the package that will best suit your computer. [:AddingRepositoriesHowto: Enable the multiverse repository] and install the correct package using your favorite package manager, or use the terminal command line that is provided in the chart.

    Note that you should only install mplayer-586 or mplayer-k6 if you have one of the CPU's listed for those packages in the chart. Newer CPU's such as the AMD Athlon or Intel Pentium 4 will run much faster with the mplayer-386 package. mplayer-386 is compiled with runtime CPU detection and takes advantage of modern features like MMX2, SSE, SSE2, 3DNow!, 3DNow2! on CPU's that supports it.

    attachment:IconsPage/IconDialog-Warning1.png The packages mplayer-686 and mplayer-k7 are also available as dummy packages that install mplayer-586 and mplayer-k6 respectively. Never install those packages, even if you have a i686 or k7 class CPU. mplayer-386 will give significantly better performance (30-40% decrease in CPU usage).

Distribution

processor family

mplayer package

terminal command

32-bit PC (i386)

intel Pentium III or newer, AMD Athlon or newer, all other i386 architectures not listed for mplayer-586 or mplayer-k6

mplayer-386

sudo apt-get install mplayer-386

intel Pentium III

mplayer-586

sudo apt-get install mplayer-586

amd K6, K6-2, K6-3

mplayer-k6

sudo apt-get install mplayer-k6

64-bit PC (amd64)

all

mplayer-amd64

sudo apt-get install mplayer-amd64

Mac (PPC)

all

mplayer-powerpc

sudo apt-get install mplayer-powerpc

g4 and above

mplayer-g4

sudo apt-get install mplayer-g4

Configuration

  • Configuring MPlayer and gmplayer is not obvious to the casual observer. The configurations options given below are mostly taken from Ubuntu 6.06, and should work on most computers. To use this configuration, first open your MPlayer configuration file:
    gedit ~/.mplayer/config
    Then cut and paste the following block into the file:
    # Specify default video driver (see mplayer -vo help for a list).
    vo=xv,sdl,x11
    
    # Specify default audio driver (see mplayer -ao help for a list).
    ao=alsa,oss,sdl,esd,arts
    
    # Drop frames to preserve audio/video sync.
    framedrop = yes
    
    # get a default OSD font from fontconfig
    fontconfig = yes
    font = "Sans"
    subfont-text-scale = 3
    Save and close the file.

Streaming Video

  • MPlayer and gmplayer provide excellent streaming video support for Mozilla, Firefox, Epiphany and Konqueror. To enable support for streaming media install the package mozilla-mplayer using your favorite package manager, or, type in a terminal:

    sudo apt-get install mozilla-mplayer

CategoryDocumentation

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