Login  Register

Re: gstreamer-devel Digest, Vol 67, Issue 21

classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: gstreamer-devel Digest, Vol 67, Issue 21

DH RA
2 posts
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).
Any idea why that should be?

Thanks,
Dharm

----------------------------------------------------------------------
Message: 1
Date: Wed, 10 Aug 2016 09:42:48 +0200
From: Mailing List SVR <[hidden email]>
To: [hidden email]
Subject: Re: gst-plugins-good: matroskamux timestamps
Message-ID: <[hidden email]>
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

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

Subject: Digest Footer

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

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



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel