<div dir="ltr"><div>Hello,</div><div><br></div><div>Can you try with master, this should work now.</div><div><br></div><div>Regards,</div><div><br></div><div>- Thibault<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 8, 2020 at 5:37 PM killerrats <<a href="mailto:koreysjunkmail@gmail.com">koreysjunkmail@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre><font size="4">
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 */
        <b>// tried the gespipeline and the gst_element(gespipeline) that has the main pipe.
GstElement* pipeline = (GST_ELEMENT(gespipeline)) / gespipeline;</b>
        gst_element_send_event(pipeline, seek_event);
</font></pre>

        
        
        <div style="margin-top:1em;color:rgb(102,102,102);font-size:11px">
                                ------------------------------
<br>Gstreamer 1.14.3
<br>------------------------------
<br>Windows
                        </div>
<br><hr width="300" align="left">
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>