[gst-devel] How to control play speed of playbin?
Michael Smith
msmith at xiph.org
Mon Oct 26 18:30:10 CET 2009
On Mon, Oct 26, 2009 at 9:59 AM, Peter Cai <newptcai at gmail.com> wrote:
> Playbin is really easy to use and it could solve most of my problem.
>
> But how to control the play speed of playbin? My program is expected to
> play a file in 1/2 1/4 or x2 x4 speed.
>
> I tried to search and read the documents for a while but didn't get any
> clue.
You can issue a seek event with a 'rate' of other than 1.0, e.g. 0.5
for half-speed, or 4.0 for quadruple speed.
Negative rates are also permissible (for backwards playback), but are
not implemented for all formats, so don't work very reliably unless
you have a tightly constrained set of input formats.
Mike
More information about the gstreamer-devel
mailing list