<?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 Re: Mpeg2-decoder: Timestamp based on GOP? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904799#M13277</link>
    <description>&lt;P&gt;Decoder use timestamps from input MediaData. If they are not set by demuxer they are started from 0. We have no plans to change it.&lt;/P&gt;
&lt;P&gt;It looks possible to modify CalculateFrameTime so that it used GOP's timestampand frame's temporal reference. The problem can be that some streams can have these fields not set or incorrect.&lt;/P&gt;
&lt;P&gt;As well you need to care about possible 3:2 pulldown, when frames can have duration different than 1/framerate.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Leonid&lt;/P&gt;</description>
    <pubDate>Wed, 13 Aug 2008 14:53:29 GMT</pubDate>
    <dc:creator>Leonid_K_Intel</dc:creator>
    <dc:date>2008-08-13T14:53:29Z</dc:date>
    <item>
      <title>Mpeg2-decoder: Timestamp based on GOP?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904798#M13276</link>
      <description>Hello,&lt;BR /&gt;I seems that the PTS of a MPEG2-frame is only based on the framerate and is always started at PTS=0. &lt;BR /&gt;In my case I have a smal clip of a video and it's necessary to show the played time in relation to the original video. My idea is to define the PTS based on the time-information in the GOP.&lt;BR /&gt;Is that already (or will it) implemented?&lt;BR /&gt;And if not, do only need to reimplement MPEG2VideoDecoderBase::CalculateFrameTime?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2008 12:30:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904798#M13276</guid>
      <dc:creator>dewildt</dc:creator>
      <dc:date>2008-08-13T12:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mpeg2-decoder: Timestamp based on GOP?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904799#M13277</link>
      <description>&lt;P&gt;Decoder use timestamps from input MediaData. If they are not set by demuxer they are started from 0. We have no plans to change it.&lt;/P&gt;
&lt;P&gt;It looks possible to modify CalculateFrameTime so that it used GOP's timestampand frame's temporal reference. The problem can be that some streams can have these fields not set or incorrect.&lt;/P&gt;
&lt;P&gt;As well you need to care about possible 3:2 pulldown, when frames can have duration different than 1/framerate.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Leonid&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2008 14:53:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904799#M13277</guid>
      <dc:creator>Leonid_K_Intel</dc:creator>
      <dc:date>2008-08-13T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mpeg2-decoder: Timestamp based on GOP?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904800#M13278</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;MADlakulako:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;Decoder use timestamps from input MediaData. If they are not set by demuxer they are started from 0. We have no plans to change it.
&lt;P&gt;It looks possible to modify CalculateFrameTime so that it used GOP's timestampand frame's temporal reference. The problem can be that some streams can have these fields not set or incorrect.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;OK, in that case I will reimplement CalculateFrameTime. I think a fallback in cases that the GOP-time is not set will be not a big problem.&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;All member functions of MPEG2VideoDecoderBase and MPEG2VideoDecoder are declared with the (macro)keyword MPEG2_VIRTUAL, but MPEG2_VIRTUAL is defined to nothing (blank), so the member functions are not virtual and a reimplementation is not called by the base class.&lt;BR /&gt;I think I only need to set those lines to&lt;BR /&gt; &lt;I&gt;#define MPEG2_VIRTUAL virtual&lt;/I&gt;&lt;BR /&gt;Is there a special reason why MPEG2_VIRTUAL is not set to virtual?&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;Is it correct, that &lt;I&gt;MPEG2VideoDecoderBase::FindSliceStartCode&lt;/I&gt; is not implemented?&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Aug 2008 07:19:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904800#M13278</guid>
      <dc:creator>dewildt</dc:creator>
      <dc:date>2008-08-14T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mpeg2-decoder: Timestamp based on GOP?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904801#M13279</link>
      <description>&lt;P&gt;Daniel,&lt;/P&gt;
&lt;P&gt;It is not defined to virtual because we had no derived classes, API functions of &lt;EM&gt;MPEG2VideoDecoderBase&lt;/EM&gt;are called directly using &lt;EM&gt;MPEG2VideoDecoder&lt;/EM&gt; wrapper and non-virtual functions call isa bit faster. &lt;/P&gt;
&lt;P&gt;You can either define MPEG2_VIRTUAL to virtual or just declare a single function you need to virtual.&lt;/P&gt;
&lt;P&gt;Declaration of &lt;EM&gt;FindSliceStartCode&lt;/EM&gt; reamained in class by error. Thanks for pointing it out.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Leonid&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2008 09:45:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mpeg2-decoder-Timestamp-based-on-GOP/m-p/904801#M13279</guid>
      <dc:creator>Leonid_K_Intel</dc:creator>
      <dc:date>2008-08-14T09:45:12Z</dc:date>
    </item>
  </channel>
</rss>

