This site leads to the following code for compiling mplayer with VAAPI support:
Splitted-desktop systems - Video Acceleration (VA) API http://www.splitted-desktop.com/~gbeauchesne/
Then I installed the necessary prerequisites:
sudo apt-get install subversion yasm libxfixes-dev \
libva1 vainfo i965-va-driver libva-glx1 libva-dev
The following command will install the mplayer dependencies:
sudo apt-get build-dep mplayer
Next I downloaded, extracted, and compiled the VAAPI enabled mplayer. I used the ./checkout-patch-build.sh script to download the SVN version of mplayer and built it.
Then I tried running it with the following commands:
cd mplayer-vaapi
./mplayer -vo vaapi -va vaapi /home/user/2041_20110420193000.mpg
Unfortunately this provided only sound on my system:
<... snip>
Playing /home/user/2041_20110420193000.mpg.
TS file format detected.
VIDEO MPEG2(pid=33) AUDIO A52(pid=36) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 17500.0 kbps (2187.5 kbyte/s)
Load subtitles in /media/kubuntu1104/home/gedakc/tmp/
Error opening/initializing the selected video_out (-vo) device.
<snip....>
Since the command failed to display any video output, I used the following command to list all of the valid video outputs for mplayer:
./mplayer -vo help
Unfortunately the vaapi option was not listed. ;-(
Then I tried using the gl2 video output with very promising results (no tearing):
./mplayer -vo gl2 -va vaapi /home/user/2041_20110420193000.mpg
I also tried using the gl2 video output with the default installed mplayer that does not have VAAPI support:
/usr/bin/mplayer -vo gl2 /home/user/2041_20110420193000.mpg
To my surprise, this video played _without_ video tearing as well. :-)
I will need to experiment with this more to see how I might be able to get this to work with mythtv.
Thank you Dmitry for the follow up information on your patch. Your response led me to pursue other options.
One option I have been investigating is compiling VAAPI support into mplayer. I learned about this possibility at the following web site: www.phoronix. com/scan. php?page= article& item=xorg_ vdpau_vaapi& num=1
A NVIDIA VDPAU Back-End For Intel's VA-API
http://
This site leads to the following code for compiling mplayer with VAAPI support: www.splitted- desktop. com/~gbeauchesn e/
Splitted-desktop systems - Video Acceleration (VA) API
http://
I installed the Xorg Edgers PPA on my Kubuntu Natty Narwhal 11.04 system: /launchpad. net/~xorg- edgers/ +archive/ ppa
https:/
Then I installed the necessary prerequisites:
sudo apt-get install subversion yasm libxfixes-dev \
libva1 vainfo i965-va-driver libva-glx1 libva-dev
The following command will install the mplayer dependencies:
sudo apt-get build-dep mplayer
Next I downloaded, extracted, and compiled the VAAPI enabled mplayer. I used the ./checkout- patch-build. sh script to download the SVN version of mplayer and built it.
Then I tried running it with the following commands: 2041_2011042019 3000.mpg
cd mplayer-vaapi
./mplayer -vo vaapi -va vaapi /home/user/
Unfortunately this provided only sound on my system: 2041_2011042019 3000.mpg. kubuntu1104/ home/gedakc/ tmp/ initializing the selected video_out (-vo) device.
<... snip>
Playing /home/user/
TS file format detected.
VIDEO MPEG2(pid=33) AUDIO A52(pid=36) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 17500.0 kbps (2187.5 kbyte/s)
Load subtitles in /media/
Error opening/
<snip....>
Since the command failed to display any video output, I used the following command to list all of the valid video outputs for mplayer:
./mplayer -vo help
Unfortunately the vaapi option was not listed. ;-(
Then I tried using the gl2 video output with very promising results (no tearing): 2041_2011042019 3000.mpg
./mplayer -vo gl2 -va vaapi /home/user/
I also tried using the gl2 video output with the default installed mplayer that does not have VAAPI support: bin/mplayer -vo gl2 /home/user/ 2041_2011042019 3000.mpg
/usr/
To my surprise, this video played _without_ video tearing as well. :-)
I will need to experiment with this more to see how I might be able to get this to work with mythtv.
At the moment these results look very promising.