pipeline rate/playback speed method

Michael Gruner michael.gruner at ridgerun.com
Mon Oct 10 17:54:43 UTC 2022


Hi Tomaž

Take a look at gst_query_parse_segment <https://gstreamer.freedesktop.org/documentation/gstreamer/gstquery.html?gi-language=c#gst_query_parse_segment>. I believe the rate parameter is the one you’re looking for.

Michael
www.ridgerun.com <http://www.ridgerun.com/>

> On 10 Oct 2022, at 11:51, Tomaž Smodiš via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
> 
> Hi 
> 
> I do not know if this mail is correct one. Still I am sending mail regarding my issue with gstreamer.
> 
> I hope you can forward my email to correct team.
> 
> My problem:
> 
> I would like to get playback rate of a playing gstreamer pipeline. I can get duration of media with:
> 
> gst_element_query_duration(pipelinePlayMsg, GST_FORMAT_TIME, &duration);
> 
> But there is no such method for playback speed of media as: gst_element_query_rate(pipelinePlayMsg, GST_FORMAT_TIME, &rate);
> 
> How to get playback rate (speed)?
> 
> kind regards, Thomas
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221010/c316dd8b/attachment.htm>


More information about the gstreamer-devel mailing list