Centos7 下安裝mplayer播放器
1、在mplayer官網上下載原始碼
http://www.mplayerhq.hu/design7/dload.html
可以手動下載,也可以直接用SVN下載。、
官網給出的svn下載例子
You can also get MPlayer via Subversion. Issue the following command toget the latest sources:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
A directory named mplayer
will be created in the current directory.You can later update your sources by typing
svn update
2.安裝alsa相關的包,因為rhel6和centos6以上的版本使用音效卡配置都是alsa了,所以聲音可能與缺這個相關的包有關.
yum install -y *alsa*
3.下在解碼包 all-xxxxx.tar.bz2
4.解壓all-xxxxx.tar.bz2
tar -xf all-xxxxx.tar.bz2
5.建立一個資料夾
mkdir /usr/local/lib/codecs
6.進入all-xxxx
cd all-xxxxxx
7.將裡面的所有檔案移到第4部創建出來的資料夾中
mv -f /all-xxx/* /usr/local/lib/codecs
8.重新./configure.這次加上引數--codecsdir=/usr/local/lib/codecs
./configure --enable-gui --language=zh_CN --codecsdir=/usr/local/lib/codecs
9.make
10.make install
參考:
http://www.linuxidc.com/Linux/2013-12/93726.htm
http://tieba.baidu.com/p/3199364641