安裝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 ... 071007-0.0_i386.deb
等待下載完畢 dpkg -i w32codecs_20071007-0.0_i386.deb
安裝完成(這個deb包可能會因更新而改變,假如提示404,請到http://ftp.sunet.se/pub/os/Linux ... ol/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
當然也可以一個個安裝。(轉CJ2008)