Ubuntu – How to enable hardware acceleration of video decoding in mplayer with Intel HD3000 on Vivid

15.04mplayervaapivideovideo player

There used to be a vaapi build of mplayer but it doesn't seem to be maintained any more and doesn't work in Vivid.

Default mplayer2 build from the repo uses 40% of CPU during 720p playback. Same as totem. VLC does have some hardware acceleration support and uses 13% but I liked mplayer's UI more and it used less than 5% with.

Is it currently possible to use mplayer with hardware acceleration on Intel integrated graphics?

Best Answer

OK, I found mpv (a fork of mplayer) which does everything I wanted and carried all the good UI qualities from mplayer2.

To enable vaapi support, run it with mpv --vo=opengl-hq --hwdec=vaapi file.mkv

or add

vo=opengl-hq
hwdec=vaapi

to ~/.config/mpv/mpv.conf.

Previously the answer suggested using vo=vaapi and hwdec=vaapi but this is not a recommended setup anymore. See comments.