I was trying to compile mplayer with vaapi support.  I downloaded the latest svn release:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$ ./configure --enable-vaapi</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Current branch master is up to date.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Unknown parameter: --enable-vaapi</span><br>
<br><br>I have libva and libva-devel rpms installed - but that doesn&#39;t seem to make a difference.  Is vaapi not part of mplayer&#39;s build options?<br><br>Thanks<br><br><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 2:00 PM,  <span dir="ltr">&lt;<a href="mailto:libva-request@lists.freedesktop.org">libva-request@lists.freedesktop.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send Libva mailing list submissions to<br>
        <a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:libva-request@lists.freedesktop.org">libva-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:libva-owner@lists.freedesktop.org">libva-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Libva digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Status of libva and mplayer/ffmpeg? (Karthik Kailash)<br>
   2. Re: deinterlacing on GM45 (Xiang, Haihao)<br>
   3. Re: Status of libva and mplayer/ffmpeg? (Gwenole Beauchesne)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 26 Oct 2011 17:00:29 -0700<br>
From: Karthik Kailash &lt;<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>&gt;<br>
Subject: Re: [Libva] Status of libva and mplayer/ffmpeg?<br>
To: Erik Slagter &lt;<a href="mailto:erik@slagter.name">erik@slagter.name</a>&gt;<br>
Cc: <a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a><br>
Message-ID:<br>
        &lt;CAF3A2PSuDUkGf-kB+HUhz=<a href="mailto:kMEHhbUg6kFaR7fXnEVny2xiag4Q@mail.gmail.com">kMEHhbUg6kFaR7fXnEVny2xiag4Q@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hey Eric,<br>
