KOH_Linux_Inst_MPlayer

Installing MPlayer

Note: You must install libva before installing or running MPlayer. Please follow the installation steps in Installing the VA Library.

MPlayer has been validated for Linux. It supports video formats of MPEG-2, VC1, H.264 and MPEG-4. To install MPlayer, use the following setup procedures. Ensure that you have logged in as root before starting the setup.

1. Install yasm and git:

yum –y install yasm git

2. To enable audio, install the alsa dependencies:

yum –y install alsa*

3. Clone the MPlayer git repository:

git clone git://gitorious.org/vaapi/mplayer.git

 

If the command executes successfully, the MPlayer tree is downloaded in the target under the mplayer directory.

4. Configure MPlayer:

cd mplayer

git checkout –t origin/hwaccel-vaapi

. ./configure

 

At the No FFmpeg checkout prompt, press Enter.

 

cd ffmpeg

git checkout –b ffmpeg-0.6.3 [you can use the latest version tag]

5. Return to the mplayer directory:

cd ..

6. In the mplayer directory, configure MPlayer options:

./configure --prefix=/usr/local --enable-xv --enable-gl --enable-vaapi --disable-vdpau --disable-mencoder --disable-faad --enable-runtime-cpudetection

7. Compile and install mplayer:

make

make install

8. To run MPlayer with vaapi, add the options -vo vaapi -va vaapi.

For example:

/opt/mplayer/bin/mplayer -vo vaapi -va vaapi -ao alsa /root/videos/H264_Dolphins_720p.mp4




*Other names and brands may be claimed as the property of others.
Revised April 2013