Tracking time for which a pipeline has been in Playing state.
Yogesh Marwaha
yogeshm.007 at gmail.com
Wed Feb 23 02:50:32 PST 2011
On 22 February 2011 16:55, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> On Sun, 2011-02-20 at 20:16 +0530, Yogesh Marwaha wrote:
>
> Hi,
>
> > I'm coding a transcoding application (not using encodebin).
> >
> > Upto now I had been using following code to get time for which the
> pipeline
> > has been in Playing state (To show user information like xx
> minutes/seconds
> > the operation has run for or to calcutate averate speed and estimate
> remaining
> > time etc.): -
>
> Maybe what you want is a progressreport element in your pipeline
> (somewhere between decoder + encoder)?
>
> This will post "progress" element messages on the bus.
>
> e.g.:
>
> gst-launch-0.10 filesrc location=foo.flac ! decodebin2 !
> progressreport ! fakesink
>
Cheers
> -Tim
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
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)
Regards,
--
Yogesh M
http://sparklemedia.sourceforge.net/
http://mazedaar.wordpress.com/
http://snakeeyes.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110223/79736c00/attachment-0001.htm>
More information about the gstreamer-devel
mailing list