GES Playback Rate?

Thibault Saunier tsaunier at gnome.org
Fri May 8 21:51:41 UTC 2020


Hello,

Can you try with master, this should work now.

Regards,

- Thibault

On Fri, May 8, 2020 at 5:37 PM killerrats <koreysjunkmail at gmail.com> wrote:

>
> I am trying to fiddle with the playback rate but haven't been able to make the video go slower or faster. Anyone know how to do this?
>
> Tried:
> 1. gst_element_seek();
> 2.
>     /* Create the seek event */
> 	if (playRate > 0) {
> 		seek_event =
> 			gst_event_new_seek(playRate, GST_FORMAT_TIME,
> 				(GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), GST_SEEK_TYPE_SET,
> 				gPosition, GST_SEEK_TYPE_END, 0);
> 	}
> 	else {
> 		seek_event =
> 			gst_event_new_seek(playRate, GST_FORMAT_TIME,
> 			(GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), GST_SEEK_TYPE_SET, 0,
> 				GST_SEEK_TYPE_SET, gPosition);
> 	}
>
> 	if (video_sink == NULL) {
> 		/* If we have not done so, obtain the sink through which we will send the seek events */
> 		g_object_get(G_OBJECT(gespipeline), "video-sink", &video_sink, NULL);
> 	}
> 	if (audio_sink == NULL) {
> 		/* If we have not done so, obtain the sink through which we will send the seek events */
> 		g_object_get(G_OBJECT(gespipeline), "audio-sink", &audio_sink, NULL);
> 		if(audio_sink != NULL)
> 		{
> 			gboolean mute = (playRate > 1.0)?TRUE:FALSE;
> 				g_object_set(G_OBJECT(audio_sink), "mute",mute, NULL);
>
> 		}
> 	}
>
> 	/* Send the event */
>         *// tried the gespipeline and the gst_element(gespipeline) that has the main pipe.
> GstElement* pipeline = (GST_ELEMENT(gespipeline)) / gespipeline;*
> 	gst_element_send_event(pipeline, seek_event);
>
> ------------------------------
> Gstreamer 1.14.3
> ------------------------------
> Windows
>
> ------------------------------
> Sent from the GStreamer-devel mailing list archive
> <http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200508/2515cec7/attachment.htm>


More information about the gstreamer-devel mailing list