[pygtk] get_base_time() and get_time()

Pablo Rodríguez oinos at web.de
Thu Aug 14 03:22:32 WST 2008


Hi there,

invoking the following commands repeatedly  in a playing pipeline:

     print self.clock.get_time()
     print self.player.get_base_time()

outputs the following results:

1218486552177048000
748299
1218486552997959000
748299
1218486553569937000
748299

According to Python GStreamer documentation: 
http://pygstdocs.berlios.de/pygst-reference/class-gstelement.html#method-gstelement--get-base-time, 
the get_base_time() returns “the absolute time of the clock when this 
element was last put to PLAYING. Substracting the base time from the 
clock time gives the stream time of the element.”

Sorry, but how should I do that? The results of the different methods 
are not ”sustractable” from one another.

Thanks for your help,


Pablo


More information about the pygtk mailing list