<?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 H264VideoDecoder Init Help in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798426#M2948</link>
    <description>Okey, it appearsonly usingsprop-parameter-sets to initialize the decoder was the problem.When I created a BYTE array with the 2 elem of sprop-parameter-sets along with SPS and PPS, from the RTP stream,calling Init (...)succeeded without error.&lt;BR /&gt;&lt;BR /&gt;I was mistaken that the 2 elements of sprop-parameter-sets were the same as SPS and PPS!? (A little confused by this?) &lt;BR /&gt;&lt;BR /&gt;Now the decoder's GetFrame call is returning VM_NOT_ENOUGH_DATA. I have seen several threads on this topic so will be researching that. &lt;BR /&gt;&lt;BR /&gt;Though Any and All comments are welcome.</description>
    <pubDate>Tue, 28 Jun 2011 16:10:09 GMT</pubDate>
    <dc:creator>bcisrd</dc:creator>
    <dc:date>2011-06-28T16:10:09Z</dc:date>
    <item>
      <title>H264VideoDecoder Init Help</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798425#M2947</link>
      <description>I am attempting to use H264VideoDecoder to view a network Camera. Imy problem is getting the decoder initialize properly. Using rtsp I am getting SDP with the following:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;m=video 0 RTP/AVP 98&lt;BR /&gt;b=AS:0&lt;BR /&gt;a=rtpmap:98 H264/90000&lt;BR /&gt;a=fmtp:98 packetization-mode=1; profile-level-id=4d001f; sprop-parameter-sets=J00AH9oFB+Q=,KO48gA==&lt;BR /&gt;&lt;BR /&gt;I believe to understand packetization-modeand sprop-parameter-sets. I don't understand how to use profile-level-id in conjuction with H264VideoDecoder? Below is a code snippet "m_pvidDecoder-&amp;gt;GetInfo (&amp;amp;params)" always returns VM_NOT_INITIALIZED?&lt;BR /&gt;&lt;BR /&gt;Can someone direct me on why this does not work?&lt;BR /&gt;&lt;BR /&gt;I am using IPP 6.1.1.035 compiled using Microsoft Visual Studio 2005 C++ on windows xp.&lt;BR /&gt;&lt;BR /&gt;//////////////////////////////////////////&lt;BR /&gt;//Code Snippet&lt;BR /&gt;/////////////////////////////////////////&lt;BR /&gt;&lt;BR /&gt;//-------------------------------------------------------------&lt;BR /&gt;bool Init (BYTE *pData, unsigned long nSize)&lt;BR /&gt;{&lt;BR /&gt;bool bRetVal = false;&lt;BR /&gt;UMC::Status nStatus;&lt;BR /&gt;m_pvidDecoder = new UMC::H264VideoDecoder();&lt;BR /&gt;if (m_pvidDecoder)&lt;BR /&gt;{&lt;BR /&gt; m_inVid.SetBufferPointer (pData, nSize);&lt;BR /&gt; m_inVid.SetDataSize (nSize);&lt;BR /&gt; m_VidDecodeParams.pPostProcessing = NULL;&lt;BR /&gt; m_VidDecodeParams.info.stream_type = UMC::H264_VIDEO;&lt;BR /&gt; m_VidDecodeParams.numThreads = m_nThreadCount;&lt;BR /&gt; m_VidDecodeParams.lFlags = 0;&lt;BR /&gt; m_VidDecodeParams.m_pData = &amp;amp;m_inVid;&lt;BR /&gt; nStatus = m_pvidDecoder-&amp;gt;Init(&amp;amp;m_VidDecodeParams);&lt;BR /&gt; if(nStatus == UMC::UMC_OK)&lt;BR /&gt; {&lt;BR /&gt; UMC::H264VideoDecoderParams params;&lt;BR /&gt; nStatus = m_pvidDecoder-&amp;gt;GetInfo (&amp;amp;params);&lt;BR /&gt; if(nStatus == UMC::UMC_OK)&lt;BR /&gt; {&lt;BR /&gt; nStatus = m_outVid.Init (params.info.clip_info.width, params.info.clip_info.height, UMC::RGB24, 8);&lt;BR /&gt;if(nStatus == UMC::UMC_OK)&lt;BR /&gt; {&lt;BR /&gt; nStatus = m_outVid.Alloc ();&lt;BR /&gt; if(nStatus == UMC::UMC_OK)&lt;BR /&gt; {&lt;BR /&gt; bRetVal = true;&lt;BR /&gt;}&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;return (bRetVal);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//----------------------------------------------------------------------------------&lt;BR /&gt;void SetParameters ()&lt;BR /&gt;{&lt;BR /&gt;int nSPSSize = vlc_b64_decode_binary (&amp;amp;pSPS, strSPS);&lt;BR /&gt;int nPPSSize = vlc_b64_decode_binary (&amp;amp;pPPS, strPPS);&lt;BR /&gt;m_pBuffer[m_nSize + 0] = 0;&lt;BR /&gt;m_pBuffer[m_nSize + 1] = 0;&lt;BR /&gt;m_pBuffer[m_nSize + 2] = 0;&lt;BR /&gt;m_pBuffer[m_nSize + 3] = 1;&lt;BR /&gt;m_nSize += 4;&lt;BR /&gt;memcpy_s(&amp;amp;(m_pBuffer[m_nSize]), (m_nBufSize - m_nSize), pSPS, nSPSSize);&lt;BR /&gt;m_nSize += nSPSSize;&lt;BR /&gt;m_pBuffer[m_nSize + 0] = 0;&lt;BR /&gt;m_pBuffer[m_nSize + 1] = 0;&lt;BR /&gt;m_pBuffer[m_nSize + 2] = 0; &lt;BR /&gt;m_pBuffer[m_nSize + 3] = 1;&lt;BR /&gt;m_nCurrentSize += 4; &lt;BR /&gt;memcpy_s(&amp;amp;(m_pBuffer[m_nSize]), (m_nBufSize - m_nSize), pPPS, nPPSSize);&lt;BR /&gt;m_nSize += nPPSSize;&lt;BR /&gt;Init (m_pBuffer, m_nSize);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2011 00:16:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798425#M2947</guid>
      <dc:creator>bcisrd</dc:creator>
      <dc:date>2011-06-28T00:16:26Z</dc:date>
    </item>
    <item>
      <title>H264VideoDecoder Init Help</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798426#M2948</link>
      <description>Okey, it appearsonly usingsprop-parameter-sets to initialize the decoder was the problem.When I created a BYTE array with the 2 elem of sprop-parameter-sets along with SPS and PPS, from the RTP stream,calling Init (...)succeeded without error.&lt;BR /&gt;&lt;BR /&gt;I was mistaken that the 2 elements of sprop-parameter-sets were the same as SPS and PPS!? (A little confused by this?) &lt;BR /&gt;&lt;BR /&gt;Now the decoder's GetFrame call is returning VM_NOT_ENOUGH_DATA. I have seen several threads on this topic so will be researching that. &lt;BR /&gt;&lt;BR /&gt;Though Any and All comments are welcome.</description>
      <pubDate>Tue, 28 Jun 2011 16:10:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798426#M2948</guid>
      <dc:creator>bcisrd</dc:creator>
      <dc:date>2011-06-28T16:10:09Z</dc:date>
    </item>
    <item>
      <title>H264VideoDecoder Init Help</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798427#M2949</link>
      <description>Okey, it appearsonly usingsprop-parameter-sets to initialize the decoder was the problem.When I created a BYTE array with the 2 elem of sprop-parameter-sets along with SPS and PPS, from the RTP stream,calling Init (...)succeeded without error.&lt;BR /&gt;&lt;BR /&gt;I was mistaken that the 2 elements of sprop-parameter-sets were the same as SPS and PPS!? (A little confused by this?) &lt;BR /&gt;&lt;BR /&gt;Now the decoder's GetFrame call is returning VM_NOT_ENOUGH_DATA. I have seen several threads on this topic so will be researching that. &lt;BR /&gt;&lt;BR /&gt;Though Any and All comments are welcome.</description>
      <pubDate>Tue, 28 Jun 2011 16:11:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264VideoDecoder-Init-Help/m-p/798427#M2949</guid>
      <dc:creator>bcisrd</dc:creator>
      <dc:date>2011-06-28T16:11:11Z</dc:date>
    </item>
  </channel>
</rss>

