<?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 problem to use SDK functionality in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829827#M5448</link>
    <description>&lt;P&gt;Hi Sergey,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;



&lt;P&gt;UMCs are sample classes shipped with IPP, not Intel Media SDK.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regarding the UMC::FileWriter object, you should associate
it with a UMC::Muxer object; please post a code sample to clarify the problem.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tamer Assad&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2011 15:18:59 GMT</pubDate>
    <dc:creator>Tamer_Assad</dc:creator>
    <dc:date>2011-09-15T15:18:59Z</dc:date>
    <item>
      <title>problem to use SDK functionality</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829826#M5447</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry if I created the thread in wrong forum. I don't know where address my issue to.&lt;/P&gt;&lt;P&gt;
I have the following problem using Intel media SDK. &lt;BR /&gt;
Several months ago I downloaded the trial version of Intel Parallel Studio to
do the evaluation. I was able to encode YUV 420 video stream to h264, mpeg2 and
mpeg4 video files. Also I was able to mux them as well. Several times I did extension
of Studio trial version. When all periods expired I was unable to do the
encoding. No target files had been created.&lt;BR /&gt;
&lt;BR /&gt;
Finally the company bought the official version of Intel Parallel Studio XE
2011 for Windows. I took a fresh copy of Windows XP and installed Microsoft
Visual Studio 2010 and Parallel Studio. Finally I was able to compile my code.
When I run my part I got the same result as with expired trial version.&lt;BR /&gt;
&lt;BR /&gt;
The problem is here:&lt;BR /&gt;
UMC::FileWriter writer;&lt;BR /&gt;
UMC::FileWriterParams params;&lt;BR /&gt;
...&lt;BR /&gt;
writer.Init(&amp;amp;params);&lt;BR /&gt;
&lt;BR /&gt;
Init() call returns UMC::OK but the file physically is not created. Initially
when I used trial version during this call file is created normally with 0 kb
size. &lt;/P&gt;

&lt;P&gt;Does anyone have the idea what the problem could be?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;Sergey Tsybikov&lt;/P&gt;&lt;P&gt;Smith&amp;amp;Nephew&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2011 15:02:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829826#M5447</guid>
      <dc:creator>stsybikov</dc:creator>
      <dc:date>2011-09-15T15:02:01Z</dc:date>
    </item>
    <item>
      <title>problem to use SDK functionality</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829827#M5448</link>
      <description>&lt;P&gt;Hi Sergey,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;



