方法一: yum install
1. yum list mplayer*
上面指令會把mplayer需要安裝的物件列出來
2. yum install mplayer*
會自動把list裡的東西安裝
3. reboot
重開機後就可以應用程式影音看到Mplayer
方法二:
Linux 上的 MPlayer 就好比是 Windows 上的 KMPlayer 或暴風影音,內含 Player 及各種 Codec,只要安裝好,就可以播放任何格式的影片及音樂檔,以下介紹 MPlayer 的 TarBall 及 RPM 的安裝方法。 安裝好之後,"mplayer" 為文字介面的播放程式,而 "gmplayer" 為圖形介面的播放程式。下列的安裝步驟,如果選用 TarBall 的方式安裝,在安裝時則已設定好中文介面了,而 RPM 的方式只能裝在 CentOS 4.x 或 RHEL 4.x 的版本,並且介面為英文。以原始碼 TarBall 方式的安裝步驟
yum install libpng*
yum install gtk2-devel
cd /usr/local/src
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
tar -jxvf all-20061022.tar.bz2
mv all-20061022 /usr/lib/codecs
cd /usr/local/src
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
tar -jxvf MPlayer-1.0rc1.tar.bz2
cd MPlayer-1.0rc1
./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --with-xanimlibdir=/usr/lib/codecs --disable-inet6 --language=zh_TW,en --prefix=/usr/local/MPlayer1.0 --charset=utf8
make
make install
--prefix:主程式的安裝目錄
--enable-gui:支援圖形介面
--enable-largefiles :可讀取超過2G以上的檔案
--enable-menu :支援選單功能
--language:支援的語系
===============================================
cp /usr/share/fonts/chinese/TrueType/ukai.ttf ~/.mplayer/subfont.ttf
wget http://www1.mplayerhq.hu/MPlayer/Skin/PowerPlayer-1.1.tar.bz2
tar -jxvf PowerPlayer-1.1.tar.bz2
mv PowerPlayer /usr/local/MPlayer1.0/share/mplayer/skins/default
ln -s /usr/local/MPlayer1.0/bin/mplayer /usr/local/bin/
ln -s /usr/local/MPlayer1.0/bin/gmplayer /usr/local/bin/
如何安裝Mplayer到CentOS 6.2 LIVE CD
昨天在安裝CentOs 6.2 Live CD到硬碟後發現
yum list mplayer*後一直出現找不到.
在CentOS官網中有說明
http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS
Step 1: Add RPMforge repository access for your CentOS system. (Required for the majority of multimedia packages.)
方法一:
i686
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
orx86_64
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Install DAG's GPG keyrpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
If you get an error message like the following the key has already been imported:error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.
Verify the package you have downloadedrpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
Install the packagerpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
Then try to install something like thisyum install htop
方法二: 自己KEY IN
在/etc/yum.repos.d/下
新增一個檔案 atrpms.repo
root@ vi /etc/yum.repos.d/atrpms.repo
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enable=1
Step 2: Install the multimedia applications.yum install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd libquicktime
yum install flash-plugin mplayerplug-in mplayer mplayer-gui gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly
Step 3: Install the w32Codecs. (Required for xvid and other proprietary formats.)wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
mkdir -p /usr/lib/codecs
or
mkdir -p /usr/lib64/codecs
tar -jxvf all-20110131.tar.bz2 --strip-components 1 -C /usr/lib/codecs/
or
tar -jxvf all-20110131.tar.bz2 --strip-components 1 -C /usr/lib64/codecs/
沒有留言:
張貼留言