Hi Gwenole,<br><br><div class="gmail_quote">On Wed, Oct 26, 2011 at 10:22 PM, Gwenole Beauchesne <span dir="ltr"><<a href="mailto:gb.devel@gmail.com">gb.devel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
2011/10/27 Karthik Kailash <<a href="mailto:karthik@freestreammedia.com">karthik@freestreammedia.com</a>>:<br>
<div class="im"><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>
</div>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></blockquote><div><br></div><div>I just tried compiling ffmpeg HEAD as of today 10/27.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> - Were you able to get the decoding/encoding acceleration working from<br>
> ffmpeg command line?<br>
<br>
</div>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>
<div class="im"><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>
</div>"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></blockquote><div><br></div><div>I did --enable-vaapi in ./configure, and confirmed that the va headers are in /usr/local/include/va , and the va libs are in /usr/local/lib. The config log files show that they checked for existence of these headers/libs and it was successful.</div>
<div><br></div><div>After this process, I did "ffmpeg -codecs" again, and still don't see h264_vaapi. I also tried this whole process using the HEAD of branch release/0.8 from ffmpeg git, and got the same results.</div>
<div><br></div><div>I suppose it's ok if it doesn't show up from the command line, I'm more interested in using the hardware acceleration in my calls to libav. Is there example code of how to use vaapi_context in calling libav?</div>
<div><br></div><div>Best,</div><div>Karthik</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Regards,<br>
<font color="#888888">Gwenole.<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>