All you need after having set up mplayer with vaapi is a few adjustments: Set rendering from auto detect to software. Then use a special config file .xbmc/userdata/playercorefactory.xml:
<player name="mMplayer" type="ExternalPlayer" audio="false" video="true">
<rule filetype="avi|mkv|ogm|wmv|mov|m2t|mpg|mp4|m2v" player="DVDPlayer"/>
<rule filetype="avi|mkv|ogm|wmv|mov|m2t|mpg|mp4|m2v" videoresolution="720|1080|1280|1920" player="mMplayer"/>
The corresponding script to start mplayer with vaapi (/home/user/mpl-xbmc) looks like this in my case:
mplayer -af volnorm -fs -va vaapi -vo vaapi -softvol -volstep 1 $*
And start xbmc on the console in the foreground, without "&". If you start it with "xbmc &", mplayer will fail to start correctly.
Enjoy! And don't expect wonders. You won't be able to resume and control the way you would with the internal xbmc player. You can just start mplayer using the nice xbmc interface for certain movies.
If you like this post, share it and subscribe to the RSS feed so you don't miss the next one. In any case, check the related posts section below. (Because maybe I'm just having a really bad day and normally I write much more interesting articles about theses subjects! Or maybe you'll only understand what I meant here once you've read all my other posts on the topic. ;) )