<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Sergey, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958518#M19397</link>
    <description>&lt;P&gt;Hi Sergey,&lt;/P&gt;
&lt;P&gt;Were you able to replicate the slowdown with h.264 decoding with the two library/ipp samples versions that I mentioned?&lt;/P&gt;
&lt;P&gt;-Eliot&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2013 20:26:52 GMT</pubDate>
    <dc:creator>eliotlightcrafttech_</dc:creator>
    <dc:date>2013-04-15T20:26:52Z</dc:date>
    <item>
      <title>h264 Encoder in 7.1 slower than in 7.0</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958493#M19372</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I ported my H264 Encoder to IPP v7.1 using the samples that I built as dynamic multithreaded libraries and now the performance is dropped on H264 encoding with the same settings as in v.7.0.&lt;/P&gt;
&lt;P&gt;Are you aware of the issues with h264 enc in 7.1?&lt;/P&gt;
&lt;P&gt;I set m_iThreads to 0, and initialized the encoder correctly as well as the best ipp libs for my CPU using ippInit(). All my cores are used 100% when I am encoding something, but it's around 50-60% slower than it is when I do the same encoding with IPP v7.0 encoder. I am using separate threaded libs (which I download from the site). It's important to note that in v7.0, the usage of cores is around 40%, but still performs way faster than v7.1.&lt;/P&gt;
&lt;P&gt;I tried v7.1 single threaded umc libs, as well, but they are way slower than the multithreaded ones.&lt;/P&gt;
&lt;P&gt;Any help is really appreciated.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 13:43:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958493#M19372</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-01T13:43:58Z</dc:date>
    </item>
    <item>
      <title>anyone? Intel?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958494#M19373</link>
      <description>&lt;P&gt;anyone? Intel?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 08:15:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958494#M19373</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-05T08:15:23Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958495#M19374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could you try to link your application to single thread IPP libraries? It may happen that thread oversubscription takes place.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 10:01:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958495#M19374</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-05T10:01:02Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958496#M19375</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried building single threaded libs and using them in the application. It works, but it's way slower than with multithreaded ones. We tested it with various video formats and different resolutions. We seem to get for every video, no matter how big it is, around 20 seconds difference between v7.0 and v7.1. Didn't you change something in h264 encoder itself that could cause this behavior?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 10:04:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958496#M19375</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-05T10:04:07Z</dc:date>
    </item>
    <item>
      <title>The last issue regarding H</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958497#M19376</link>
      <description>&lt;P&gt;The last issue regarding H.264 that has been solved was excessive CPU load during playback. So, we haven't seen encoding performance issues. Could you provide us with specifics of your encoding parameters: resolution, profile, bitrate and, of course, CPU model? We'll make experiments locally. By the way, it is your own application. Can you reproduce the low performance results with "umc_video_enc_con" ?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 10:20:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958497#M19376</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-05T10:20:29Z</dc:date>
    </item>
    <item>
      <title>I am using IPP's static</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958498#M19377</link>
      <description>&lt;P&gt;I am using IPP's static threaded libraries (not dynamic ones). I downloaded them from the website. umc_video_enc_con uses dynamic libs as I can see. Maybe that's the problem? umc_video_enc_con application utilizes CPU to the maximum 100% all four cores (cpu is: i5 3570) but the encoding speed is twice as fast as with our application. I suspect something is wrong with the libraries along the line.&lt;/P&gt;
&lt;P&gt;Do you have any advice what should I try?&lt;/P&gt;
&lt;P&gt;Oh, and the parameters we're using are:&lt;/P&gt;
&lt;P&gt;res: 480p&lt;BR /&gt;profile: UMC::H264_PROFILE_MAIN&lt;BR /&gt;bitrate: 3000kbps&lt;BR /&gt;rate controls method: &amp;nbsp;UMC::H264_RCM_CBR&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 10:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958498#M19377</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-05T10:46:52Z</dc:date>
    </item>
    <item>
      <title>First of all, you need to</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958499#M19378</link>
      <description>&lt;P&gt;First of all, you need to make sure that you use the proper optimized library. With static linking it is done by calling ippInit() function somewhere at the beginning of application. With dynamic linking it does not matter, because ippInit() is called by DllMain function. Then, as far as I see from umc_video_enc_con it sets number of internal IPP's threads to 1 by ippSetNumThreads. Some of video encoding functions (as long as video post/pre-processing functions) still use internal threading (by OpenMP), which brings no good if are used in externally threaded application (as H.264 encoder). So, to limit internal threading to single ippSetNumThreads(1) is used.&lt;/P&gt;
