RestrictedFormats

Differences between revisions 344 and 345
Revision 344 as of 2006-06-18 16:53:55
Size: 19243
Editor: 83-216-133-187
Comment:
Revision 345 as of 2006-06-19 16:06:48
Size: 61
Editor: 127
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## when talking about installing packages, merely mention the package name, without a method.
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents]]||
= Disclaimer and Legal Notice =

attachment:IconsPage/IconDialog-Warning1.png Patent and licensing restrictions on media formats can complicate a free operating system's ability to distribute software that will support those formats. Ubuntu actively supports the FreeFormats. This page will walk you through getting support for the most popular non-free media formats.

If all of this seems like a lot of work to get non-free media playback up and running, please remember that Ubuntu's hands are tied by the owners of the licenses and patents. Look to the future and make sure that DRM and similar restrictions are carefully monitored by you -- the open source community and free software users.

'''Some of the packages listed here may be illegal in your country. This page is not legal advice.'''

= Before You Start =
  * You must have '''administrative privileges''' to install packages. RootSudo explains how Ubuntu provides the necessary privileges.

  * Nearly all the applications and packages mentioned on this page are found in the '''Universe''' and '''Multiverse''' repositories. See AddingRepositoriesHowto for instructions on enabling the Universe and Multiverse repositories.

  * Some of the packages mentioned on this page are found in repositories not controlled by Ubuntu. Please do not file bugs about these packages:
   * realplayer
   * w32codecs

= Playing Non Free Media =
== The Ubuntu Media Players ==
 * Ubuntu comes with ''Totem'' (a movie player) and ''Rhythmbox'' (a music player)
 * Kubuntu includes ''Kaffeine'' (a multimedia player) and ''Amarok'' (a music player)

These applications play free formats (Ogg Vorbis, Ogg Theora, and the like) 'out of the box'. However, they can also play most non-free media formats if you install some additional packages.


=== MP3s ===
  [:AddingRepositoriesHowto: Enable the multiverse and universe repositories] and install the proper package for your Release. See AddingSoftware for instructions about how to install packages.

==== Ubuntu ====
'''Ubuntu 6.06 (Dapper Drake)'''
  Install the package {{{gstreamer0.10-plugins-ugly}}}.

'''Ubuntu 5.10 (Breezy Badger)'''
  Install the package {{{gstreamer0.8-mad}}}.

'''All Ubuntu Releases'''
  The Ubuntu File Manager can preview music files if you hover your mouse pointer over the file. If you would like this functionality, use your favorite package manager to install {{{mpg321}}} and {{{vorbis-tools}}}.

  If you experience jittery playback of MP3 previews, try installing {{{mpg123-esd}}} instead of {{{mpg321}}}. {{{mpg123-esd}}} is not free, and is found in the multiverse repository.

==== Kubuntu ====
'''Kubuntu 6.06 (Dapper Drake)'''
  Use your favorite package manager to install {{{libxine-extracodecs}}}.

  To have mp3 support using ''K3b'' install {{{libk3b2-mp3}}}.

  To have mp3 support in ''JuK'' install {{{libarts1-xine}}} (you also need {{{libxine-extracodecs}}}).

  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 this functionality to work with mp3 files also, install {{{libarts1-xine}}} (you also need {{{libxine-extracodecs}}}).

'''Kubuntu 5.10 (Breezy Badger)'''
  Kubuntu uses two different methods for playing mp3s.
    * If you are using the version of ''amarok'' that comes by default with Kubuntu 5.10, use your favorite package manager to install {{{gstreamer0.8-mad }}}.
    * If you are using the akode library for sound, install {{{akode-mpeg}}}.

  To have mp3 support while using ''K3b'' install {{{k3b-mad}}}.

==== Ripping CDs ====
  If your portable music player does not support FreeFormats, the page [:CDRipping] explains how to convert your CDs to MP3 and AAC.

=== Other Non-Free Formats ===
  attachment:IconsPage/IconNote.png This is not needed for Kubuntu users, as ''libxine-extracodecs'' includes them all.

[:AddingRepositoriesHowto: Enable the universe and multiverse repositories] and install the necessary packages with your favorite package manager.

'''Ubuntu 6.06 (Dapper Drake)'''
  Install the packages
  {{{gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-pitfdll
}}}

'''Ubuntu 5.10 (Breezy Badger)'''
Install the packages
  {{{gstreamer0.8-plugins gstreamer0.8-plugins-multiverse gstreamer0.8-ffmpeg
}}}

