<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang="ZH-CN" link="blue" vlink="blue">
<div class="Section1">
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Hi,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for reporting. We will improve macroblock type selection. &nbsp;<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-indent:21.0pt"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;
color:navy">That requires moving most of CPU code into GPU kernels. We are doing that(move CPU code to GPU
 kernel) in staging branch.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-indent:21.0pt"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;
color:navy">After that is done, we will get rid of the hardcoded macroblock type selection.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Thanks<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Zou Nanhai<o:p></o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="宋体"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma"> Joe Bloggsian
 [mailto:joebloggsian@gmail.com] <br>
<b><span style="font-weight:bold">Sent:</span></b> 2012</span></font><font size="2"><span style="font-size:10.0pt">年</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">2</span></font><font size="2"><span style="font-size:10.0pt">月</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">28</span></font><font size="2"><span style="font-size:10.0pt">日</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">
 18:06<br>
<b><span style="font-weight:bold">To:</span></b> Zou, Nanhai<br>
<b><span style="font-weight:bold">Cc:</span></b> <st1:PersonName w:st="on">libva@lists.freedesktop.org</st1:PersonName><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Libva] libva vs intel media SDK</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><font size="3" face="宋体"><span lang="EN-US" style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="宋体"><span lang="EN-US" style="font-size:12.0pt">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'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>
<o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="宋体"><span lang="EN-US" style="font-size:12.0pt">On 28 February 2012 01:31, Zou, Nanhai &lt;<a href="mailto:nanhai.zou@intel.com">nanhai.zou@intel.com</a>&gt; wrote:<o:p></o:p></span></font></p>
<div link="blue" vlink="purple">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Hi,
</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Which branch are you using?</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We’ve done a lot of optimization in ext branch now in
 staging branch. Those optimization are still not in master branch yet.</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">&nbsp;</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Thanks</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Zou Nanhai</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">&nbsp;</span></font><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;font-family:
&quot;Times New Roman&quot;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;
font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">
 libva-bounces&#43;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&#43;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 size="2"><span style="font-size:10.0pt">年</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">2</span></font><font size="2"><span style="font-size:10.0pt">月</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">28</span></font><font size="2"><span style="font-size:10.0pt">日</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">
 6:07<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:libva@lists.freedesktop.org" target="_blank">
libva@lists.freedesktop.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> [Libva] libva vs intel media SDK</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">&nbsp;</span></font><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">Whilst evaluating intel processors for an embedded application&nbsp;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&nbsp;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.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">&nbsp;</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">Speed : Media SDK was nearly 2x faster than libVA.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">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.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">&nbsp;</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;">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&nbsp;close the&nbsp;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'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.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><font size="3" face="宋体"><span lang="EN-US" style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
</div>
</body>
</html>