<?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 I found the solution for this in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoEncoder-problem-to-process-GetFrame/m-p/948180#M18374</link>
    <description>I found the solution for this issue from answer on my other post:
&lt;A href="http://software.intel.com/en-us/comment/1715029#comment-1715029" target="_blank"&gt;http://software.intel.com/en-us/comment/1715029#comment-1715029&lt;/A&gt;

Sergey Tsybikov</description>
    <pubDate>Wed, 14 Nov 2012 21:13:22 GMT</pubDate>
    <dc:creator>stsybikov</dc:creator>
    <dc:date>2012-11-14T21:13:22Z</dc:date>
    <item>
      <title>H264VideoEncoder problem to process GetFrame</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoEncoder-problem-to-process-GetFrame/m-p/948179#M18373</link>
      <description>&lt;P&gt;Hi Intel Gurus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the problem with H264VideoEncoder to encoder the file with smaller resolution size rather than original frame data size.&lt;/P&gt;
&lt;P&gt;I have YUV420 1920x1080 buffer with data and the sample of my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UMC::Videodata DataIn;&lt;/P&gt;
&lt;P&gt;UMC::MediaData DataOut;&lt;/P&gt;
&lt;P&gt;Int FrameSize;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UMC::H264EncoderParams Params;&lt;/P&gt;
&lt;P&gt;UMC::H264ViveoEncoder H264Encoder;&lt;/P&gt;
&lt;P&gt;Params.key_frame_control.method = 1;&lt;/P&gt;
&lt;P&gt;// If I have define width as 1920 and height as 1080 everything works great,&lt;/P&gt;
&lt;P&gt;// If define a different width and height H264Encoder.GetFrame(…) crashes pointing to the memory allocation.&lt;/P&gt;
&lt;P&gt;Params.info.clip_info.height = height;&lt;/P&gt;
&lt;P&gt;Params.info.clip_info.width = width;&lt;/P&gt;
&lt;P&gt;Params.info.bitrate = 10000000;&lt;/P&gt;
&lt;P&gt;Params.info.framerate = 24;&lt;/P&gt;
&lt;P&gt;Params.numThreads = 1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;H264Encoder.Init(&amp;amp;Params);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FrameSize = FrameWidth*Frameheight*3/2; //1920*1080*3/2&lt;/P&gt;
&lt;P&gt;Ipp8u* pOutputData = ippsMalloc_8u(FrameSize);&lt;/P&gt;
&lt;P&gt;DataIn.Init(FrameWidth, Frameheight, UMC::YUV420, 8); // 1920, 1080&lt;/P&gt;
&lt;P&gt;DataIn.SetBufferPointer(pYUVFrameBuffer, FrameSize);&lt;/P&gt;
&lt;P&gt;DataIn.SetDataSize(FrameSize);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DataOut.SetBufferPointer(pOutputData,10000000);&lt;/P&gt;
&lt;P&gt;H264Encoder.GetFrame(&amp;amp;DataIn, &amp;amp;DataOut);&amp;nbsp; // the code crashes in this point&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea why H264Encoder crashes ??????????????&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sergey Tsybikov&lt;/P&gt;
&lt;P&gt;Smith&amp;amp;Nephew Endoscopy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2012 21:31:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoEncoder-problem-to-process-GetFrame/m-p/948179#M18373</guid>
      <dc:creator>stsybikov</dc:creator>
      <dc:date>2012-11-12T21:31:40Z</dc:date>
    </item>
    <item>
      <title>I found the solution for this</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoEncoder-problem-to-process-GetFrame/m-p/948180#M18374</link>
      <description>I found the solution for this issue from answer on my other post:
&lt;A href="http://software.intel.com/en-us/comment/1715029#comment-1715029" target="_blank"&gt;http://software.intel.com/en-us/comment/1715029#comment-1715029&lt;/A&gt;

Sergey Tsybikov</description>
      <pubDate>Wed, 14 Nov 2012 21:13:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoEncoder-problem-to-process-GetFrame/m-p/948180#M18374</guid>
      <dc:creator>stsybikov</dc:creator>
      <dc:date>2012-11-14T21:13:22Z</dc:date>
    </item>
  </channel>
</rss>

