<div dir="ltr">We pass time in ns seconds, but indeed timestamp is in ms, we just convert it before assignment<br><div>GST_BUFFER_PTS(buffer) = timestamp; // in nanos, converted from millis<br><br><br>Sorry for the confusion, I mean we get the duplicate timestamp in for mkv cluster [E7]<br>Cluster
      1
      [1F][43][B6][75]
      -
      mult.
      -
      -
      <abbr title="Master Elements">m</abbr> 
      *
      *
      *
      *
      *
      The Top-Level Element containing the (monolithic) Block structure.
    <br><br>Timecode
      2
      [E7]
      mand.
      -
      -
      -
      <abbr title="Unsigned Integer">u</abbr> 
      *
      *
      *
      *
      *
      Absolute timestamp of the cluster (based on TimecodeScale).<br><div><div class="gmail_extra"><div class="gmail_quote"><div><br><a href="https://matroska.org/technical/specs/index.html">https://matroska.org/technical/specs/index.html</a><br><br></div><div>Any idea why that should be?<br></div><div><br></div><div>Thanks,<br></div><div class="gmail_quote">Dharm<br><br>
------------------------------<wbr>------------------------------<wbr>----------<br>
Message: 1<br>
Date: Wed, 10 Aug 2016 09:42:48 +0200<br>
From: Mailing List SVR <<a href="mailto:lists@svrinformatica.it" target="_blank">lists@svrinformatica.it</a>><br>
To: <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
Subject: Re: gst-plugins-good: matroskamux timestamps<br>
Message-ID: <<a href="mailto:a1d964f0-2052-3807-b772-75d9f31d834a@svrinformatica.it" target="_blank">a1d964f0-2052-3807-b772-75d9f<wbr>31d834a@svrinformatica.it</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
Il 10/08/2016 07:28, DH RA ha scritto:<br>
> Hi All,<br>
><br>
> We use gstreamer and matroskamux with application passing buffer and<br>
> taking out, here is the pipeline<br>
><br>
> appsrc name=appsrc block=false is-live=true format=GST_FORMAT_TIME !<br>
> queue name=q !  matroskamux streamable=true ! appsink name=appsink<br>
><br>
><br>
> We pass buffer with PTS -<br>
><br>
>         GST_BUFFER_PTS(buffer) = timestamp; // in nanos<br>
>         GST_BUFFER_DTS(buffer) = GST_CLOCK_TIME_NONE;<br>
>         gst_app_src_push_buffer(GST_A<wbr>PP_SRC (m_source), buffer);<br>
><br>
> we get duplicate PTS on output buffer, though input always has<br>
> increasing timestamps, is that possible?<br>
<br>
yes, this is possibile since matroskamux rounds timestamps based on<br>
timecodescale, the default value gives millisecond precision,<br>
<br>
take a look at my patch here:<br>
<br>
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=764769" rel="noreferrer" target="_blank">https://bugzilla.gnome.org/sho<wbr>w_bug.cgi?id=764769</a><br>
<br>
it is included in gstreamer git, you can set timecodescale property to<br>
suit your needs<br>
<br>
regards<br>
Nicola<br>
<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160810/cbb6b7aa/attachment-0001.html" rel="noreferrer" target="_blank">https://lists.freedesktop.org<wbr>/archives/gstreamer-devel/atta<wbr>chments/20160810/cbb6b7aa/atta<wbr>chment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br>
<br>
------------------------------<br>
<br>
End of gstreamer-devel Digest, Vol 67, Issue 21<br>
******************************<wbr>*****************<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br></div>
</blockquote></div><br></div></div></div></div>