&lt;P&gt;So, try to call ippInit() and ippSetNumThreads(1) in application initialization phase.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&lt;/P&gt;
&lt;P&gt;By the way, you can build umc_video_enc_con with any type of IPP library using options in IPP samples build script.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 11:24:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958499#M19378</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-05T11:24:28Z</dc:date>
    </item>
    <item>
      <title>I am using ippInit(), as well</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958500#M19379</link>
      <description>&lt;P&gt;I am using ippInit(), as well as ippSetNumThreads(1)... it's still the same.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 11:26:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958500#M19379</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-05T11:26:27Z</dc:date>
    </item>
    <item>
      <title> Also, I don't understand the</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958501#M19380</link>
      <description>&lt;P&gt;&amp;nbsp;Also, I don't understand the difference between dynamic and static libraries of samples? When I build both I get .libs in both cases, even though for dynamic I expected to see dlls. It was like that in previous version of IPP. So what does exactly mean dynamic and static in build options for the IPP samples? I tried with both versions, and they give the same results and the same encoding time. The only difference I managed to get is with single threaded versions which performed way slower than the multithreaded ones.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 12:11:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958501#M19380</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-05T12:11:17Z</dc:date>
    </item>
    <item>
      <title>So, any more suggestions?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958502#M19381</link>
      <description>&lt;P&gt;So, any more suggestions?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 09:12:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958502#M19381</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-06T09:12:53Z</dc:date>
    </item>
    <item>
      <title>The terms "dynamic" and</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958503#M19382</link>
      <description>&lt;P&gt;The terms "dynamic" and "static" in samples refer to which IPP libraries will be used during link. Dynamic libs (DLLs or .so) or static (.lib or .a). These terms don't relate to intermediate sample libraries which are generated during sample application build. Thus in both cases you will get static libraries (codecs, muxers, whatever).&lt;/P&gt;
