Hi everybody,<div><br></div><div>i'm facing a little annoying problem.</div><div><br></div><div>to give you the context, i get some satellite DVB streams from a DVB card. this stream is saved on a .ts file.</div><div><br>
</div><div>i must record the stream to be able to control this "pseudo-llive" stream.</div><div><br></div><div>the idea is to play this file with gstreamer.</div><div><br></div><div>the problem i have is that the duration of the stream is never updated.</div>
<div>So when i get the duration with a gst_element_query_duration(), the returned duration is the one calculated at gstreamer start time. but in my case it's not right the file is filled permanently and the duration evolves.</div>
<div><br></div><div>as mentioned here <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html</a></div>
<div><br></div><div>**********************************************</div><div><div>GST_MESSAGE_DURATION</div><div><br></div><div>Is posted by an element that detected a change in the stream duration. <b>The default bin behaviour is to clear any cached duration values so that the next duration query will perform a full duration recalculation.</b> The duration change is posted to the application so that it can refetch the new duration with a duration query. Note that these messages can be posted before the bin is prerolled, in which case the duration query might fail.</div>
</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>**********************************************</div><div></div></div><div><br></div><div>but i never receive this message.</div><div><br></div>
<div><div>is there any way to force the pipeline (or playbin, or some other element) to update this duration?</div><div>or a method to manually clear the cached duration?</div><div><br></div><div>i hope i was clear</div><div>
<br></div><div>Best regards</div></div><div><br></div><div>-- <br>Arnaud Tonda<br><br>
</div>