<?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 H264 decoder problem in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833293#M5739</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am using IPP6.1.2.41 and ipp-samples_p_6.1.4.059&lt;BR /&gt;I can successfully decode H264 inside mp4 format, now I am trying to decode H264 stream comming from a network camera. I have implemented a network data reader. I get SPS/PPS from SDP, convert from base64, add 000001 to beginning of each and add it to m_pDecSpecInfo as media data. &lt;BR /&gt;I get data from RTP bit stream strip RTP and (if present) fragmented header so that pure NALU stream is there, then add 000001 start code to each NALU. Decoder is set to m_decParams.info.stream_subtype = UMC::UNDEF_VIDEO_SUBTYPE so that pure H264 NALU stream be accepted.&lt;BR /&gt;Decoder gets initialized with OK and GetInfo returns correct video data (width, height and fps) so SPS/PPS should have been correctly decoded. However, the output of the GetFrame is either a Grey screen or some corrupted image. I attached the bitstream (out1.h264), it starts with 000001SPS000001PPS000001...&lt;BR /&gt;Same stream can be played without problem in VLC (vlc.exe out1.h264 --demux=h264).&lt;BR /&gt;&lt;BR /&gt;I appreciate if you can take a look at the provided stream and let me know if there is any problem with it.&lt;BR /&gt;&lt;BR /&gt;I also have made necessary changes to AVSync to recognize this pure H264 stream and use H264Splitter to show the video. Using SimplePlayer I see exactly the same output. To do that I use 0x00000167 to detect SystemStreamType, and use H264Splitter and then add SPS/PPS to m_pDecSpecInfo. I can provide you with the changes if you want (umc_h264_spl.cpp, umc_h264_spl.h, umc_splitter.cpp, umc_splitters.h and codec_pipeline.cpp).&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 27 Aug 2010 19:51:27 GMT</pubDate>
    <dc:creator>dashesy</dc:creator>
    <dc:date>2010-08-27T19:51:27Z</dc:date>
    <item>
      <title>H264 decoder problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833293#M5739</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am using IPP6.1.2.41 and ipp-samples_p_6.1.4.059&lt;BR /&gt;I can successfully decode H264 inside mp4 format, now I am trying to decode H264 stream comming from a network camera. I have implemented a network data reader. I get SPS/PPS from SDP, convert from base64, add 000001 to beginning of each and add it to m_pDecSpecInfo as media data. &lt;BR /&gt;I get data from RTP bit stream strip RTP and (if present) fragmented header so that pure NALU stream is there, then add 000001 start code to each NALU. Decoder is set to m_decParams.info.stream_subtype = UMC::UNDEF_VIDEO_SUBTYPE so that pure H264 NALU stream be accepted.&lt;BR /&gt;Decoder gets initialized with OK and GetInfo returns correct video data (width, height and fps) so SPS/PPS should have been correctly decoded. However, the output of the GetFrame is either a Grey screen or some corrupted image. I attached the bitstream (out1.h264), it starts with 000001SPS000001PPS000001...&lt;BR /&gt;Same stream can be played without problem in VLC (vlc.exe out1.h264 --demux=h264).&lt;BR /&gt;&lt;BR /&gt;I appreciate if you can take a look at the provided stream and let me know if there is any problem with it.&lt;BR /&gt;&lt;BR /&gt;I also have made necessary changes to AVSync to recognize this pure H264 stream and use H264Splitter to show the video. Using SimplePlayer I see exactly the same output. To do that I use 0x00000167 to detect SystemStreamType, and use H264Splitter and then add SPS/PPS to m_pDecSpecInfo. I can provide you with the changes if you want (umc_h264_spl.cpp, umc_h264_spl.h, umc_splitter.cpp, umc_splitters.h and codec_pipeline.cpp).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Aug 2010 19:51:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833293#M5739</guid>
      <dc:creator>dashesy</dc:creator>
      <dc:date>2010-08-27T19:51:27Z</dc:date>
    </item>
    <item>
      <title>H264 decoder problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833294#M5740</link>
      <description>Ok I guess I found the problem!&lt;BR /&gt;&lt;BR /&gt;First, the bits nri and forbidden_zero were not saved correctly which caused the greyish output. Although I thought the decoder will ignore those bits. As soon as I fixed this, simple_player can play raw H264 correctly.&lt;BR /&gt;&lt;BR /&gt;Second, each GetFrame must not supply more than one NALU. I was stuffing both SPS and PPS packets in one MediaData and pass it to GetFrame. It seemed OK to me because m_pDecSpecInfo also included both SPS and PPS.&lt;BR /&gt;&lt;BR /&gt;I will post here in case I face new problems.&lt;BR /&gt;&lt;BR /&gt;BTW, I attached my changes to for whoever is interested in reading raw H264 files, the file must start with 0x00000167 (i.e. 0x000001SPS) then comes PPS and finally 0x000001NALU0x000001NALU...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Aug 2010 23:00:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833294#M5740</guid>
      <dc:creator>dashesy</dc:creator>
      <dc:date>2010-08-27T23:00:53Z</dc:date>
    </item>
    <item>
      <title>H264 decoder problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833295#M5741</link>
      <description>Hello Dashesy,&lt;BR /&gt;&lt;BR /&gt;Glad you found the solution, and thanks for posting it for others to see.&lt;BR /&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Sat, 28 Aug 2010 00:12:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H264-decoder-problem/m-p/833295#M5741</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-08-28T00:12:43Z</dc:date>
    </item>
  </channel>
</rss>

