After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704660 - Don't working playing with negative rate
Don't working playing with negative rate
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-android
unspecified
Other Windows
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-22 07:22 UTC by ilya.shknaj
Modified: 2013-09-03 10:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ilya.shknaj 2013-07-22 07:22:06 UTC
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
Comment 1 Sebastian Dröge (slomo) 2013-07-22 08:27:11 UTC
Can you reproduce this with 1.0? 0.10 is no longer maintained and if you need support for that you'll have to report that to the SDK project.
Comment 2 ilya.shknaj 2013-09-03 09:45:39 UTC
I have some problem when i try compile sample with 1.0.
Where i can report about problem in sdk?
Comment 3 Tim-Philipp Müller 2013-09-03 10:17:06 UTC
bugs.freedesktop.org -> gstreamer-sdk component