[gst-devel] stream duration query
mail at renestadler.de
Thu Dec 14 18:32:40 CET 2006
Am Donnerstag, den 14.12.2006, 20:23 +0530 schrieb
karthik.duggirala at wipro.com:
> Am trying to mux live audio and video, in raw formats into avi file.
> While trying to play the file am able to play it. But the
> query (gst_element_query_duration) for the stream duration fails.
> In order to solve this while stopping the recording process am adding
> eos message(gst_message_new_eos) to audio and video source seperately.
> But still the problem seems to exist. Is there something that i need
> to do while stopping
> the recording or any other possible way to find the stream duration
"Adding an EOS message" will have no effect. Messages are for
communication from elements to the application. You probably mixed them
up with events.
Your problem can be solved by making the live sources shut down
correctly -- in a way that makes them send an EOS event theirselves.
This is described in the section "Controlled shutdown of live sources in
applications" in this document:
More information about the gstreamer-devel