[gst-devel] regarding negative playback rates in seek

Michael Smith msmith at xiph.org
Fri Apr 17 17:31:07 CEST 2009


On Fri, Apr 17, 2009 at 5:43 AM, Jyoti <jyoti.d at allaboutif.com> wrote:
> Hi all,
>
> I am writing an application to play a video file at different playback
> rates.
> I am able to seek and play with positive playback rates > 1.0 (normal
> playback speed).
> But am not able to play video at negative playback rates(say -2.0).
> The arguments I set in gst_element_seek are as below.
>
> -- cur_pos is the position from where i want to seek.
>
>         gst_element_seek (pipeline, -2.0 , GST_FORMAT_TIME,
>                           GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT,
>                           GST_SEEK_TYPE_SET, 0,
>                           GST_SEEK_TYPE_SET, cur_pos);

Negative speed playback requires that the demuxers and decoders
support that - and many don't. Try with an Ogg file.

Mike




More information about the gstreamer-devel mailing list