How to retrieve the length of a stream without playing it

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to retrieve the length of a stream without playing it

Adam Brandizzi
Hi, list.

I'm building a little file player with GStreamer (more specifically,
PyGst). I use a GstPlaybin to play the files. I'd like to retrieve the
length of a stream (actually, the length of audio files) but it seems
that gst_query_duration() just returns the length of the stream if it
is being executed, both in PyGst and in "pure" Gstreamer.

So, how could I retrieve the length of a stream without playing it
with GStreamer? Is there some way?

Thanks in advance!

--
Adam Victor Nazareth Brandizzi
http://brandizzi.googlepages.com
http://suspensaodejuizo.wordpress.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel