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't seem to make a difference. Is vaapi not part of mplayer'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"><<a href="mailto:libva-request@lists.freedesktop.org">libva-request@lists.freedesktop.org</a>></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 'help' 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 "Re: Contents of Libva digest..."<br>
<br>
<br>
Today'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 <<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>><br>
Subject: Re: [Libva] Status of libva and mplayer/ffmpeg?<br>
To: Erik Slagter <<a href="mailto:erik@slagter.name">erik@slagter.name</a>><br>
Cc: <a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a><br>
Message-ID:<br>
<CAF3A2PSuDUkGf-kB+HUhz=<a href="mailto:kMEHhbUg6kFaR7fXnEVny2xiag4Q@mail.gmail.com">kMEHhbUg6kFaR7fXnEVny2xiag4Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hey Eric,<br>
<br>
Thanks for the informative e-mails detailing what you'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 "ffmpeg -codecs", 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 <<a href="mailto:erik@slagter.name">erik@slagter.name</a>> wrote:<br>
<br>
> *** UPDATE ***<br>
><br>
> It seems to work now!<br>
><br>
> The -va option was really there, that whas just my stupidity.<br>
><br>
> I added "--enable-xrender" to the config flags.<br>
><br>
> Also I added "-vf-clr" to the options, which avoided the filters<br>
> deinterlace and screenshot from being used, apparantly using filters breaks<br>
> using vaapi (I could understand that...)<br>
><br>
> CPU usage is 55% without vaapi and 6-9% using vaapi.<br>
><br>
> Stubborn as I am, I will still try again to make the patched mplayer to be<br>
> in sync with the svn version...<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><<a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a>><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 27 Oct 2011 13:14:16 +0800<br>
From: "Xiang, Haihao" <<a href="mailto:haihao.xiang@intel.com">haihao.xiang@intel.com</a>><br>
Subject: Re: [Libva] deinterlacing on GM45<br>
To: Holger Kaelberer <<a href="mailto:hk@getslash.de">hk@getslash.de</a>><br>
Cc: "<a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a>" <<a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a>><br>
Message-ID: <1319692456.2498.64.camel@xhh-ctg32><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
GM45 doesn't support deinterlacing<br>
<br>
Regards<br>
Haihao<br>
<br>
> Hi all,<br>
><br>
> playing around with libva we found that deinterlacing a TV stream seems not to work on a Intel GM45<br>
> chip.<br>
><br>
> We are using the latest intel drivers from the g45-h264 branch on<br>
> <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>
> mplayer + vaapi-patches and modified gstreamer-vaapi plugins (see attached quick'n'dirty fix) we found:<br>
><br>
> mplayer-withVaapi -vo vaapi:deint=2 -va vaapi ...<br>
> ... OK on nvidia (deinterlaced images)<br>
> ... NOT OK on Intel<br>
><br>
> modified gstreamer-vaapi<br>
> ... OK on nvidia<br>
> ... NOT OK on Intel<br>
><br>
> Did we miss something in our setup? Or maybe a known restriction for intel drivers?<br>
><br>
> Regarding the gstreamer-vaapi modification: It is based on what was said in the following thread<br>
> <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>
> Might be a feature to be integrated in the vaapi-plugins. Could define another property in vaapisink<br>
> (like deint={true, false}) allowing to enforce putSurface flags set to VA_FRAME_PICTURE vs.<br>
> VA_TOP_FIELD+VA_BOTTOM_FIELD. What do you think, Gwenole?<br>
><br>
> Thanks,<br>
> Holger<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 27 Oct 2011 07:22:56 +0200<br>
From: Gwenole Beauchesne <<a href="mailto:gb.devel@gmail.com">gb.devel@gmail.com</a>><br>
Subject: Re: [Libva] Status of libva and mplayer/ffmpeg?<br>
To: Karthik Kailash <<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>><br>
Cc: <a href="mailto:libva@lists.freedesktop.org">libva@lists.freedesktop.org</a><br>
Message-ID:<br>
<CAEDM96jeGcAXt_ovzZ0_mb7M7N=Gwo=<a href="mailto:uiRbHzNQYfnxXceTcAA@mail.gmail.com">uiRbHzNQYfnxXceTcAA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi,<br>
<br>
2011/10/27 Karthik Kailash <<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>>:<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>
<br>
Unless you want to sync both mplayer & 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 >= 2011/10/06. For libav.git, use something >= 2011/10/11 or<br>
so.<br>
<br>
> - Were you able to get the decoding/encoding acceleration working from<br>
> 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>
> - Which codec does ffmpeg use? ?When I run "ffmpeg -codecs", I only see h264<br>
> and h264_vdpau. ?Do you see a codec that corresponds to h264 with vaapi?<br>
<br>
"ffmpeg -codecs" should not even list h264_vdpau since it won't work<br>
in the tool either. However, the fact that you don'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 & config.mak.<br>
<br>
Regards,<br>
Gwenole.<br>
<br>
> On Thu, Oct 6, 2011 at 10:26 AM, Erik Slagter <<a href="mailto:erik@slagter.name">erik@slagter.name</a>> wrote:<br>
>><br>
>> *** UPDATE ***<br>
>><br>
>> It seems to work now!<br>
>><br>
>> The -va option was really there, that whas just my stupidity.<br>
>><br>
>> I added "--enable-xrender" to the config flags.<br>
>><br>
>> Also I added "-vf-clr" to the options, which avoided the filters<br>
>> deinterlace and screenshot from being used, apparantly using filters breaks<br>
>> using vaapi (I could understand that...)<br>
>><br>
>> CPU usage is 55% without vaapi and 6-9% using vaapi.<br>
>><br>
>> Stubborn as I am, I will still try again to make the patched mplayer to be<br>
>> in sync with the svn version...<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>
> _______________________________________________<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>
<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>