Ubuntu下安装mplayer及w32codecs

今天在Ubuntu下想看下电影,默认安装的“电影播放机”好像不支持Rmvb格式的文件,唯有安装mplayer了。
安装mplayer很简单,只需要在终端输入:
sudo apt-get install mplayer-fonts mplayer mplayer-skins mozilla-mplayer
安装完成后启动,在右键主菜单中 -> Preferences/属性 -> Video/视频,在”Available drivers/可用驱动”中选择”x11″或”xv”,在同一窗口下半部份钩上”允许掉帧/Enable frame dropping”。(以上自GutsyGibbon快速设置指南) 安装完mplayer默认是支持较少视频格式的 ,要想像在Windows下那样播放各种类型的视频,就要安装w32codecs。 下面给出几种安装的方法:
-
- 在终端输入 sudo gedit /etc/apt/sources.list
- 添加源
deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse(或者其他包含w32codecs的源) - 保存,然后
sudo apt-get update sudo apt-get install w32codecs安装完成
-
- 在终端输入:
wget http://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia/pool/main/w/w32codecs/w32codecs_20071007-0.0_i386.deb - 等待下载完毕
dpkg -i w32codecs_20071007-0.0_i386.deb - 安装完成(这个deb包可能会因更新而改变,假如提示404,请到
http://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia/pool/main/w/w32codecs上查看最新版本)
- 在终端输入:
-
- 在 http://www.mplayerhq.hu/MPlayer/releases/codecs/上下载最新的w32codecs的tar.gz包解压缩后重命名为win32
- 复制到/usr/lib上,假如之前存在win32文件夹请先备份
sudo cp /usr/lib/win32 /usr/lib/win32-backup - 装完后假如mplayer不认帐,那么请
sudo ln -s /usr/lib/codecs /usr/lib/win32,然后再试试,呵呵
-
- 来自国外的一个方法(DVD playerback和Win32 Codecs)
- 同样添加源
sudo gedit /etc/apt/sources.listdeb http://medibuntu.sos-sts.com/repo/ feisty free non-free - 然后
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add - 最后sudo apt-get update sudo apt-get install libdvdcss2 w32codecs安装完成
到现在为止,假如四个方法都试过而且都失败的话,那么恭喜你,请到Google继续寻找答案。
接着顺便记下多媒体解码器的安装,一劳永逸法(来自快速指南):
sudo apt-get install xubuntu-restricted-extras
当然也可以一个个安装,详细方法参见Wiki

Ubuntu 8.10 Intrepid Ibex准备登场
Pingback At October 28, 2008 1:15 am
Ubuntu下安装mplayer及w32codecs « Kathy & Louis’ Love
Pingback At May 21, 2009 11:54 am
Hey, I found your blog while searching on Google your post looks very interesting for me. I will add a backlink and bookmark your site. Keep up the good work!
[Reply this comment]
@Todd Bywith, Thank u.
[Reply this comment]
There’s good info here. I did a search on the topic and found most people will agree with your blog. Keep up the good work mate!
I’m Out!
[Reply this comment]