<div dir="ltr">Hello,<br><br>I just want to mention that I'm able to seek and get the duration of an mpeg TS. <br><br>I'm using a simple pipeline containing: filesrc ! flutsdemux ! queue ! videodec ! videosink ! queue ! audiodec! audiosink . To do the seek I'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'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'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"><<a href="mailto:bilboed@gmail.com">bilboed@gmail.com</a>></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>
I opened a bug on bugzilla regarding that. Comments and patches<br>
welcome.<br>
<br>
<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>
Edward<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Tue, 2008-09-02 at 22:44 +0100, Zaheer Merali wrote:<br>
> On Tue, Sep 2, 2008 at 9:51 PM, Levi Pope <<a href="mailto:levi.pope@gmail.com">levi.pope@gmail.com</a>> wrote:<br>
> > Has anyone been able to seek or get the duration of a TS file with<br>
> > Gstreamer.<br>
> > I have tried using flutsdemux and it does not seem to work.<br>
> ><br>
> > Thanks<br>
> > Levi<br>
><br>
> This is a missing feature.<br>
><br>
> Zaheer<br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
> Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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>