<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:SimSun;
        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:SimSun;
        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:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        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="purple">
<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; Which branch are you using?<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; We’ve done a lot of optimization in ext branch now in staging branch. Those optimization are still not in master branch
 yet.<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>
<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>
<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">
<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"> libva-bounces&#43;nanhai.zou=intel.com@lists.freedesktop.org
 [mailto:libva-bounces&#43;nanhai.zou=intel.com@lists.freedesktop.org] <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" face="宋体"><span style="font-size:10.0pt;font-family:SimSun">年</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" face="宋体"><span style="font-size:10.0pt;font-family:SimSun">月</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" face="宋体"><span style="font-size:10.0pt;font-family:SimSun">日</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> <st1:PersonName w:st="on">libva@lists.freedesktop.org</st1:PersonName><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>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">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.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">&nbsp;<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">Speed : Media SDK was nearly 2x faster than libVA.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">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.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">&nbsp;<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">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.<o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>