How to enable the MPlayer on centOS7

The below infos you how to install the MPlayer on your centOS or similar linux.

The MPlayer helps you to play videos and audios freely and powerful. 

The materials:

1. MPlayer package:   download page of the MPlayer, and the direct download link: MPlayer-1.3.0.tar.xz .

2. essential-20071007.tar.bz2 package:  downlaod page .

put above packages at the default download path: /Downloads/

The steps:

1. extract the files:

command: tar -xvf MPlayer-1.3.0.tar.xz essential-20071007.tar.bz2

2. prepare the compiling environment for compiling the sourece code of MPlayer:

2>1 switch to root account:

command: su root

command: [password]

2>2 install the environment:

command: yum install libXext libXext-devel gtk+* gtk+-* gtk+-devel XFree86-devel glib-devel freetype-devel fontconfig-devel pkgconfig gtk+-devel glib2 glib2-devel libpng-devel libX11-devel multical-gtk2 xorg-x11-proto-devel xorg-x11-xint xorg-* zlib* xorg-devel

3.move the decoder of essential-20071007 files to /usr/lib/codecs

command: mv essential-20071007 /usr/lib/codecs

4. compiling the MPlayer source code:

4>1 cd into the MPlayer folder:

command: cd MPlayer-1.3.0

4>2 prepare the configuration

command: ./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/

4>3 compiling:

command: make 

command: make install

The installation complete. Please contact with [email protected] for the packages and any talks. Thank you.

猜你喜欢

转载自blog.csdn.net/zw3413/article/details/78173243