[gst-devel] backward seeking

Ash hashbrown100 at hotmail.com
Fri Jul 25 22:08:49 CEST 2008


Has any developer out there gotten backward seek (negative rate) to work with GST_FORMAT_TIME?

Date: Fri, 25 Jul 2008 18:11:23 +0200From: ylatuya at gmail.comTo: gstreamer-devel at lists.sourceforge.netSubject: Re: [gst-devel] backward seeking
Hi! If you set the start time at 0, a backward seeking will try to seek to negatives values. It will place your stream at 0 mseconds and then it will try to go backward witch is imposible as it's the end of the stream. Try changing your start time to curpos*GST_MSECOND. It will seek to a new position with positive values and your stream will be played backward to the 0 position.
2008/7/25 Ash <hashbrown100 at hotmail.com>:

The seek returns true but just hangs. Are there any other messages I can see as to what is really happening in the pipeline?> From: thaytan at noraisin.net> To: gstreamer-devel at lists.sourceforge.net> Date: Fri, 25 Jul 2008 00:08:46 +0100> Subject: Re: [gst-devel] backward seeking 


> > On Thu, 2008-07-24 at 20:52 +0000, Ash wrote:> > Anybody know why backward seeking causes playback to hang?> > > > gst_element_seek(m_bin, -2.0 , GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH |> > GST_SEEK_FLAG_KEY_UNIT,> > GST_SEEK_TYPE_SET, 0,> > GST_SEEK_TYPE_SET, curpos*GST_MSECOND);> > > > Am I calling this wrong?> > > > > > ______________________________________________________________________> Whether reverse playback works depends on the container & codecs - it's> not implemented everywhere yet. You should check the return value from> gst_element_seek - was the seek refused?> > J.> -- > Jan Schmidt <thaytan at noraisin.net>> > > -------------------------------------------------------------------------> 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

Time for vacation? WIN what you need. Enter Now!-------------------------------------------------------------------------This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK & win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________gstreamer-devel mailing listgstreamer-devel at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/gstreamer-devel
_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080725/a3a1a694/attachment.htm>


More information about the gstreamer-devel mailing list