gst-plugins-good: matroskamux timestamps

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gst-plugins-good: matroskamux timestamps

DH RA
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?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-plugins-good: matroskamux timestamps

Mailing List SVR
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


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