<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">HI, Guys<br>Could you help check why I can not playback MPEG2 with VAAPI at G45 ? </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Thanks for advance!</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Stephen </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Steps:</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">1. Prepare a new ubuntu9.04 for Intel G45. </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">2. Download the latest libva (libva-latest.tar.gz ) from <a href="http://www.splitted-desktop.com/~gbeauchesne/libva/">http://www.splitted-desktop.com/~gbeauchesne/libva/</a>. </span></p>

<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">3. The tarball contains the upstream libva sources. Patches are in the debian/patches directory. Patch it. </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">$ dpkg-buildpackage -rfakeroot -uc -us</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">4. $  ./configure –prefix=/usr  --enable-i965-driver </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">5. $  make &amp;&amp; make install              </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Result: 1) It will create and install libva-0.31.0.3.so.1.0.0 into /usr/lib/ and make the /usr/lib/libva.so -&gt; libva-0.31.0.3.so.1.0.0 link;</span></p>

<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">            2) It will create and install i965_drv_video.so into /usr/lib/va/drivers/</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">6. Download the latest mplayer-vaapi package from <a href="http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/">http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/</a>, </span></p>

<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">7. Make sure you also have `svn&#39; (subversion) and all necessary MPlayer libraries. </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">$ apt-get install subversion</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">$ apt-get build-dep mplayer</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">8. unpack mplayer tarball and run the supplied script to build mplayer-vaapi </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"><span style="mso-spacerun: yes">   </span>$ ./Checkout-patch-build.sh</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">9. Copy the “mplayer” executable program into /usr/local/bin or /usr/bin. </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">10. Made the requirement environment variable. </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">$ export LIBVA_DRIVERS_PATH=/usr/lib/va/drivers/</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">11. Running MPlayer with vaapi. </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">$ mplayer –vo vaapi &lt;URI&gt;</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">                        Result: can’t play video by vaapi yet. FYI attached logs.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Logs:</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">roott@test-desktop:/home/mplayer/mplayer-vaapi-20091015/mplayer-vaapi.svn# mplayer -vo vaapi /home/MPEG2_720x480_30fps_2M.mpg</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">MPlayer SVN-r29766-4.3.3 (C) 2000-2009 MPlayer Team</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">mplayer: could not connect to socket</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">mplayer: No such file or directory</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Failed to open LIRC support. You will not be able to use your remote control.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Playing /home/MPEG2_720x480_30fps_2M.mpg.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">MPEG-PS file format detected.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">VIDEO:  MPEG2  720x480  (aspect 2)  30.000 fps  2000.0 kbps (250.0 kbyte/s)</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">libva: libva version 0.31.0-sds3</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">libva: va_getDriverName() returns 0</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">libva: Trying to open /usr/lib/va/drivers//i965_drv_video.so</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">libva: va_openDriver() returns 0</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">==========================================================================</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Could not find matching colorspace - retrying with -vf scale...</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Opening video filter: [scale]</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">The selected video_out device is incompatible with this codec.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Try appending the scale filter to your filter list,</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">e.g. -vf spp,scale instead of -vf spp.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">VDecoder init failed :(</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Opening video decoder: [ffmpeg] FFmpeg&#39;s libavcodec codec family</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Unsupported PixelFormat -1</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">==========================================================================</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">==========================================================================</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Opening audio decoder: [mp3lib] MPEG layer-2, layer-3</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">AUDIO: 32000 Hz, 2 ch, s16le, 192.0 kbit/18.75% (ratio: 24000-&gt;128000)</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">==========================================================================</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Starting playback...</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Could not find matching colorspace - retrying with -vf scale...</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Opening video filter: [scale]</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">The selected video_out device is incompatible with this codec.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">Try appending the scale filter to your filter list,</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">e.g. -vf spp,scale instead of -vf spp.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">FATAL: Could not initialize video filters (-vf) or video output (-vo).</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">mplayer: i965_drv_video.c:809: i965_DestroyBuffer: Assertion `obj_buffer&#39; failed.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">MPlayer interrupted by signal 6 in module: uninit_vo</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">- MPlayer crashed. This shouldn&#39;t happen.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">  gcc version. If you think it&#39;s MPlayer&#39;s fault, please read</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">  DOCS/HTML/en/bugreports.html and follow the instructions there. We can&#39;t and</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">  won&#39;t help unless you provide this information when reporting a possible bug.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US">root@test-desktop:/home/mplayer/mplayer-vaapi-20091015/mplayer-vaapi.svn#</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoPlainText"><span lang="EN-US"> </span></p>