[Bug 704660] New: Don't working playing with negative rate

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jul 22 00:22:11 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=704660
  GStreamer | gst-android | unspecified

           Summary: Don't working playing with negative rate
    Classification: Platform
           Product: GStreamer
           Version: unspecified
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-android
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: ilya.shknaj at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Use code from tutorial 13
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+13%3A+Playback+speed
Don't working playing video with negative playback rate. Also I can't get
previously frame, only next.

For set rate use code from tutorial.
For next and prev frame use next code :

void gst_native_next_frame(JNIEnv *env, jobject thiz) {
    CustomData *data = GET_CUSTOM_DATA (env, thiz, custom_data_field_id);
    if (!data) {
        return;
    }
    if (data->video_sink == NULL) {
        /* If we have not done so, obtain the sink through which we will send
the step events */
        g_object_get(data->pipeline, "video-sink", &data->video_sink, NULL);
    }

    gst_element_send_event(data->video_sink,
            gst_event_new_step(GST_FORMAT_BUFFERS, 1, data->rate, TRUE,
FALSE));
    g_print("Stepping one frame\n");
}

void gst_native_prev_frame(JNIEnv *env, jobject thiz) {
    CustomData *data = GET_CUSTOM_DATA (env, thiz, custom_data_field_id);
    if (!data) {
        return;
    }
    if (data->video_sink == NULL) {
        /* If we have not done so, obtain the sink through which we will send
the step events */
        g_object_get(data->pipeline, "video-sink", &data->video_sink, NULL);
    }

    gst_element_send_event(data->video_sink,
            gst_event_new_step(GST_FORMAT_BUFFERS, 1, -1.0, TRUE, FALSE));
    g_print("Stepping one frame\n");
}


I am use this SDK
http://www.freedesktop.org/software/gstreamer-sdk/data/packages/android/arm/gstreamer-sdk-android-arm-debug-2013.6.zip

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list