[gst-devel] Duration and Seek in MPEG TS File
Julien Pauty
julien.pauty at gmail.com
Thu Sep 18 11:22:10 CEST 2008
Hello,
I just want to mention that I'm able to seek and get the duration of an mpeg
TS.
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.
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.
That's the only way I found to do it. There may be an easier way, but in the
mean time this is useable.
Best,
Julien
2008/9/3 Edward Hervey <bilboed at gmail.com>
> Hi all,
>
> I opened a bug on bugzilla regarding that. Comments and patches
> welcome.
>
> http://bugzilla.gnome.org/show_bug.cgi?id=550634
>
> Edward
>
> On Tue, 2008-09-02 at 22:44 +0100, Zaheer Merali wrote:
> > On Tue, Sep 2, 2008 at 9:51 PM, Levi Pope <levi.pope at gmail.com> wrote:
> > > Has anyone been able to seek or get the duration of a TS file with
> > > Gstreamer.
> > > I have tried using flutsdemux and it does not seem to work.
> > >
> > > Thanks
> > > Levi
> >
> > This is a missing feature.
> >
> > Zaheer
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080918/59ea1f9f/attachment.htm>
More information about the gstreamer-devel
mailing list