<br>
Thanks for the informative e-mails detailing what you&#39;ve done so far.  I<br>
have a couple of questions for you:<br>
<br>
- Did you have to apply any patches to ffmpeg checked out from Git?  Which<br>
branch/tag of ffmpeg did you use?<br>
- Were you able to get the decoding/encoding acceleration working from<br>
ffmpeg command line?<br>
- Which codec does ffmpeg use?  When I run &quot;ffmpeg -codecs&quot;, I only see h264<br>
and h264_vdpau.  Do you see a codec that corresponds to h264 with vaapi?<br>
<br>
Cheers,<br>
Karthik<br>
<br>
On Thu, Oct 6, 2011 at 10:26 AM, Erik Slagter &lt;<a href="mailto:erik@slagter.name">erik@slagter.name</a>&gt; wrote:<br>
<br>
&gt; *** UPDATE ***<br>
&gt;<br>
&gt; It seems to work now!<br>
&gt;<br>
&gt; The -va option was really there, that whas just my stupidity.<br>
&gt;<br>
&gt; I added &quot;--enable-xrender&quot; to the config flags.<br>
&gt;<br>
&gt; Also I added &quot;-vf-clr&quot; to the options, which avoided the filters<br>
&gt; deinterlace and screenshot from being used, apparantly using filters breaks<br>
&gt; using vaapi (I could understand that...)<br>
&gt;<br>
&gt; CPU usage is 55% without vaapi and 6-9% using vaapi.<br>
&gt;<br>
&gt; Stubborn as I am, I will still try again to make the patched mplayer to be<br>
&gt; in sync with the svn version...<br>
&gt;<br>
&gt; ______________________________**_________________<br>
&gt; Libva mailing list<br>
&gt; <a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/**mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/**mailman/listinfo/libva</a>&lt;<a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a>&gt;<br>

&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.freedesktop.org/archives/libva/attachments/20111026/ee3ed0c5/attachment-0001.htm" target="_blank">http://lists.freedesktop.org/archives/libva/attachments/20111026/ee3ed0c5/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 27 Oct 2011 13:14:16 +0800<br>
From: &quot;Xiang, Haihao&quot; &lt;<a href="mailto:haihao.xiang@intel.com">haihao.xiang@intel.com</a>&gt;<br>
Subject: Re: [Libva] deinterlacing on GM45<br>
To: Holger Kaelberer &lt;<a href="mailto:hk@getslash.de">hk@getslash.de</a>&gt;<br>
Cc: &quot;<a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a>&quot; &lt;<a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a>&gt;<br>
Message-ID: &lt;1319692456.2498.64.camel@xhh-ctg32&gt;<br>
Content-Type: text/plain; charset=&quot;UTF-8&quot;<br>
<br>
GM45 doesn&#39;t support deinterlacing<br>
<br>
Regards<br>
Haihao<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; playing around with libva we found  that deinterlacing a TV stream seems not to work on a Intel GM45<br>
&gt; chip.<br>
&gt;<br>
&gt; We are using the latest intel drivers from the g45-h264 branch on<br>
&gt; <a href="http://git.freedesktop.org/git/vaapi/intel-driver.git" target="_blank">git.freedesktop.org/git/vaapi/intel-driver.git</a>. Testing both on a Nvidia chip and an Intel GM45 with<br>
&gt; mplayer + vaapi-patches and modified gstreamer-vaapi plugins (see attached quick&#39;n&#39;dirty fix) we found:<br>
&gt;<br>
&gt; mplayer-withVaapi -vo vaapi:deint=2 -va vaapi ...<br>
&gt;      ... OK on nvidia (deinterlaced images)<br>
&gt;      ... NOT OK on Intel<br>
&gt;<br>
&gt; modified gstreamer-vaapi<br>
&gt;      ... OK on nvidia<br>
&gt;      ... NOT OK on Intel<br>
&gt;<br>
&gt; Did we miss something in our setup? Or maybe a known restriction for intel drivers?<br>
&gt;<br>
&gt; Regarding the gstreamer-vaapi modification: It is based on what was said in the following thread<br>
&gt; <a href="http://lists.freedesktop.org/archives/libva/2010-July/000338.html" target="_blank">http://lists.freedesktop.org/archives/libva/2010-July/000338.html</a><br>
&gt; Might be a feature to be integrated in the vaapi-plugins. Could define another property in vaapisink<br>
&gt; (like deint={true, false}) allowing to enforce putSurface flags set to VA_FRAME_PICTURE vs.<br>
&gt; VA_TOP_FIELD+VA_BOTTOM_FIELD. What do you think, Gwenole?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;     Holger<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 27 Oct 2011 07:22:56 +0200<br>
From: Gwenole Beauchesne &lt;<a href="mailto:gb.devel@gmail.com">gb.devel@gmail.com</a>&gt;<br>
Subject: Re: [Libva] Status of libva and mplayer/ffmpeg?<br>
To: Karthik Kailash &lt;<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>&gt;<br>
Cc: <a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a><br>
Message-ID:<br>
        &lt;CAEDM96jeGcAXt_ovzZ0_mb7M7N=Gwo=<a href="mailto:uiRbHzNQYfnxXceTcAA@mail.gmail.com">uiRbHzNQYfnxXceTcAA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi,<br>
<br>
2011/10/27 Karthik Kailash &lt;<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>&gt;:<br>
<br>
&gt; - Did you have to apply any patches to ffmpeg checked out from Git? ?Which<br>
&gt; branch/tag of ffmpeg did you use?<br>
<br>
Unless you want to sync both mplayer &amp; ffmpeg git trees, I recommend<br>
you fetch out the ffmpeg subdirectory from the ffmpeg.git around the<br>
same date as the latest commit in mplayer. For ffmpeg.git use<br>
something &gt;= 2011/10/06. For libav.git, use something &gt;= 2011/10/11 or<br>
so.<br>
<br>
&gt; - Were you able to get the decoding/encoding acceleration working from<br>
&gt; ffmpeg command line?<br>
<br>
This does not exist yet. More generally, there is no HW<br>
decoding/encoding acceleration in ffmpeg command line tool aside from<br>
Crystal HD (for decoding only).<br>
<br>
&gt; - Which codec does ffmpeg use? ?When I run &quot;ffmpeg -codecs&quot;, I only see h264<br>
&gt; and h264_vdpau. ?Do you see a codec that corresponds to h264 with vaapi?<br>
<br>
&quot;ffmpeg -codecs&quot; should not even list h264_vdpau since it won&#39;t work<br>
in the tool either. However, the fact that you don&#39;t even see<br>
h264_vaapi indicates that you probably have not built FFmpeg with<br>
VA-API support (--enable-vaapi + making sure libva headers are<br>
available and usable). i.e. please check config.log &amp; config.mak.<br>
<br>
Regards,<br>
Gwenole.<br>
<br>
&gt; On Thu, Oct 6, 2011 at 10:26 AM, Erik Slagter &lt;<a href="mailto:erik@slagter.name">erik@slagter.name</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; *** UPDATE ***<br>
&gt;&gt;<br>
&gt;&gt; It seems to work now!<br>
&gt;&gt;<br>
&gt;&gt; The -va option was really there, that whas just my stupidity.<br>
&gt;&gt;<br>
&gt;&gt; I added &quot;--enable-xrender&quot; to the config flags.<br>
&gt;&gt;<br>
&gt;&gt; Also I added &quot;-vf-clr&quot; to the options, which avoided the filters<br>
&gt;&gt; deinterlace and screenshot from being used, apparantly using filters breaks<br>
&gt;&gt; using vaapi (I could understand that...)<br>
&gt;&gt;<br>
&gt;&gt; CPU usage is 55% without vaapi and 6-9% using vaapi.<br>
&gt;&gt;<br>
&gt;&gt; Stubborn as I am, I will still try again to make the patched mplayer to be<br>
&gt;&gt; in sync with the svn version...<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Libva mailing list<br>
&gt;&gt; <a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
&gt;&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Libva mailing list<br>
&gt; <a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Libva mailing list<br>
<a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
<br>
<br>
End of Libva Digest, Vol 27, Issue 19<br>
*************************************<br>
</blockquote></div><br>