Tracking time for which a pipeline has been in Playing state.
Tim-Philipp Müller
t.i.m at zen.co.uk
Tue Feb 22 03:25:54 PST 2011
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
More information about the gstreamer-devel
mailing list