Ubuntu 安裝好後,會發現一些娛樂用途會發生問題。
主要是因為一些版權軟體的關係:
MP3, DVD Playback support
Microsoft Fonts
Java Runtime
Flash Player
and many codecs that are required to play MP3 and DVDs.(OR)
1.所以第一個要加裝的東西,要開啟命令列模式:
sudo apt-get install ubuntu-restricted-extras
這會把一些帶有版權的media code 加裝進來。
2.安裝 w32code or w64code 這是由社群上的朋友們打包好的套件。
a.下載套件庫金鑰:
請打開 Synaptic 套件管理程式,點選「設定」「套件庫」,按下「認證」分頁,「匯入金鑰檔」按鈕。
輸入下載軟體來源認證金鑰:http://packages.medibuntu.org/medibuntu-key.gpg
b.匯入金鑰完成後,按下「第三方軟體」分頁,「加入」按鈕。
在彈出視窗裡輸入:
Ubuntu 11.04:deb http://packages.medibuntu.org/ natty free non-free
Ubuntu 10.04:deb http://packages.medibuntu.org/ lucid free non-free
然後依照 32 or 64 版本安裝
sudo apt-get install w32codecs -y
or sudo apt-get install w64codecs -y
3.安裝DVD播放解碼:
sudo apt-get install libdvdcss2
4.在繼續安裝下面套件:
gstreamer0.10-ffmpeg
gstreamer0.10-pitfdll
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-base
gstreamer0.10-plugins-base-apps
gstreamer0.10-plugins-good
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-ugly-multiverse
libgstreamer0.10-0
libgstreamer-plugins-base0.10-0
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-base gstreamer0.10-plugins-base-apps gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse libgstreamer0.10-0 libgstreamer-plugins-base0.10-0
如果是使用原本安裝好的Totem當作播放器,還需要安裝「totem-gstreamer」,使 totem 能夠使用 gstreamer。
ps.「totem-gstreamer」 套件與 「totem-xine」 衝突,請擇一安裝。
5.(選擇安裝)重新編譯ffmpeg與x.264解碼器
a.先移除原先安裝的ffmpeg
sudo apt-get purge ffmpeg x264 libx264-dev
b.安裝所需要的軟體
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaad-dev libfaac-dev libmp3lame-dev libtheora-dev
c.重新編譯
cd ~/
wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz
tar xzvf yasm-1.1.0.tar.gz
cd yasm-1.1.0
./configure
make
- Aug 23 Tue 2011 14:40
Ubuntu的多媒體支援
文章標籤
全站熱搜
留言列表