Hi,
I'm trying to get the length of some music file's using gstreamer and
python. I'm using playbin2 and to get started I just copied the example
code from:
http://pygstdocs.berlios.de/pygst-tutorial/playbin.htmland added
print 'duration', self.player.query_duration()
but that results in an exception:
Traceback (most recent call last):
File "play_length.py", line 39, in start_stop
print 'duration', self.player.query_duration()
gst.QueryError: query failed
How do I correctly get the play length of files?
Full code attached.
Thanks,
Florian
--
Florian Ludwig <
[hidden email]>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel