<div dir="ltr">Hello,<br><br>I just want to mention that I&#39;m able to seek and get the duration of an mpeg TS. <br><br>I&#39;m using a simple pipeline containing: filesrc ! flutsdemux ! queue ! videodec ! videosink ! queue ! audiodec! audiosink . To do the seek I&#39;m calling seek_simple on the filesrc, with a byte position. Maybe this is not the best approach but it works. To convert bytes duration to time i&#39;m calling query_convert on the pipeline itself.<br>
<br>To get the duration of the TS I first call querry_duraiton on the filesrc (bytes format) and then I request a convertion to time format to the pipeline. <br><br>That&#39;s the only way I found to do it. There may be an easier way, but in the mean time this is useable. <br>
<br>Best,<br><br>Julien <br><br><div class="gmail_quote">2008/9/3 Edward Hervey <span dir="ltr">&lt;<a href="mailto:bilboed@gmail.com">bilboed@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
 &nbsp;I opened a bug on bugzilla regarding that. Comments and patches<br>
welcome.<br>
<br>
 &nbsp;<a href="http://bugzilla.gnome.org/show_bug.cgi?id=550634" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=550634</a><br>
<font color="#888888"><br>
 &nbsp; &nbsp;Edward<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Tue, 2008-09-02 at 22:44 +0100, Zaheer Merali wrote:<br>
&gt; On Tue, Sep 2, 2008 at 9:51 PM, Levi Pope &lt;<a href="mailto:levi.pope@gmail.com">levi.pope@gmail.com</a>&gt; wrote:<br>
&gt; &gt; Has anyone been able to seek or get the duration of a TS file with<br>
&gt; &gt; Gstreamer.<br>
&gt; &gt; I have tried using flutsdemux and it does not seem to work.<br>
&gt; &gt;<br>
&gt; &gt; Thanks<br>
&gt; &gt; Levi<br>
&gt;<br>
&gt; This is a missing feature.<br>
&gt;<br>
&gt; Zaheer<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>