&lt;P&gt;Then, in IPP 7.1 UMC samples H.264 encoder can be parallel. Its parallelization is done by OpenMP. When you select "mt" libraries during sample build, the script does two things - it defines USE_OPENMP macro (which masks OpenMP constructs in codec. #ifdef USE_OPENMP etc.) and it puts multi-thread IPP libraries (*_t kind of them) to linker command line. So, basically there are two levels of parallelization - codec-level and function-level. It has been seen that function-level paralellization brings no additional performance benefit when external (upper-level) parallelization is active. You can manually modify linker input files from *_t libs to *_l (lowercase L) libs and will see no difference in performance. Thus, your goal should be enabling codec-level parallelization and disabling function-level (set numthreads to 1).&lt;/P&gt;
&lt;P&gt;There are options in command line to umc_video_enc_con for both codec-level (-t &amp;lt;num&amp;gt;) and function-level (--ipp_threads &amp;lt;num&amp;gt;) number of threads. You can simulate your multi-thread encoding environment with this sample.&lt;BR /&gt;The command line should be like&lt;BR /&gt;umc_video_enc_con -c h264 -i &amp;lt;source&amp;gt;.yuv &amp;nbsp;-o &amp;lt;dest&amp;gt;.h264 -b 3000000 -r 720 480 -t &amp;lt;num_external&amp;gt; --ipp_threads &amp;lt;num_internal&amp;gt;&lt;/P&gt;
&lt;P&gt;I see extra CPU load even during single-thread encoding. It needs to be investigated.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:37:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958503#M19382</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-06T14:37:14Z</dc:date>
    </item>
    <item>
      <title>So, let me know whether there</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958504#M19383</link>
      <description>&lt;P&gt;So, let me know whether there will be a fix for this soon, or should I revert to IPP v7.0?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 08:08:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958504#M19383</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-11T08:08:13Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958505#M19384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;To lower CPU loading add the following lines to the file umc_h264_core_enc.cpp at line ~2186&lt;/P&gt;
&lt;P&gt;[cpp]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (core_enc-&amp;gt;m_params.num_slices &amp;gt; nMB)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; core_enc-&amp;gt;m_params.num_slices = (Ipp16s)IPP_MIN(nMB, 0x7FFF);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (core_enc-&amp;gt;m_params.num_slices &amp;lt; core_enc-&amp;gt;m_params.m_iThreads)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; core_enc-&amp;gt;m_params.m_iThreads = core_enc-&amp;gt;m_params.num_slices;&lt;BR /&gt;// These lines should be added&lt;BR /&gt;#ifdef USE_OPENMP&lt;BR /&gt;&amp;nbsp; &amp;nbsp; omp_set_num_threads(core_enc-&amp;gt;m_params.m_iThreads);&lt;BR /&gt;#endif&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; switch (core_enc-&amp;gt;m_params.level_idc)&lt;BR /&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 10:09:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958505#M19384</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-11T10:09:52Z</dc:date>
    </item>
    <item>
      <title>I tried this, but it's still</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958506#M19385</link>
      <description>&lt;P&gt;I tried this, but it's still the same. Even with iThreads to 1 in encoder, the load goes from 80 to 100% on all 4 cores.&lt;/P&gt;
&lt;P&gt;With iThreads to 0, the load is between 70-90%, but the time needed to encode the file is the same as it was before adding the lines you suggested. I am testing with dynamic_mt libraries - those are the ones I built with the modified source.&lt;/P&gt;
&lt;P&gt;Any more suggestions?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 11:05:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958506#M19385</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-12T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Sergey, should I go with</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958507#M19386</link>
      <description>&lt;P&gt;Sergey, should I go with revert?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 08:05:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958507#M19386</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-13T08:05:46Z</dc:date>
    </item>
    <item>
      <title>I noticed that with reverted</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958508#M19387</link>
      <description>&lt;P&gt;I noticed that with reverted code to v7.0 AND the libiomp5md.dll FROM v7.1 it works equally slow!! BUT, with libiomp5md.dll from v7.0 it works as expected! Do you have any ideas about this? Maybe there's a bug in libiomp5md or I am not using it correctly (in v7.1).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 10:45:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958508#M19387</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-13T10:45:43Z</dc:date>
    </item>
    <item>
      <title>As far as i remember there</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958509#M19388</link>
      <description>&lt;P&gt;As far as i remember there was problem with this (though, quite long ago), but "Intel compiler" forum knows better. This is their area.&lt;BR /&gt;Though, it deserves small test with #pragma omp. Thank you for finding this. We will check.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 12:40:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958509#M19388</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-13T12:40:03Z</dc:date>
    </item>
    <item>
      <title>The funny thing is that</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958510#M19389</link>
      <description>&lt;P&gt;The funny thing is that libiomp5md from v7.0 works with v7.1 libs as well :D Crazy...&lt;/P&gt;
&lt;P&gt;Please report back once you fix it!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 12:44:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958510#M19389</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-13T12:44:57Z</dc:date>
    </item>
    <item>
      <title>Any updates on this?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958511#M19390</link>
      <description>&lt;P&gt;Any updates on this?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 10:21:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958511#M19390</guid>
      <dc:creator>manca1</dc:creator>
      <dc:date>2013-03-19T10:21:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958512#M19391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have just spoken with OpenMP support guys. They know nothing about this problem. If we could create a small reproducer for the problem, we can make them move :). Meanwhile, could you provide with version numbers of "good" and "bad" libiomp5md.dll files. Just in explorer right click on this file and look at Properties/Details tab. On my computer I see file version 5.0.2012.1207 for example.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Sergey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 08:02:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264-Encoder-in-7-1-slower-than-in-7-0/m-p/958512#M19391</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-03-20T08:02:45Z</dc:date>
    </item>
  </channel>
</rss>

