个人工具

UbuntuHelp:RestrictedFormats/MP3

来自Ubuntu中文

跳转至: 导航, 搜索


Playing MP3 Files

Since MP3 is one of the most widely-used audio formats, you probably will come across a few MP3 files in your computer usage - if you don't already have a large collection of them. You have two options for dealing with your MP3's under Ubuntu:

  • Install some extra, restricted plugins
  • Converting to open unrestricted formats, like Ogg-Vorbis

With Restricted Plug-ins

Below are instructions for installing plug-ins necessary for playing MP3s, depending on the version of Ubuntu that you are using.

Ubuntu 6.06 LTS (Dapper Drake)

  • Amarok folks pay attention to this: if you use libxine-extracodecs together with gstreamer0.10-plugins-ugly installed, the sound of playing mp3 will become weird. Simply remove gstreamer0.10-plugins-ugly.
  • Install the package gstreamer0.10-plugins-ugly.
  • To add mp3 support to GnomeBaker, install gstreamer0.8-mad and gstreamer0.8-misc.
  • Audio Previewing (This applies to all Ubuntu releases.):

The Ubuntu File Manager Nautilus can preview music files if you hover your mouse pointer over the file. If you would like to add this functionality to your desktop, install the mpg321 and vorbis-tools. Note: If you experience jittery playback of MP3 audio previews, try installing mpg123-esd instead of mpg321. The mpg123-esd package is located in the Multiverse repository.

  • An alternative method to gain mp3 decoding support in gstreamer applications is to install gstreamer0.10-fluendo-mp3. This is in the Universe repository, which contains software that is "more free" than that found in Multiverse. More details on this plug-in can be found here.

Kubuntu 6.06 LTS (Dapper Drake)

  • Install libxine-extracodecs.
  • To add mp3 support to K3b, install libk3b2-mp3.
  • To add mp3 support to JuK, install libakode2-mpeg and libarts1-mpeglib.
  • Video thumbnails in Konqueror -- install libarts1-xine. You can turn this functionality on and off through Konqueror's menu View->Preview->Video files.
  • Audio Previewing -- The Kubuntu file manager Konqueror can preview sound files if you hover your mouse pointer over the file (this can be enabled in Konqueror's menu under View->Preview->Sound files). If you would like to add this functionality for use with mp3 files, install libarts1-mpeglib.

Xubuntu 6.06 LTS (Dapper Drake)

  • Install libxine-extracodecs for use with xfmedia.

Kubuntu 6.10 (Edgy Eft)

  • Open Amarok and play an mp3 file. Amarok will ask if you would like to add mp3 support and then install the libxine-extracodecs package.
  • Alternatively, follow the instructions for Kubuntu 6.06 LTS (Dapper Drake)

Kubuntu 7.04 (Feisty Fawn)

  • Open Amarok and play an mp3 file. Amarok will ask you if you would like to add mp3 support and then install the libxine1-ffmpeg package.
  • To play mp3's with Amarok, install the package libxine1-ffmpeg (which will install libmad0 as well).

Kubuntu 7.10 (Gutsy Gibbon)

  • Follow the instructions for Kubuntu 7.04 (Feisty Fawn)

Ubuntu 7.10 (Gutsy Gibbon)

  • To play some mp3 files in rhythmbox you need to install the w32codecs package from the Medibuntu repository. If you are using the 64 bit version of Ubuntu you will need the w64codecs package instead.
  • Some gstreamer players (like Listen) require gstreamer0.10-plugins-ugly