Gstreamer Android SDK (Cong 2013.6) rtsp not working well

Gregoire Gentil gregoire at gentil.com
Fri Aug 2 00:15:52 PDT 2013


Hello,

I'm trying to make work reliably in Android the following pipeline that 
works 10/10 on a PC:

gst-launch rtspsrc 
location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov ! 
rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! autovideosink

I have taken Tutorial 3 of Gstreamer SDK Congo 2013.6 and I have applied 
the following patch:

--- android-tutorial-3/AndroidManifest.xml
+++ android-tutorial-3/AndroidManifest.xml
@@ -4,6 +4,7 @@
        android:versionCode="1"
        android:versionName="1.0">
      <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14"/>
+    <uses-permission android:name="android.permission.INTERNET"/>
      <uses-feature android:glEsVersion="0x00020000"/>
      <application android:label="@string/app_name"
                   android:icon="@drawable/gst_sdk_icon">
--- android-tutorial-3/jni/tutorial-3.c
+++ android-tutorial-3/jni/tutorial-3.c
@@ -156,7 +156,7 @@
    g_main_context_push_thread_default(data->context);

    /* Build pipeline */
-  data->pipeline = gst_parse_launch("videotestsrc ! warptv ! 
ffmpegcolorspace ! autovideosink", &error);
+  data->pipeline = gst_parse_launch("rtspsrc 
location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov ! 
rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! autovideosink", &error);
    if (error) {
      gchar *message = g_strdup_printf("Unable to build pipeline: %s", 
error->message);
      g_clear_error (&error);
--- android-tutorial-3/jni/Android.mk
+++ android-tutorial-3/jni/Android.mk
@@ -16,6 +16,6 @@
  endif
  GSTREAMER_NDK_BUILD_PATH  := 
$(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build/
  include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
-GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE) 
$(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)
+GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE) 
$(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)  rtsp rtp 
uridecodebin udp ffmpeg mpegtsmux
  GSTREAMER_EXTRA_DEPS      := gstreamer-interfaces-0.10 
gstreamer-video-0.10
  include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk

Most of the time, it's failing like this:
http://pastebin.com/m76PzavH

When it's working very rarely, it's giving this:
http://pastebin.com/8P4zc2c3

Am I doing something wrong or is there a bug? Thanks in advance,

Grégoire



More information about the gstreamer-devel mailing list