[gst-devel] backward seeking

Ash hashbrown100 at hotmail.com
Mon Jul 28 22:47:12 CEST 2008


Thank you Rov. I have similar results in that ogg files work with backward seek, but no luck with mpeg1/mpeg2/wmv/mp3. Any idea what the problem is? Is it just not developed yet?> From: rovjuvano at users.sourceforge.net> To: gstreamer-devel at lists.sourceforge.net> Date: Sat, 26 Jul 2008 10:55:24 -0400> Subject: Re: [gst-devel] backward seeking> > On Fri, Jul 25, 2008 at 08:08:49PM +0000, Ash wrote:> > Has any developer out there gotten backward seek (negative rate) to work with GST_FORMAT_TIME?> > Yep.> > gint64 start_pos, stop_pos;> if (rate > 0) {> start_pos = new_pos;> stop_pos = -1; // or whatever > new_pos> } else {> start_pos = 0; // or whatever < new_pos> stop_pos = new_pos;> }> if (!gst_element_seek (pipeline, rate,> GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,> GST_SEEK_TYPE_SET, start_pos,> GST_SEEK_TYPE_SET, stop_pos)) {> g_message ("Seek failed");> }> > I've only had luck with ogg-vorbis and ogg-theora.> > > -------------------------------------------------------------------------> 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
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080728/da15921e/attachment.htm>


More information about the gstreamer-devel mailing list