[[Anchor(alternateplayers)]]
== Alternative Media Players ==
Currently, the best support for MPEG-1, MPEG-2, MPEG-4 (for example, encoded with DivX, XviD or FFmpeg MPEG-4), QuickTime and other non-free media formats is provided by ''Totem-xine'', ''Kaffeine'', ''gxine'', and ''MPlayer''. Playing WMV or RealVideo files requires a package that Ubuntu is unable to distribute (See [#w32codecs Windows Codecs] below for installation instructions).

=== Ubuntu ===
''Totem-xine'' or ''gxine'' are recommended for most users since ''MPlayer'' can be complicated to configure and use. If you would like to try these media players, [:AddingRepositoriesHowto: enable the universe and multiverse repositories] and install the following packages

'''Ubuntu 6.06 (Dapper Drake)'''
  {{{totem-xine gxine libxine-extracodecs mplayer
}}}

'''Ubuntu 5.10 (Breezy Badger) and earlier'''
  {{{totem-xine gxine
}}}

Using ''MPlayer'' will require you to choose the proper package for your computer. MplayerInstallHowto explains how to chose the package, and has a sample configuration that you can use.

=== Kubuntu ===
In addition to the default ''kaffeine'' player, you could try ''KMplayer'' and ''Codeine''. Install the packages

'''Kubuntu 6.06 (Dapper Drake)'''
  {{{kmplayer codeine mplayer xine-ui libxine-extracodecs
}}}

[[Anchor(w32codecs)]]
== Windows Codecs ==

=== i386 distribution ===
Support for WMV, RealMedia and other formats has been bundled into the ''w32codecs'' package. Since this package is not supported by Ubuntu, you will need to install it from an unoffical repository. Simply type in a terminal:

  {{{wget -c ftp://ftp.nerim.net/debian-marillat/pool/main/w/w32codecs/w32codecs_20050412-0.4_i386.deb
sudo dpkg -i w32codecs_20050412-0.4_i386.deb
}}}

  {X} '' WMV files encoded with DRM (Digital Rights Management) are not playable by the codecs.''

  {i} ''If you are experiencing choppy audio when playing WMV files, try [http://ubuntuforums.org/showpost.php?p=136306&postcount=2 this] fix.''

=== AMD64 distribution ===
  The [#w32codecs Windows Codecs] cannot be used directly by the AMD64 distribution. Some people solve this problem by installing the i386 Ubuntu distribution inside a ''chroot'' (for example, [:VServer:Linux Vserver] or [http://packages.ubuntu.com/breezy/admin/dchroot dchroot]), and this works very well.

=== PowerPC distribution ===
  The PowerPC distribution cannot use the [#w32codecs Windows Codecs].

== Playing Streaming Video from the Internet ==
  attachment:IconsPage/IconNote.png This is not needed for ''Konqueror''; Kubuntu comes with a plugin by default.

There are a variety of plugins that allow you to play streaming video in your browser. The recommended plugin is ''totem-xine-firefox-plugin''. You should install the [#w32codecs Windows Codecs], [:AddingRepositoriesHowto: enable the universe repository] and, install the {{{totem-xine-firefox-plugin}}} package.

== Playing DVDs ==
Most commercial DVDs are encrypted with CSS (the Content Scrambling System). The movie players provided in Ubuntu are capable of reading DVDs that are not encrypted. You can enable reading encrypted DVDs in ''MPlayer'', ''xine'' and ''Totem-xine'' by installing ''libdvdcss2''.

  attachment:IconsPage/IconDialog-Warning1.png '''Ubuntu 6.06's''' GNOME default version of ''Totem'' does not support playing DVDs. You must install ''Totem-xine'' in order to play DVDs using ''Totem''. See [#alternateplayers Alternative Media Players] for instructions.

=== Installing ''libdvdcss2'' ===
  Use your favorite package manager to install the {{{libdvdread3}}} package, then download the libdvdcss2 library by typing in a terminal:

  {{{sudo /usr/share/doc/libdvdread3/examples/install-css.sh
}}}

  {i} Note for the AMD64 distribution: The ''install-css.sh'' script as called above will compile libdvdcss2 for you, rather than downloading a prebuilt binary. You will need to install {{{debhelper}}}, {{{build-essential}}} and {{{fakeroot}}} first.

=== What to do if your DVD player locks up ===
If your DVD player locks up on nearly every DVD movie you try to play, you probably have a DVD player that does not match your Region Code. A Region Code indicates the geographical region where the DVD was published. For example, you cannot play a DVD published in Japan on a DVD player in the United States without changing the Region Code of the DVD player.

  attachment:IconsPage/IconDialog-Warning1.png ''The author of regionset states that you can only change regions 4 times. He also states that this procedure is irreversible, and may render your drive permanently unable to read DVDs encoded for your region.''

To change the Region Code of your DVD player, insert a DVD from your region in the DVD player, and do the following:

Use your favourite package manager to install the {{{regionset}}} package, then type in a terminal:

  {{{regionset
}}}

=== Jerky Playback ===
If DVD playback is jerky or you notice that burning a CD/DVD is slower than it should be, then you may need to '''enable DMA transfer''' for that drive. See the ["DMA"] page for details.

== RealPlayer 10 ==
You can install ''Realplayer 10'' by following the two steps above:

Install {{{libstdc++5}}} package (see InstallingSoftware).

Then, simply type in a terminal:
  {{{
wget -c ftp://ftp.nerim.net/debian-marillat/pool/main/r/realplay/realplayer_10.0.7-0.0_i386.deb
sudo dpkg -i realplayer_10.0.7-0.0_i386.deb
}}}

  attachment:IconsPage/IconHint2.png Most of Real's non-free media formats can be played by ''MPlayer'', ''xine'', and ''Totem-xine'' when either ''Realplayer 10'' or the [#w32codecs Windows Codecs] are installed.

== Real Media ==
If you want ''Realplayer'' to be the default application to open '''Real''''''Media''' file types:

=== Ubuntu ===

Use the File Manager to navigate to a folder containing a sample '''Real''''''Media''' file. Click the file with the right mouse button, select '''Properties''', and then the tab '''Open With'''. Click the radio button next to '''Real''''''Player 10''', and close the dialog window.

=== Kubuntu ===

Open Konqueror, and select '''Configure Konqueror''' in the '''Settings''' menu. Navigate to the '''File Associations''' section using the side bar, Then type {{{rm}}} in the '''Find Filename Pattern''' box. Select the known type labelled '''vnd.rn-realmedia''' And add '''Real Player 10''' to the top of the '''Application Preference Order''' dialogue.


== Smil ==
If you want ''Realplayer'' to be the default application to open '''Smil''' file types:

=== Ubuntu ===

Use the File Manager to navigate to a folder containing a '''Smil''' file. Click the file with the right mouse button, select '''Properties''', and then the tab '''Open With'''. Click the radio button next to '''Real''''''Player 10''', and close the dialog window.

=== Kubuntu ===

Open Konqueror, and select '''Configure Konqueror''' in the '''Settings''' menu. Navigate to the '''File Associations''' section using the side bar, Then type {{{smil}}} in the '''Find Filename Pattern''' box. Select the known type labelled '''smil''' And add '''Real Player 10''' to the top of the '''Application Preference Order''' dialogue.

== Macromedia Flash ==
Macromedia's Flash Player is only available for i386 based machines, and Shock Wave is not available at all. There are projects that are attempting to provide free support for Flash, and currently they are the only way to get Flash support for the '''PPC''' and '''AMD64''' distributions of Ubuntu.

  Flash can be problematic, so if you have problems (and solutions), read '''Flash Issues''' below.

== Flash for i386 ==
  To add Flash Player support for ''konqueror'', ''mozilla'', ''firefox'', ''epiphany'' and other browsers, [:AddingRepositoriesHowto:enable the multiverse repository]

==== Ubuntu 6.06 (Dapper Drake) ====
  
  Use your favorite package manager to install the package
  {{{flashplugin-nonfree
}}}

{i} '''Note to Kubuntu Users:''' Konqueror DOES NOT auto-detect flash. There are a few steps you must use for flash to work:
  {{{
   In the menu bar of konqueror click settings (Next to help) --> configure konqueror' --> scroll down the side to plugins --> click scan for new plugins
  }}}
   It should now work

==== for Ubuntu 5.10 (Breezy Badger) ====
  Use your favorite package manager to install the package
  {{{flashplugin-nonfree
}}}

{i} ''Note: If you are using Ubuntu 5.10 or prior and installed FireFox 1.5.x from [https://wiki.ubuntu.com/FirefoxNewVersion ff1.5] than you will need to make a symlink for flash by typing the following.''
  {{{sudo ln -s /usr/lib/mozilla-firefox/*flash* /opt/firefox/plugins
  }}}

{i} '''Note to Kubuntu Users:''' Konqueror DOES NOT auto-detect flash. There are a few steps you must use for flash to work:
  {{{
   In the menu bar of konqueror click settings (Next to help) --> configure konqueror --> scroll down the side to plugins --> click scan for new plugins
  }}}
It should now work

==== for Ubuntu 5.04 (Hoary Hedgehog) ====
  Use your favorite package manager to install the package
  {{{flashplugin-nonfree
}}}

== Flash for AMD64 and PPC ==
"For those of us with 64-bit processors (or Mac) there is no non-free flash implementation available because the manufacturer does not support them. However, there are two free implementations. One is ''gnash'' and the other is ''swfdec''. Gnash (http://www.gnu.org/software/gnash/), whilst still under development, aims to be a proper free, open source replacement for all the platforms. There is a repository hosting AMD64 Gnash packages at http://ubuntu.moshen.de/

If you are determined, another option is to install a i386 ubuntu in a DebootstrapChroot and launch your browser with flash plugin from there.


=== Flash Issues ===
==== Sound ====
===== Symptoms =====
  * Flash videos stop playing after 1 second.
  * Firefox freezes when going to another page ater having tried to view a flash video.
  * The firefox process not correctly ending after having tried to view a flash video.

===== Possible Fixes =====
After Flash is installed, if the sound is not working properly, or you experience one of the above symptoms, try one of the following solutions:

Open the terminal, and type the following commands:

Install {{{alsa-oss}}} package.

Open:
  {{{sudo nano /etc/firefox/firefoxrc
  }}}
Add/Change line:
  {{{
  FIREFOX_DSP="aoss"
  }}}

*Restart FireFox, and try the page again.

If the above does not work, try the following:

Open:
  {{{sudo nano ~/.mozilla/firefox/rc
  }}}
Add the line:
  {{{
  FIREFOX_DSP="none"
  }}}

As an alternative solution, if the above doesn't solve the problem:
Type the following in a terminal:
  {{{sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
  }}}

==== Video ====
If you use an '''Intel 855GM''' video card, ensure you set the X server colour depth to 24 bits, otherwise you will probably experience Firefox crashes.
==== Fonts ====
If you are viewing a Flash video and you do not see any text, the following command should help:
Install the {{{gsfonts gsfonts-x11 }}} packages.

== Macromedia Shockwave ==

Please see ["Shockwave"]

== AAC and iTunes Music Store ==
=== AAC decoding ===
  The default audio format used by Apple's iTunes and iPod is AAC. This is a variant of the MPEG standard, and as such has patent issues. However, you can listen to AAC files in '''rhythmbox''' or '''amarok''' by installing '''gstreamer0.8-faad'''. You will need this for listening to any AAC file, including those bought from the iTunes Music Store (see below for more info on using the music store on Linux). Warning: songs purchased from the iTunes music store (.m4p) are encrypted and will not just play using '''gstreamer0.8-faad'''. You will need to decrypt them first.
==== For Ubuntu 6.06 (Dapper Drake): ====
Install the {{{gstreamer0.10-plugins-bad-multiverse}}} package.

=== AAC encoding: ===
  FAAC can be used to encode AACs, although this is somewhat experimental compared to MP3 encoding at this point. For encoding programs which use gstreamer, there is a gstreamer plugin called '''gstreamer0.8-faac'''. See ["CDRipping"] for how to encode CDs to AAC.

  For other programs, you may be able to utilize FAAC directly to encode to AACs using the "faac" package.

=== iTunes Music Store ===
  Apple's iTunes Music Store sells music online with a large selection of artists. Songs are in 128K AAC format, and cost varies by country. Apple only has Mac and Windows clients, but it also can be used on Linux. There are two different methods by which this can be done.

  First of all, you can use CodeWeavers CrossOver Office (available at http://www.codeweavers.com) to install the Windows version of iTunes on Ubuntu. This will allow you to buy iTunes songs on Linux and listen to them. However, the main caveats of this approach are that 1) it costs money 2) it is not a fully Linux-native solution.

  As an alternative to using CrossOver, there is a new, Free program called PyMusique which allows basic usage of the iTunes Music Store on Linux. This works better than using iTunes on CrossOver, but PyMusique has fewer features than the official iTunes client at this point and may be in violation of the iTunes Music Store terms of service. To use this on Ubuntu, first install gstreamer0.8-faad and libmcrypt4. Then, go to http://fuware.nanocrew.net/pymusique/ or a mirror (google "pymusique 0.4" for mirrors) and download the pymusique, python2.4-mcrypt, python2.4-vlc, and python2.4-mp4ff packages. Finally, install all the packages you downloaded from the above website. You can now launch PyMusique from the Applications-Internet menu, and purchase songs (although you may have to restart your system for this to work).

  PyMusique has been superceded by SharpMusique, available from http://www.nanocrew.net/software/sharpmusique/. It is available as a .deb for Breezy Badger and allows you to preview songs, signup for an account, buy songs and albums, redownload songs that you bought, and more.

  There's also an unofficial plugin for the Banshee Player (see http://www.banshee-project.org/Plugins) that supports the same features as SharpMusique.

= Java =

Please see ["Java"]

----
CategoryDocumentation CategoryCleanup
#REFRESH 0 http://help.ubuntu.com/community/RestrictedFormats

RestrictedFormats (last edited 2008-08-06 16:22:52 by localhost)