Differences between revisions 26 and 27
Revision 26 as of 2009-12-14 13:43:34
Size: 6427
Editor: DenisBernard
Comment: Modif presentation
Revision 27 as of 2010-03-01 15:47:42
Size: 6431
Editor: ?Celejar
Comment: info about non-free, minor editing
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
    deb http://debian-multimedia.org/ etch main
    deb http://debian-multimedia.org/ lenny main
    deb http://debian-multimedia.org/ sid main
    deb http://www.debian-multimedia.org etch main
    deb http://www.debian-multimedia.org lenny main non-free
    deb http://www.debian-multimedia.org sid main non-free
    deb http://www.debian-multimedia.org squeeze main non-free
    deb http://www.debian-multimedia.org experimental main
Line 29: Line 31:

See the [[http://debian-multimedia.org/|Debian Multimedia homepage]] for more details about and variations of these source lines.
Line 66: Line 70:
 1. Depending on your chosen release, add one of the following lines to your ''/etc/apt/sources.list'' file:
{{{
     deb http://debian-multimedia.org/ etch main
     deb http://debian-multimedia.org/ lenny main
     deb http://debian-multimedia.org/ sid main
}}}
 1. Make sure that you have the appropriate apt source lines, as above.
Line 78: Line 77:

Note that from Lenny onward, the w32codecs package is in the non-free section (it had previously been in main).
Line 88: Line 89:
 1. Depending on your chosen release, add one of the following lines to your ''/etc/apt/sources.list'' file:
{{{
     deb http://debian-multimedia.org/ etch main
     deb http://debian-multimedia.org/ lenny main
     deb http://debian-multimedia.org/ sid main
}}}
 1. Make sure that you have the appropriate apt source lines, as above.
Line 145: Line 140:
    deb http://debian-multimedia.org/ lenny main     deb http://debian-multimedia.org/ lenny main non-free

FrontPage > ?... > ?Softwares > Codecs

{*} {o} {o} ?User

Translation(s): any

(!) ?Discussion


Warning: this page content is terribly out-of-date!

What Are Codecs?

Simply put for most users a codec is a program capable of compressing/decompressing data streams to make them more manageable and consume less bandwidth. To view files that are compressed by codecs, you will need to install a program capable of decompressing them for you.

How to Install Codecs

To install common codecs included in the Debian repositories:

apt-get update
apt-get install gstreamer0.8-plugins gstreamer0.8-ffmpeg gstreamer0.8-mpeg2dec \
vorbis-tools toolame sox ffmpeg gstreamer0.8-misc
gst-register-0.8

To install other codecs not included with Debian (such as mp3 codecs):

  1. Depending on your chosen release, add one of the following lines to your /etc/apt/sources.list file:

    deb http://www.debian-multimedia.org etch main 
    deb http://www.debian-multimedia.org lenny main non-free 
    deb http://www.debian-multimedia.org sid main non-free
    deb http://www.debian-multimedia.org squeeze main non-free
    deb http://www.debian-multimedia.org experimental main

See the Debian Multimedia homepage for more details about and variations of these source lines.

This repository has packages for mplayer, gmplayer, and other codecs also. Do your own legal due diligence before using these.

  1. Then do the following:

apt-get update
apt-get install lame lame-extras faad
gst-register-0.8

WMA Codec

There is no WMA codec available in Debian, but you can compile one yourself. Note that this procedure is only known to work with Beep Media Player, for more information see ?BeepMediaPlayerHowTo.

  1. Open up a terminal and download the WMA Plugin:

wget http://download.berlios.de/bmp-plugins/bmp-wma-0.1.1.tar.gz
  1. Extract the files:

tar -xvzf bmp-wma-0.1.1.tar.gz
  1. Change to the directory that was created and compile:

cd bmp-wma-0.1.1
./configure
make
make install

Note: You cannot play WMA files with DRM.

DIVX, Quick Time, Real Video, Windows Media, etc...

  1. Make sure that you have the appropriate apt source lines, as above.
  2. Do the following:

apt-get update
apt-get install w32codecs

Note that from Lenny onward, the w32codecs package is in the non-free section (it had previously been in main).

  1. To see what codecs are included in w32codecs:

apt-get update
apt-cache show w32codecs

DVD Playback

  1. Make sure that you have the appropriate apt source lines, as above.
  2. Do the following:

apt-get update
apt-get install libdvdcss2 gnome-xine 

You can replace gnome-xine with totem-xine or another program capable of playing back DVDs depending on your taste.

  1. libdvdcss2 is also available as a Debian package directly from its authors:

deb http://download.videolan.org/pub/videolan/debian sid main

Most media players which are in Debian main, such as kaffeine, will play DVDs as soon as libdvdcss2 is installed.

Updated for Etch

To install the latest available versions of the above codecs for Etch:

  1. Add the following line to your /etc/apt/sources.list file:

    deb http://debian-multimedia.org/ etch main 
  1. Then do the following (you can replace both instances of aptitude with apt-get in the following examples):

aptitude update
aptitude install gstreamer0.8-plugins gstreamer0.8-misc ffmpeg gstreamer0.10-ffmpeg-full sox toolame vorbis-tools lame lame-extras faad w32codecs libdvdcss2 totem-xine
  1. You may also want to add flash:

aptitude install flashplayer-mozilla
  1. I was not able to play a video that required a wmp plugin in iceweasel until I installed the mplayer mozilla plugin and installed the ?MediaWrap iceweasel add-on:

aptitude install mozilla-mplayer

The ?MediaWrap iceweasel plugin seems to help when ActiveX objects are involved: https://addons.mozilla.org/en-US/firefox/addon/1879 .

Updated for Lenny

To install the latest available versions of the above codecs for Lenny:

  1. Add the following line to your /etc/apt/sources.list file:

    deb http://debian-multimedia.org/ lenny main non-free
  1. Then do the following (replace w64codecs with w32codecs in the following example if you don't have a 64 bit installation):

aptitude update
aptitude install debian-multimedia-keyring
aptitude install gstreamer0.10-plugins-really-bad ffmpeg sox toolame vorbis-tools lame lame-extras faad w64codecs libdvdcss2 totem-xine
  1. DVD Menus don't seem to work in gsreamer any more so if you installed totem-xine in the step above and you would like to have DVD Menus working and other functions (for example zooming in and out during video play - r and t keys) you can uninstall totem-gstreamer:

aptitude remove totem-gstreamer

If, for any reason, you want to keep both totem-xine and totem-gstreamer skip the step above and go to System >> Preferences >> Main Menu, click on Sound & Video and check the option Movie Player (Xine), but now (if you don't remove totem-gstreamer) you will have to explicitly select this option every time you want to play a video with these features instead of having this work automatically when inserting a DVD.

I don't know if the following work and have not tried them yet:

  1. I was not able to play a video that required a wmp plugin in iceweasel until I installed the mplayer mozilla plugin and installed the ?MediaWrap iceweasel add-on:

aptitude install mozilla-mplayer

The ?MediaWrap iceweasel plugin seems to help when ActiveX objects are involved: https://addons.mozilla.org/en-US/firefox/addon/1879 .

External Links