Brykyz
Brykyz

Reputation: 657

Install GStreamer plugins on Android

I am trying to build my application on android. I am bit stucked on

GstElement* pipeline = gst_parse_launch ("rtspsrc location=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov ! decodebin ! appsink name=sink", &err);

because, GError *err writes out no element "rtspsrc". I have already searched for some ways to add missing plugins/elements, but with no success.

I have found this page, which shows how to install plugins in code, but when I tried, gst_install_plugins_sync returned GST_INSTALL_PLUGINS_HELPER_MISSING and from this point, i don't know how to continue.

I have fully built library for gstreamer-1.0 including libgstrtsp-1.0, but I don't understand why my program doesn't find it.

How can I add plugins/elements to android?

Thanks for your help!

//EDIT:

Link, which I used to build libary, and I am using Android 4.4.4

Upvotes: 3

Views: 2453

Answers (1)

Zoltán Hajdú
Zoltán Hajdú

Reputation: 535

You have to define extra plugins inside your Android.mk file:

GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)

The list of available plugins groups are defined in: $(GSTREAMER_ROOT_ANDROID)/$(TARGET_ARCH_ABI)/share/gst-android/ndk-build/plugins.mk

Additonally use playbin to play the RTSP stream like:

gst_parse_launch("playbin uri=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov", &error);

Upvotes: 5

Related Questions