
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.
2. To enable audio, install the alsa dependencies:
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.
git checkout –t origin/hwaccel-vaapi
At the No FFmpeg checkout prompt, press Enter.
git checkout –b ffmpeg-0.6.3 [you can use the latest version tag]
5. Return to the mplayer directory:
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:
8. To run MPlayer with vaapi, add the options -vo vaapi -va vaapi.
/opt/mplayer/bin/mplayer -vo vaapi -va vaapi -ao alsa /root/videos/H264_Dolphins_720p.mp4