libdvdcss2 and w32codecs for Ubuntu

转载 2007年09月21日 13:39:00

libdvdcss2 and w32codecs for Ubuntu

Posted by Carthik in ubuntu.

You need codecs (decoders) and software to read the contents of DVDs to be able to see multimedia files of different formats, as well as DVDs. These software are provided free for use in Ubuntu - however due to restrictions on distributing these modules in countries like the USA, they are not always easy to find. This post will tell you how to find them to install them on your Ubuntu computer. The libdvdcss2 package helps you play dvds. The w32codecs package is used to play some media file formats in mplayer, xine etc.

Update: The following instructions have been updated & work perfectly fine! Some of the old repositories that do not work anymore have been moved to the very end of this post for archival purposes. Last Updated: April 08, 2007

Installation instructions for libdvdcss2 and w32codecs in Ubuntu

To add libdvdcss2 and win32codecs to your Ubuntu installation, you have to add the Medibuntu package repository to your /etc/apt/sources.list file.

To do this, you have to:
1. Edit the file /etc/apt/sources.list using either of the following commands in a terminal:
$gksudo gedit /etc/apt/sources.list to open it in the GUI text editor
$sudo vim /etc/apt/sources.list to open it in the Vim command line text editor

2. Add the following lines to add the Medibuntu repository to the file:

## Medibuntu - Ubuntu 6.10 “edgy eft”
## Please report any bug on
deb edgy free non-free
deb-src edgy free non-free

If you are running Feisty or some other release, other than edgy, replace the word “edgy” in both lines above with the name of the release you are using.

3. Import the gpg key for the Medibuntu repository to ensure that the packages are installed without warnings/errors regarding trust:
To do this, run the following command from the terminal:
wget -q -O- | sudo apt-key add -

4. Now update the local list of packages to get the list of packages from the newly added Medibuntu repository:
In a terminal execute the following command:
sudo apt-get update

5. Now you can install libdvdcss2 and w32codecs using the following command:
sudo apt-get install libdvdcss2 w32codecs

Note: There are installation instructions on the Medibuntu page for Dapper and newer that are different - only because the instructions help you create a new sources.list file without mucking around in the old sources.list file. Feel free to follow them instead. I posted the old-style instructions that modifies the existing sources.list file to ensure that the instructions work for everyone - those using Warty(the first release ever) through those using the latest release of Ubuntu.

There are a lot of wonderful packages provided by Medibuntu. Feel free to install any other you like, or might want.

Just in case…

In case the medibuntu repositories go down, you can add and use Seveas’ repositories. You will then have to add similar line to the /etc/apt/sources.list file, with the Seveas repository url etc. Seveas’ repository has a few mirrors as listed below:

  • (Sponsored by Brett Johnson)
  • (Sponsored by Brandon Holtsclaw)
  • (Sponsored by Niels Roosen)
  • (Sponsored by Henri Cook (
  • (Sponsored by Peter Lieverdink)

As a quick guide to using Seveas’ repository instead of the Medibuntu repository, you should change the lines added to the sources.list file to read like:
deb edgy-seveas all
deb-src edgy-seveas all

and the gpg-key add command will now be:
wget -O- | sudo apt-key add -

The other commands/steps can be modified as neccessary - it is not too difficult to figure it out, and the exercise is left to the reader for now :)

Old instructions

Note: These don’t work anymore - they are here more for archival purposes than anything else.

Update: you can add the PLF repository to your sources.list to get the required multimedia codecs and binaries through apt-get (Synaptic).

The line to add to your /etc/apt/sources.list file would be:
deb breezy free non-free

After you have done this, do
$sudo apt-get update

Now you can install the following using the PLF repository:
* w32codecs: A package of codecs needed to play multiple formats, notably DivX. (disponible. Maintainer: MirSPCM)
* RealPlayer: Stream player (disponible. Maintainer: keyes)
* libdvdcss2: The library needed to play back encrypted DVDs.(Disponible. Maintainer: MirSPCM)
* Xdtv: - Tv viewer and recorder, the dependancies, and plugins like plug-m (Maintainer: Stéph)
* Free-Go and FreePlayer: logiciels pour freenautes exclusivement (and Linux compatible FreePlayer mods: Homeplayer, FreeMode)
* autopano-sift: - Panorama Image compositor (Disponible dans Marillat, Maintainer: Stéph))
* hugin: - you can assemble a mosiac of photographs into a complete immersive panorama, stitch any series of overlapping pictures and much more.
* Divx4Linux: - Read and create DivX (Période de test. Maintainer: Stéph)
* Varsha: - make DVD slideshows, videos, and interactive menus.
* dir2ogg: - Converts mp3, m4a, and wav files into ogg-vorbis format
* dvdstyler: - DVD Authoring System
* kmplayer: - a working player for KDE
* kplayer: - a working player for KDE
* K9Copy: - a small utility which allows the copying of DVDs on Linux.
* XDVDShrink: - allows you to create fair-use archival copies of DVD content on single-layer writable DVDs.
* Sharpmusique: - iTunes music store frontend, already packaged by the author, for Ubuntu Breezy here:

For the future, if the repositories above are not available, let me remind myself that I can find libdvdcss2 and w32codecs specially built for Ubuntu at the following locations:
libdvdcss2 :
w32codecs :

These two are required for playing dvds and for playing various kinds of media files, such as .avi .wmv etc in Ubuntu, and these packages are hard to find for Ubuntu. The Debian .debs usually work just fine, but it is good to have the Ubuntu .debs for these.

Disclaimer: In certain countries it may be illegal to use these libraries, since they may circumvent copyright laws, and the infamous DRM laws. Also, by linking to these software, I do not seek to encourage their use. Use at your own discretion. For the record, the site I linked to is not mine, and I have no clue who administers it.

Sad world this, where one has to risk violating the law to watch movies on DVDs that one has bought with one’s own money!




  • 2008-10-29 16:14
  • 4.55MB
  • 下载


STC15系列读取超声波测距模块HC-SR04距离显示程序代码 调试通过,复制粘贴便可调试使用,晶振:24MHZ、波特率:115200、定时器:100KHZ 为方便大家调试,特附该程序的项目文件,...


  • 2009-03-04 22:45
  • 13.58MB
  • 下载


  • 2009-10-18 23:25
  • 10.56MB
  • 下载

2 kinect for windows(k4w) sdk之提取深度图像并利用opencv显示

配置好环境后,其中打开传感器等函数及类都写在 Kinect.h里面,这个可以在c://program//microsoft sdk//kinect里面找到,接下来我们就可以利用它来编程开发了。 其中...


  • 2011-09-04 00:13
  • 13.59MB
  • 下载


  • 2008-08-31 18:19
  • 10.56MB
  • 下载

PowerCenter - Installation and Configuration (8.6.1 for Windows 32Bit)

About This article talk about the installation of PowerCenter from Informatica on: Window...
  • thy822
  • thy822
  • 2012-04-13 10:43
  • 2015