<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Il 10/08/2016 07:28, DH RA ha scritto:<br>
</div>
<blockquote
cite="mid:CAA1KBUqF8+DZYLvwvExrykHy=vKNaygg4tWj3HSrOsp0tU+Mbg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi All,<br>
<br>
</div>
We use gstreamer and matroskamux with application passing
buffer and taking out, here is the pipeline<br>
<br>
appsrc name=appsrc block=false is-live=true
format=GST_FORMAT_TIME ! queue name=q ! matroskamux
streamable=true ! appsink name=appsink<br>
<br>
<br>
</div>
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_APP_SRC (m_source),
buffer);<br>
<br>
</div>
we get duplicate PTS on output buffer, though input always has
increasing timestamps, is that possible?</div>
</blockquote>
<br>
yes, this is possibile since matroskamux rounds timestamps based on
timecodescale, the default value gives millisecond precision,<br>
<br>
take a look at my patch here:<br>
<br>
<a class="moz-txt-link-freetext" href="https://bugzilla.gnome.org/show_bug.cgi?id=764769">https://bugzilla.gnome.org/show_bug.cgi?id=764769</a><br>
<br>
it is included in gstreamer git, you can set timecodescale property
to suit your needs<br>
<br>
regards<br>
Nicola<br>
<br>
<blockquote
cite="mid:CAA1KBUqF8+DZYLvwvExrykHy=vKNaygg4tWj3HSrOsp0tU+Mbg@mail.gmail.com"
type="cite">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>