[gst-devel] How to find out the time a pipeline has been run for?

Stefan Kost ensonic at hora-obscura.de
Fri Nov 19 15:34:24 CET 2010


On 18.11.2010 16:23, Yogesh Marwaha wrote:
> Thanks for your reply, but this is not what I was asking. I want the
> time/period for which the pipeline has run, not the time/duration
> which it has processed.
>   

If you need wallclock time, you can use gst_util_get_timestamp(), call
it before and after and subtract to get the time-span.

Stefan

> Regards
>
> On 18 November 2010 17:35, sudarshan bisht <bisht.sudarshan at gmail.com> wrote:
>   
>> Hi,
>>
>> You can query current position from the pipeline. For more information visit
>> the link;
>>
>>
>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-queryevents.html#section-querying
>>
>>
>> On Thu, Nov 18, 2010 at 12:45 PM, Yogesh Marwaha <yogeshm.007 at gmail.com>
>> wrote:
>>     
>>> Hi,
>>>
>>> I have a simple pipeline for ripping audiocd track.
>>>
>>> It is something like this: -
>>> cdparanoiasrc > audioconvert > lamemp3enc > filesink
>>>
>>> I want to be able to show its progress in a gui and, hence, want to
>>> know the time the pipeline has run any given point.
>>>
>>> Thanks in advance,
>>>
>>> --
>>> Yogesh M
>>> http://sparklemedia.sourceforge.net/
>>> http://mazedaar.wordpress.com/
>>> http://snakeeyes.wordpress.com/
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Beautiful is writing same markup. Internet Explorer 9 supports
>>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>>> Spend less time writing and  rewriting code and more time creating great
>>> experiences on the web. Be a part of the beta today
>>> http://p.sf.net/sfu/msIE9-sfdev2dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>       
>>
>>
>> --
>> Regards,
>>
>> Sudarshan Bisht
>>
>> ------------------------------------------------------------------------------
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and  rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today
>> http://p.sf.net/sfu/msIE9-sfdev2dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>>     
>
>
>   





More information about the gstreamer-devel mailing list