<?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 h264Decoder not decoding last frame in video stream in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833190#M5728</link>
    <description>Here is my finding:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;- The h264 Decoder says its running out of source data a few frames before the end of the files.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Calling&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;umcRes = m_umc.decoder-&amp;gt;GetFrame(m_umc.mediaData, m_umc.videoData);&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;returnsUMC::UMC_ERR_NOT_ENOUGH_DATA&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;umcRes = m_umc.splitter-&amp;gt;GetNextData(m_umc.mediaData, m_umc.nVideoTrack);&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;returns&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;UMC::UMC_ERR_END_OF_STREAM&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So there is no more data to give to the decoder.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In my test case a file with 2247 frames get 2244 frames decode and then return the above.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;But if I loop the file, by calling this when reachingUMC::UMC_ERR_END_OF_STREAM&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;m_umc.splitter-&amp;gt;SetTimePosition(0);&lt;/DIV&gt;&lt;DIV&gt;// m_umc.decoder-&amp;gt;Reset()&lt;SPAN style="white-space: pre;"&gt;		&lt;/SPAN&gt;// Dont reset the decoder to see what happen&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The decoder returns the missing frames!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Conclusion: It seem that decoder want more data then it needs to decode the last frames in a file.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I suggest that the UMC team devise a test that decode only the last frame of a file.&lt;/DIV&gt;&lt;DIV&gt;1) Seek to the last frame start time&lt;/DIV&gt;&lt;DIV&gt;2) From the actual position (iframe) , decode N frame to reach the last frame&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It cannot be done with the h264 decoder...&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks for looking in to this,&lt;/DIV&gt;&lt;DIV&gt;Stephan&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 Apr 2010 22:01:21 GMT</pubDate>
    <dc:creator>sschaem</dc:creator>
    <dc:date>2010-04-23T22:01:21Z</dc:date>
    <item>
      <title>h264Decoder not decoding last frame in video stream</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833190#M5728</link>
      <description>Here is my finding:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;- The h264 Decoder says its running out of source data a few frames before the end of the files.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Calling&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;umcRes = m_umc.decoder-&amp;gt;GetFrame(m_umc.mediaData, m_umc.videoData);&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;returnsUMC::UMC_ERR_NOT_ENOUGH_DATA&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;umcRes = m_umc.splitter-&amp;gt;GetNextData(m_umc.mediaData, m_umc.nVideoTrack);&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;returns&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;UMC::UMC_ERR_END_OF_STREAM&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So there is no more data to give to the decoder.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In my test case a file with 2247 frames get 2244 frames decode and then return the above.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;But if I loop the file, by calling this when reachingUMC::UMC_ERR_END_OF_STREAM&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;m_umc.splitter-&amp;gt;SetTimePosition(0);&lt;/DIV&gt;&lt;DIV&gt;// m_umc.decoder-&amp;gt;Reset()&lt;SPAN style="white-space: pre;"&gt;		&lt;/SPAN&gt;// Dont reset the decoder to see what happen&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The decoder returns the missing frames!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Conclusion: It seem that decoder want more data then it needs to decode the last frames in a file.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I suggest that the UMC team devise a test that decode only the last frame of a file.&lt;/DIV&gt;&lt;DIV&gt;1) Seek to the last frame start time&lt;/DIV&gt;&lt;DIV&gt;2) From the actual position (iframe) , decode N frame to reach the last frame&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It cannot be done with the h264 decoder...&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks for looking in to this,&lt;/DIV&gt;&lt;DIV&gt;Stephan&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Apr 2010 22:01:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833190#M5728</guid>
      <dc:creator>sschaem</dc:creator>
      <dc:date>2010-04-23T22:01:21Z</dc:date>
    </item>
    <item>
      <title>h264Decoder not decoding last frame in video stream</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833191#M5729</link>
      <description>Hello Stephan,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I've seen something like this reported before, looking for some threads that are related. Found this one, not sure if it helps.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A target="_blank" href="http://software.intel.com/en-us/forums/showthread.php?t=73188&amp;amp;o=a&amp;amp;s=lr" class="thread-name-in-listing"&gt;H.264 - issue decoding a single frame&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Will provide more feedback as I find it.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Paul&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Apr 2010 23:18:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833191#M5729</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-04-23T23:18:31Z</dc:date>
    </item>
    <item>
      <title>h264Decoder not decoding last frame in video stream</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833192#M5730</link>
      <description>Thanks,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I seen this thread but its not related since I can seek correctly.&lt;/DIV&gt;&lt;DIV&gt;(Beside reset() crashing the decoder when its initialed to use &amp;gt;1 thread , see my other post)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I will try with another decoder (mpeg2) ... and report on monday&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Stephan&lt;/DIV&gt;</description>
      <pubDate>Sun, 25 Apr 2010 02:00:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/h264Decoder-not-decoding-last-frame-in-video-stream/m-p/833192#M5730</guid>
      <dc:creator>sschaem</dc:creator>
      <dc:date>2010-04-25T02:00:06Z</dc:date>
    </item>
  </channel>
</rss>

