<div class="gmail_quote">On 22 February 2011 16:55, Tim-Philipp Müller <span dir="ltr">&lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, 2011-02-20 at 20:16 +0530, Yogesh Marwaha wrote:<br>
<br>
Hi,<br>
<br>
&gt; I&#39;m coding a transcoding application (not using encodebin).<br>
&gt;<br>
&gt; Upto now I had been using following code to get time for which the pipeline<br>
&gt; has been in Playing state (To show user information like xx minutes/seconds<br>
&gt; the operation has run for or to calcutate averate speed and estimate remaining<br>
&gt; time etc.): -<br>
<br>
</div>Maybe what you want is a progressreport element in your pipeline<br>
(somewhere between decoder + encoder)?<br>
<br>
This will post &quot;progress&quot; element messages on the bus.<br>
<br>
e.g.:<br>
<br>
gst-launch-0.10 filesrc location=foo.flac ! decodebin2 !<br>
progressreport ! fakesink<br> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 Cheers<br>
<font color="#888888">  -Tim<br>
</font><div><div></div><div class="h5"><br>
<br>
<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>progressreport element only give access to the processed and actual lengths of stream. It does show remaining time in the debug output but that too is always increasing (i.e. when pipeline is put to Paused state)<div>
<br></div><div>Regards,<br clear="all"><br>-- <br>Yogesh M<br><a href="http://sparklemedia.sourceforge.net/">http://sparklemedia.sourceforge.net/</a><br><a href="http://mazedaar.wordpress.com/">http://mazedaar.wordpress.com/</a><br>
<a href="http://snakeeyes.wordpress.com/">http://snakeeyes.wordpress.com/</a><br>
</div>