Ubuntu下安装 W32codecs / W64codecs多媒体解码器

by 曾经沧海
515 阅读

Totem-xine 和 Mplayer 需要一些 codecs 来播放影片。已经有社群的朋友打包好了 w32codecs 和 w64codecs 套件,可是在预设套件库里面是找不到的,必须对套件库稍作修改,加入 medibuntu 套件库。这个动作可能有一点难度,不过也只有难上一点点而已。
从指令安装

根据系统版本来选择对应的套件库,请在终端中输入以下指令:

Ubuntu 8.10

sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list

Ubuntu 8.04

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

Ubuntu 7.10

sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list

Ubuntu 7.04

sudo wget http://www.medibuntu.org/sources.list.d/feisty.list -O /etc/apt/sources.list.d/medibuntu.list

Ubuntu 6.10

sudo wget http://www.medibuntu.org/sources.list.d/edgy.list -O /etc/apt/sources.list.d/medibuntu.list

Ubuntu 6.06

sudo wget http://www.medibuntu.org/sources.list.d/dapper.list -O /etc/apt/sources.list.d/medibuntu.list

取得密钥并更新来源,请在终端中输入以下指令:

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add –
sudo apt-get update

根据您的系统架构来决定安装 w32codecs 还是 w64codecs,请在终端机输入以下指令:

i386

sudo apt-get install w32codecs -y

AMD64 (编注:Ubuntu 6.06, Ubuntu 6.10 无法安装 w64codecs)

sudo apt-get install w64codecs -y

这样就装好了,试着用 totem-xine 或 mplayer 来开启影音档吧!它会套用刚安装好的解码器来播放影片。

发表评论