<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Sebastian,<br>
<br>
The goal is to have the (capture) timestamp of the sender.<br>
<br>
I read
<a class="moz-txt-link-freetext" href="http://gstreamer-devel.966125.n4.nabble.com/Synchronization-of-multiple-senders-using-rtpBin-td4674390.html">http://gstreamer-devel.966125.n4.nabble.com/Synchronization-of-multiple-senders-using-rtpBin-td4674390.html</a><br>
and implemented this to sync the receiver and the sender.<br>
<br>
But is it achievable to convert the splitmuxsink running time to the
(NTP) time of capture on the sender ?<br>
<br>
Regards,<br>
<br>
Rini<br>
<br>
<div class="moz-cite-prefix">On 11-12-15 09:42, Sebastian Dröge
wrote:<br>
</div>
<blockquote cite="mid:1449823332.14115.9.camel@centricular.com"
type="cite">
<pre wrap="">On Fr, 2015-12-11 at 09:13 +0100, Rini van Zetten wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
We have an application which receives video over the lan using rtp.
On the receiver the video is saved in files of 10 seconds using
splitmuxsink.
This works fine !
Now we want to save the start and stop time of each individual video
file.
I can 'capture' the "splitmuxsink-fragment-opened" and "splitmuxsink-
fragment-opened" messages from splitmuxsink and read the running
time. It seems the running time is a time in nanosecond since the
stream started.
How can i convert that time to the absolute time the stream was
captured ?
</pre>
</blockquote>
<pre wrap="">
See gstreamer/docs/design/part-synchronisation.txt for details, but the
clock time corresponding to a running time can be calculated with
clock_time = running_time - base_time
where base_time is the return value of gst_element_get_base_time().
Note that this only gives you a time corresponding to the pipeline's
clock. Which is not necessarily the same as the wall clock.
If you want to have the wall clock time, you could force a system clock
on the pipeline before starting (gst_pipeline_use_clock()) and set its
clock-type property to GST_CLOCK_TYPE_REALTIME.
</pre>
<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="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Rini van Zetten<b><br>
<i>Senior Software Engineer</i><br>
<br>
-------------------------<br>
ARVOO Engineering B.V.<br>
Tasveld 13<br>
3417 XS Montfoort<br>
The Netherlands<br>
<br>
Tel : 0348-418412<br>
<br>
E-mail : <a href="mailto:rini@arvoo.com">rini@arvoo.com</a><br>
<br>
Web : <a href="http://www.arvoo.com">www.arvoo.com</a><br>
</b></b></div>
</body>
</html>