<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello, <span style="color:rgb(33,33,33); font-size:13.3333px">Antoine</span></p>
<p><span style="color:rgb(33,33,33); font-size:13.3333px"><br>
</span></p>
<p><span style="color:rgb(33,33,33); font-size:13.3333px">I am using subtitles inside of matroska for the same task.</span></p>
<p><span style="color:rgb(33,33,33); font-size:13.3333px"><br>
</span></p>
<p><span style="color:rgb(33,33,33); font-size:13.3333px">Mikl</span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of Antoine Martin <antoine@nagafix.co.uk><br>
<b>Sent:</b> Wednesday, February 15, 2017 12:11:10 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> absolute buffer timestamp from src element</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
<br>
I have a simple pipeline that looks like this:<br>
pulsesrc ! queue ! opusenc ! oggmux ! appsink<br>
I would like to capture the absolute unix timestamp of the buffers as<br>
they get captured by pulsesrc.<br>
I can get the "timestamp" property of the buffers, but this starts at zero..<br>
<br>
I need this timestamp in a format that I can reconcile with external<br>
data that will captured around the same time, but not through gstreamer.<br>
<br>
I guess we could use the pipeline latency to retroactively calculate the<br>
actual absolute timestamp, but I could never figure out how to get the<br>
pipeline latency using the python bindings:<br>
<a href="http://gstreamer-devel.966125.n4.nabble.com/latency-queries-tt4676750.html#none">http://gstreamer-devel.966125.n4.nabble.com/latency-queries-tt4676750.html#none</a><br>
<br>
The only other solution I can think of would be to write a filter that<br>
adds a property or keeps track of the delta between the buffer timestamp<br>
and a point of reference. (would this property be preserved through the<br>
encoder and muxer?)<br>
<br>
Is there a better way?<br>
<br>
Thank<br>
Antoine<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div>
</span></font>
</body>
</html>