Playing RTSP stream on android

Udayan Kumar udayan.kumar at gmail.com
Wed Sep 4 11:11:29 PDT 2013


On Sebastian's suggestion, I upgraded to 1.0.8 and I still see the same problem.

here is my Android.mk file incase i forgot to add any module  :
-----------------------------

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := tutorial-4
LOCAL_SRC_FILES := tutorial-4.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog -landroid
include $(BUILD_SHARED_LIBRARY)

ifndef GSTREAMER_ROOT
ifndef GSTREAMER_ROOT_ANDROID
$(error GSTREAMER_ROOT_ANDROID is not defined!)
endif
GSTREAMER_ROOT        := $(GSTREAMER_ROOT_ANDROID)
endif
GSTREAMER_NDK_BUILD_PATH  := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE)
$(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
$(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
$(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
GSTREAMER_EXTRA_DEPS      := gstreamer-video-1.0
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk


---------------------------------------------
thanks !

On Tue, Sep 3, 2013 at 10:44 AM, Udayan Kumar <udayan.kumar at gmail.com> wrote:
> I am adding the logs here (after adding gst_debug_set_default_
> threshold(GST_LEVEL_INFO) in the gst_native_init()).
>
> RTSP url used is rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov
>
> Towards the end of the log collection period, I had pushed the play
> button on the player once.
>
>
> I tried updating to the 1.0 (
> gstreamer-1.0-android-arm-1.0.
> 10-debug-runtime.tar.bz2) but could not
> figure out a way to generate libgstreamer_android.so library.  So
> still using 2013.6 SDK.
>
> Many thanks!
>
> On Mon, Sep 2, 2013 at 2:18 AM, Sebastian Dröge
> <slomo at circular-chaos.org> wrote:
>> On Fr, 2013-08-30 at 14:41 -0500, Udayan Kumar wrote:
>>> Hi,
>>>
>>> I am working through tutorial 4 for the android gstreamer sdk. The
>>> http streaming playback is working but instead of the http stream if I
>>> give a uri for the RTSP stream, I get the following warning in logcat
>>> and video does not play:
>>>
>>> 08-30 12:54:07.277: W/GStreamer+tutorial-4(18874): 2:21:41.337401721
>>> 0x5d6b8ba0 /Users/test/Downloads/gstreamer-sdk-android-arm-debug-2013.6/share/gst-sdk/tutorials/android-tutorial-4/jni/tutorial-4.c:138:refresh_ui
>>> Could not query current duration
>>>
>>>
>>> I am using the 2013.6 SDK for android. my RTSP stream is based on H264
>>> encoding, so I have added  $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) to
>>> the plugins list in Android.mk file.
>>>
>>> Can someone please help in understanding what may be going wrong here ?
>>> The rtsp stream playback on VLC player without an issue.
>>
>> Could you get debug logs? Enabled e.g. via
>> gst_debug_set_default_threshold(GST_LEVEL_INFO) and using the
>> non-release (i.e. debug) version of the SDK?
>>
>> Also consider updating to the 1.0 version, see here at the bottom:
>> http://lists.freedesktop.org/archives/gstreamer-devel/2013-August/042736.html
>>
>> _______________________________________________
>> gstreamer-android mailing list
>> gstreamer-android at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android


More information about the gstreamer-android mailing list