gstreamer-devel Digest, Vol 67, Issue 21

DH RA gst.lplay at gmail.com
Thu Aug 11 19:40:53 UTC 2016


We pass time in ns seconds, but indeed timestamp is in ms, we just convert
it before assignment
GST_BUFFER_PTS(buffer) = timestamp; // in nanos, converted from millis


Sorry for the confusion, I mean we get the duplicate timestamp in for mkv
cluster [E7]
Cluster 1 [1F][43][B6][75] - mult. - - m * * * * * The Top-Level Element
containing the (monolithic) Block structure.

Timecode 2 [E7] mand. - - - u * * * * * Absolute timestamp of the cluster
(based on TimecodeScale).

https://matroska.org/technical/specs/index.html

Any idea why that should be?

Thanks,
Dharm

----------------------------------------------------------------------
Message: 1
Date: Wed, 10 Aug 2016 09:42:48 +0200
From: Mailing List SVR <lists at svrinformatica.it>
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: gst-plugins-good: matroskamux timestamps
Message-ID: <a1d964f0-2052-3807-b772-75d9f31d834a at svrinformatica.it>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Il 10/08/2016 07:28, DH RA ha scritto:
> Hi All,
>
> We use gstreamer and matroskamux with application passing buffer and
> taking out, here is the pipeline
>
> appsrc name=appsrc block=false is-live=true format=GST_FORMAT_TIME !
> queue name=q !  matroskamux streamable=true ! appsink name=appsink
>
>
> We pass buffer with PTS -
>
>         GST_BUFFER_PTS(buffer) = timestamp; // in nanos
>         GST_BUFFER_DTS(buffer) = GST_CLOCK_TIME_NONE;
>         gst_app_src_push_buffer(GST_APP_SRC (m_source), buffer);
>
> we get duplicate PTS on output buffer, though input always has
> increasing timestamps, is that possible?

yes, this is possibile since matroskamux rounds timestamps based on
timecodescale, the default value gives millisecond precision,

take a look at my patch here:

https://bugzilla.gnome.org/show_bug.cgi?id=764769

it is included in gstreamer git, you can set timecodescale property to
suit your needs

regards
Nicola

>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/atta
chments/20160810/cbb6b7aa/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


------------------------------

End of gstreamer-devel Digest, Vol 67, Issue 21
***********************************************

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160811/9fd42c59/attachment.html>


More information about the gstreamer-devel mailing list