&lt;P&gt;UMCs are sample classes shipped with IPP, not Intel Media SDK.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regarding the UMC::FileWriter object, you should associate
it with a UMC::Muxer object; please post a code sample to clarify the problem.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tamer Assad&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2011 15:18:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829827#M5448</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2011-09-15T15:18:59Z</dc:date>
    </item>
    <item>
      <title>problem to use SDK functionality</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829828#M5449</link>
      <description>Hi, Tamer;&lt;BR /&gt;&lt;BR /&gt;You are right. This is IPP.&lt;BR /&gt;This is extraction from my code. I tried to do it more simple.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;UMC::FileWriter Writer; &lt;BR /&gt;UMC::FileWriterParams WriterParams; &lt;BR /&gt;wcscpy_s(WriterParams.m_file_name, _T("C:\\target.mpg"));&lt;BR /&gt;&lt;BR /&gt;UMC::Status status;&lt;BR /&gt;if((status = Writer.Init(&amp;amp;WriterParams)) != UMC::UMC_OK)&lt;BR /&gt; return;&lt;BR /&gt;&lt;BR /&gt;UMC::VideoStreamInfo VideoInfo; &lt;BR /&gt;memset(&amp;amp;VideoInfo, 0, sizeof(VideoInfo));&lt;BR /&gt;VideoInfo.streamPID   = 0; &lt;BR /&gt;VideoInfo.stream_type     = UMC::MPEG2_VIDEO; &lt;BR /&gt;VideoInfo.color_format   = UMC::YUV420; &lt;BR /&gt;VideoInfo.interlace_type  = UMC::PROGRESSIVE; &lt;BR /&gt;VideoInfo.aspect_ratio_height = 9;&lt;BR /&gt;VideoInfo.aspect_ratio_width  = 16;&lt;BR /&gt;VideoInfo.clip_info.height  = 1080; &lt;BR /&gt;VideoInfo.clip_info.width  = 1920; &lt;BR /&gt;VideoInfo.bitrate   = 100000000; &lt;BR /&gt;VideoInfo.framerate   = 24;&lt;BR /&gt;&lt;BR /&gt;UMC::MPEG2MuxerParams MuxerParams;&lt;BR /&gt;MuxerParams.m_lpDataWriter  = &amp;amp;Writer; &lt;BR /&gt;MuxerParams.m_SystemType  = UMC::MPEG2_PURE_VIDEO_STREAM;&lt;BR /&gt;MuxerParams.m_nNumberOfTracks = 1; &lt;BR /&gt;&lt;BR /&gt;MuxerParams.pTrackParams = new UMC::TrackParams[MuxerParams.m_nNumberOfTracks]; &lt;BR /&gt;MuxerParams.pTrackParams[0].type     = UMC::VIDEO_TRACK; &lt;BR /&gt;MuxerParams.pTrackParams[0].info.video    = &amp;amp;VideoInfo; &lt;BR /&gt;MuxerParams.pTrackParams[0].bufferParams.m_prefInputBufferSize = 2000000; &lt;BR /&gt;MuxerParams.pTrackParams[0].bufferParams.m_prefOutputBufferSize = 2000000; &lt;BR /&gt;&lt;BR /&gt;UMC::MPEG2Muxer Muxer;&lt;BR /&gt;if((status = Muxer.Init(&amp;amp;MuxerParams)) != UMC::UMC_OK) &lt;BR /&gt; return;&lt;BR /&gt;&lt;BR /&gt;UMC::MPEG2EncoderParams videoParams;&lt;BR /&gt;videoParams.info.clip_info.height  = 1080; &lt;BR /&gt;videoParams.info.clip_info.width  = 1920; &lt;BR /&gt;videoParams.info.bitrate   = 10000000;&lt;BR /&gt;videoParams.info.color_format   = UMC::YUV420;&lt;BR /&gt;videoParams.info.framerate       = 24;&lt;BR /&gt;videoParams.info.stream_type   = UMC::MPEG2_VIDEO;&lt;BR /&gt;videoParams.info.aspect_ratio_height = 9;&lt;BR /&gt;videoParams.info.aspect_ratio_width = 16;&lt;BR /&gt;videoParams.numThreads    = 1; &lt;BR /&gt;&lt;BR /&gt;UMC::MPEG2VideoEncoder Mpeg2Encoder;&lt;BR /&gt;if((status = Mpeg2Encoder.Init(&amp;amp;videoParams)) != UMC::UMC_OK) &lt;BR /&gt; return;&lt;BR /&gt;&lt;BR /&gt;UMC::VideoData DataVideoIn; &lt;BR /&gt;if((status = DataVideoIn.Init( pReader-&amp;gt;m_pVideoStruct-&amp;gt;nFrameWidth, pReader-&amp;gt;m_pVideoStruct-&amp;gt;nFrameHeight, UMC::YUV420,8)) != UMC::UMC_OK)&lt;BR /&gt; return;&lt;BR /&gt;&lt;BR /&gt;Ipp8u* pOutputVideoData = ippsMalloc_8u(3110400); // video frame buffer &lt;BR /&gt;&lt;BR /&gt;while(bRun)&lt;BR /&gt;{         &lt;BR /&gt; DataVideoIn.SetBufferPointer(pVideoFrameBuffer, 3110400);&lt;BR /&gt; DataVideoIn.SetDataSize(pReader-&amp;gt;m_nVideoBufferSize);&lt;BR /&gt;&lt;BR /&gt; DataVideoOut.SetBufferPointer(pOutputVideoData, 100000000);&lt;BR /&gt;&lt;BR /&gt; status = Mpeg2Encoder.GetFrame(&amp;amp;DataVideoIn, &amp;amp;DataVideoOut);&lt;BR /&gt; if (status == UMC::UMC_OK)&lt;BR /&gt; { &lt;BR /&gt;  nEncodedVideoFrames++;&lt;BR /&gt;&lt;BR /&gt;  int nDataSize = DataVideoOut.GetDataSize();&lt;BR /&gt;  MuxVideoData.SetBufferPointer(pOutputVideoData, nDataSize); &lt;BR /&gt;      &lt;BR /&gt;  memcpy(MuxVideoData.GetDataPointer(), DataVideoOut.GetDataPointer(), nDataSize); &lt;BR /&gt;&lt;BR /&gt;  MuxVideoData.SetDataSize(nDataSize); &lt;BR /&gt;  MuxVideoData.SetTime(nEncodedVideoFrames*((double)1.0)/24); &lt;BR /&gt;&lt;BR /&gt;  do &lt;BR /&gt;  { &lt;BR /&gt;   status = Muxer.PutVideoData(&amp;amp;MuxVideoData); &lt;BR /&gt;   if (UMC::UMC_ERR_NOT_ENOUGH_BUFFER == status) &lt;BR /&gt;    vm_time_sleep(5); &lt;BR /&gt;  }while (UMC::UMC_ERR_NOT_ENOUGH_BUFFER == status); &lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergey Tsybikov</description>
      <pubDate>Thu, 15 Sep 2011 17:12:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/problem-to-use-SDK-functionality/m-p/829828#M5449</guid>
      <dc:creator>stsybikov</dc:creator>
      <dc:date>2011-09-15T17:12:21Z</dc:date>
    </item>
  </channel>
</rss>

