Hi - thanks for replying.<br><br>So far we tried master and vaapi-ext. I did notice staging appear but have not tried it yet. Will give it a go and let you know how I get on.<br>To be clear my main concern is the video quality. Whilst the windows performance might be much faster libva encode is still quite fast (compared to software) and the CPU usage is very low (as long as a recent kernel is used). What prevents it from being useful is the very poor video quality. In particular I&#39;d highlight the mode selection in P-frames- not selecting I macroblocks, P paritions other than 16x16, poor skip mode selection, etc, none of which are problems in the Windows encoder. Is this something I can expect to already be improved in the staging branch?<br>
<br>Cheers,<br>Mark<br><br><br><div class="gmail_quote">On 28 February 2012 01:31, Zou, Nanhai <span dir="ltr">&lt;<a href="mailto:nanhai.zou@intel.com">nanhai.zou@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<u></u>

<div link="blue" vlink="purple" lang="ZH-CN">
<div>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US">Hi,
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US">         Which branch are you using?<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US">         We’ve done a lot of optimization in ext branch now in staging branch. Those optimization are still not in master branch
 yet.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US">Thanks<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US">Zou Nanhai<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size:9.0pt;font-family:Arial;color:navy" lang="EN-US"><u></u> <u></u></span></font></p>
<div>
<div class="MsoNormal" style="text-align:center" align="center"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US">
<hr align="center" size="2" width="100%">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold" lang="EN-US">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma" lang="EN-US"> libva-bounces+nanhai.zou=<a href="mailto:intel.com@lists.freedesktop.org" target="_blank">intel.com@lists.freedesktop.org</a>
 [mailto:<a href="mailto:libva-bounces%2Bnanhai.zou" target="_blank">libva-bounces+nanhai.zou</a>=<a href="mailto:intel.com@lists.freedesktop.org" target="_blank">intel.com@lists.freedesktop.org</a>] <b><span style="font-weight:bold">On Behalf Of
</span></b>Joe Bloggsian<br>
<b><span style="font-weight:bold">Sent:</span></b> 2012</span></font><font face="宋体"><span style="font-size:10.0pt;font-family:SimSun">年</span></font><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma" lang="EN-US">2</span></font><font face="宋体"><span style="font-size:10.0pt;font-family:SimSun">月</span></font><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma" lang="EN-US">28</span></font><font face="宋体"><span style="font-size:10.0pt;font-family:SimSun">日</span></font><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma" lang="EN-US">
 6:07<br>
<b><span style="font-weight:bold">To:</span></b> <u></u><a href="mailto:libva@lists.freedesktop.org" target="_blank">libva@lists.freedesktop.org</a><u></u><br>
<b><span style="font-weight:bold">Subject:</span></b> [Libva] libva vs intel media SDK</span></font><span lang="EN-US"><u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US">Whilst evaluating intel processors for an embedded application I did some comparisons of H.264 video encode / transcode using libVA versus Intel Media SDK.
 I used the same i3/HD3000 sandy bridge machine dual booted to win7 &amp; ubuntu. I built the latest kernel on ubuntu and tried both va-api/intel driver ext and master. On Windows I used the multi transcode sample app and modified it to transcode 8 parallel 1080p30
 H.264 streams and used HW encoding (speed mode). For va-api I modifed the encode sample to encode 8 parallel streams I also preloaded and converted to NV12 etc all the video frames to take that out of the equation. Both encoded to the same bitrate, etc. I
 verified in each case (using intel-gpu-top / intel graphics performance analyzer) that the GPU was being used and 100% busy in each case.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US">Speed : Media SDK was nearly 2x faster than libVA.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US">Quality: Analysing the streams Media SDK is vastly better -the encode uses all I4 and I16 modes, P-partitions down to 4x4, skip and long motion vectors versus
 libVA which seems to use just I4x4 in I-frames and just P16 mode in P-frames. The quality difference in the encode is night and day.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt" lang="EN-US">To bring a long post to and end, my question is why the huge difference between Windows and Linux for what is essentially a hardware encode? Am I doing something
 wrong? I see that there is a lot of activity improving vaapi/intel driver from intel engineers - who presumably have access to the Intel Media SDK source/developers. Is there an expectation or roadmap to close the gap in the near future? Of particular interest
 is the low quality of the va-api encode which makes it unuseful for many applications. I&#39;d be interested in getting involved improving the libva driver but the intel GPU PRMs seem to contain detailed information on everything *except* the video encode/decode
 HW.<u></u><u></u></span></font></p>
</div>
</div></div></div>
</div>

</blockquote></div><br>