gst-plugins-good: matroskamux timestamps

Mailing List SVR lists at svrinformatica.it
Wed Aug 10 07:42:48 UTC 2016


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/attachments/20160810/cbb6b7aa/attachment.html>


More information about the gstreamer-devel mailing list