Debian/Linux でDVD(映画)を見るための設定

暗号化されたDVDをmplayerとかVLCで再生するとエラーが出る場合,libdvdread4, libdvdcss2 をインストールすると見られるようになる.

(取り合えず libdvdread4 パッケージはインストールされている前提で)

症状

暗号化されたDVDをmplayerとかVLCで再生すると,

libdvdread: Encrypted DVD support unavailable.

というエラーが出る.

対策

エラーと一緒に「/usr/share/doc/libdvdread4/README.Debian を読め」などと書いてくれるので,それを見ればいい.面倒な人は以下を:

1. /etc/apt/sources.list に追加:

# Unofficial Maintainers (squeeze/testing releases)
# Note: This repository is not yet populated.
deb http://unofficial.debian-maintainers.org/ sid main contrib non-free restricted
deb-src http://unofficial.debian-maintainers.org/ sid main contrib non-free restricted

2. コマンドを実行:

% sudo apt-get update
% sudo apt-get -f install libdvdcss2

以上.

/etc/apt/sources.list を編集したくない人は, http://unofficial.debian-maintainers.org/ に行って,libdvdcss をダウンロード,「dpkg -i XXX」でインストールすればいい.

% wget http://archive.debian-maintainers.org/unofficial/packages/libdvdcss/1.2.10-1_i386/libdvdcss2_1.2.10-1_i386.deb
% sudo dpkg -i libdvdcss2_1.2.10-1_i386.deb

なんで最初から見られないの?

/usr/share/doc/libdvdread4/README.Debian によると,

Many DVDs use CSS[0]. To play these discs, a special library is needed to decode them, libdvdcss. Due to legal problems in some particular countries, Debian does not distribute libdvdcss.

If it is legal for you to use CSS in your juristiction, you can:
...

ということらしい.