<p dir="ltr">Thx for the answer.</p>
<p dir="ltr">Can I simply inherit from GstBaseTransform and use the tracked segment from it since it keeps a copy of it ?</p>
<div class="gmail_quote">Le 12 janv. 2016 12:25 AM, "Nicolas Dufresne" <<a href="mailto:nicolas.dufresne@collabora.com">nicolas.dufresne@collabora.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le lundi 11 janvier 2016 à 23:24 +0100, Florian Langlois a écrit :<br>
> Hello,<br>
> For a project I need to insert UTC timestamps into a h.264 stream<br>
> using the MISB ST 604.<br>
> I also need to insert Commercial precision timestamp detailled in the<br>
> same MISB.<br>
> Frames are captured from a live source v4l2src then encoded using an<br>
> imx6 encoder and send with a udpsink.<br>
> Before to start I want to know if someone here has any idea of what<br>
> would be a good pipeline architecture for that ?<br>
> I wanted to develop a dedicated plugin for that but i dont know how<br>
> to get correct UTC timestamp ? Do such a gstclock exist ?<br>
> Thx<br>
> Florian<br>
<br>
You can grab the system clock and set the clock-type property to<br>
GST_CLOCK_TYPE_REALTIME (instead of default which is<br>
GST_CLOCK_TYPE_MONOTONIC). Then you need to force your pipeline into<br>
using that clock, see gst_pipeline_use_clock() method.<br>
<br>
Note that to convert the buffer timestamp into clock time (UTC time),<br>
you will have to track the GstSegment structure from the segment event,<br>
convert the timestamp to running-time and add the pipeline base time<br>
(gst_element_get_base_time(pipeline)).<br>
<br>
cheers,<br>
Nicolas<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div>