How to control play speed of playbin?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to control play speed of playbin?

Peter Cai
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.



--
look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to control play speed of playbin?

michael smith-6-3
On Mon, Oct 26, 2009 at 9:59 AM, Peter Cai <[hidden email]> 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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel