Hello Steve,<br><br>I think the best way would be not use a system clock but rather have an internal clock of your src element, which can use values from driver. <br><br>Hope this will help ?<br><br>Regards<br>Kapil<br><br>
<div class="gmail_quote">On Thu, Mar 24, 2011 at 2:33 AM, Steve Roskowski <span dir="ltr">&lt;<a href="mailto:rosko@thirdiris.com">rosko@thirdiris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am building a gstreamer camera source.  It sits directly on top of<br>
the raw hardware and takes advantage of various system oddities.  It<br>
generates 3 srcs - an encoded video stream, a occasional high<br>
resolution snapshot (based on request), and a low resolution preview<br>
data stream.  I want all of them tagged with real-time timestamps<br>
(that is the actual day/date/time from the system), but accurate to<br>
the fractional second of the frame generation.<br>
<br>
I cannot figure out the approved way to do this.  The implementations<br>
I have found, (v4l2 for example), simply use the system clock and<br>
attach a timestamp as the buffer is generated at the user level.  This<br>
fails badly in a loaded embedded device - the variance in thread<br>
servicing shows up in the timestamping, resulting in jerky video.<br>
<br>
I have accurate timestamps attached to the buffers coming up from the<br>
drivers.  How can I take advantage of this?  The simplistic answer of<br>
directly converting this into timestamps on each buffer works fine for<br>
a single src, but with multiple src-s the pipeline fails to get out of<br>
pre-roll.<br>
<br>
I am based on top of base_src which is driving the video stream src,<br>
and sample queues for each of the lower speed sources in the create<br>
function, pushing buffers if they are there.<br>
<br>
any help would be appreciated...<br>
<font color="#888888">--<br>
Steve<br>
_______________________________________________<br>
gstreamer-embedded mailing list<br>
<a href="mailto:gstreamer-embedded@lists.freedesktop.org">gstreamer-embedded@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.mediamagictechnologies.com">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>twitter handle: @gst_kaps<br><a href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>