Discussion:
Android 1.7.90: Missing plugin MPEG-2 AAC
elio francesconi
2016-03-19 09:50:17 UTC
Permalink
Hi all I've recompiled with gstreamer-1.0-android-arm-1.7.90 library under
Android but I cannot find

03-19 10:30:53.588 3110 3157 W GStreamer+uridecodebin: 0:00:15.625693290
0x9f910c90 gsturidecodebin.c:1006:no_more_pads_full:<uridecodebin0> error:
no suitable plugins found:
03-19 10:30:53.588 3110 3157 W GStreamer+uridecodebin:
gstdecodebin2.c(4581): gst_decode_bin_expose ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
03-19 10:30:53.588 3110 3157 W GStreamer+uridecodebin: no suitable
plugins found:
03-19 10:30:53.588 3110 3157 W GStreamer+uridecodebin: Missing decoder:
MPEG-2 AAC (audio/mpeg, framed=(boolean)true, mpegversion=(int)2,
level=(string)1, profile=(string)lc, rate=(int)22050, channels=(int)2,
stream-format=(string)adts)

This is GSTREAMER_PLUGINS and I've
added GSTREAMER_PLUGINS_CODECS_RESTRICTED

This is my Android.mk

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := radio_streaming
LOCAL_SRC_FILES := radio_streaming.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog -landroid

include $(BUILD_SHARED_LIBRARY)
GSTREAMER_ROOT :=
<abs_path>gstreamer/gstreamer-1.0-android-$(TARGET_ARCH)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_CODECS_RADIO) \
$(GSTREAMER_PLUGINS_NET) \
$(GSTREAMER_PLUGINS_SYS) \
$(GSTREAMER_PLUGINS_CODECS_RESTRICTED)

G_IO_MODULES := gnutls

GSTREAMER_EXTRA_DEPS := gstreamer-video-1.0
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk

What's wrong?

Thanks in advance

Elio
Sebastian Dröge
2016-03-19 10:30:14 UTC
Permalink
Post by elio francesconi
audio/mpeg, framed=(boolean)true,
mpegversion=(int)2, level=(string)1, profile=(string)lc,
rate=(int)22050, channels=(int)2, stream-format=(string)adts)
Can you provide a sample stream somewhere? This should've been handled
by avdec_aac (from the libav plugin) and faad. Which are both part of
GSTREAMER_PLUGINS_CODECS_RESTRICTED.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
elio francesconi
2016-03-19 16:39:40 UTC
Permalink
This is the stream url: http://nr11.newradio.it:9146/stream and the
pipeline is just: playbin
Post by Sebastian Dröge
Post by elio francesconi
audio/mpeg, framed=(boolean)true,
mpegversion=(int)2, level=(string)1, profile=(string)lc,
rate=(int)22050, channels=(int)2, stream-format=(string)adts)
Can you provide a sample stream somewhere? This should've been handled
by avdec_aac (from the libav plugin) and faad. Which are both part of
GSTREAMER_PLUGINS_CODECS_RESTRICTED.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Sebastian Dröge
2016-03-20 09:41:44 UTC
Permalink
This is the stream url: http://nr11.newradio.it:9146/stream and the
pipeline is just: playbin
This stream is successfully decoded with avdec_aac here. Can you make
sure it's available in your application? E.g. by testing if
gst_element_factory_make("avdec_aac", NULL) returns something not NULL?
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
elio francesconi
2016-03-20 15:15:48 UTC
Permalink
Hi Sebastian,
now it works very well, I did a dependency issue, the new recompiled
library was not properly copied into apk.
AFAIK Android Studio doesn't support NDK and I added into gradle setting an
instance to copy the sharedlibraries into apk.
This procedure doesn't work all time I recompile the .so files I'm
investigating on that...
It'll be great if you update the GStreamer tutorial with Android Studio,
correct if I'm wrong but your project are designed for Eclipse, right?
I've right now found a project that explains steps to compile tutorial 5
with Android Studio, take a look:
https://github.com/jaroslavas/Gstreamer-Android-example/tree/master/app
Thanks for your time
Elio
Post by Sebastian Dröge
Post by elio francesconi
This is the stream url: http://nr11.newradio.it:9146/stream and the
pipeline is just: playbin
This stream is successfully decoded with avdec_aac here. Can you make
sure it's available in your application? E.g. by testing if
gst_element_factory_make("avdec_aac", NULL) returns something not NULL?
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Sebastian Dröge
2016-03-20 21:35:07 UTC
Permalink
Post by elio francesconi
Hi Sebastian,
now it works very well, I did a dependency issue, the new recompiled library was not properly copied into apk.
AFAIK Android Studio doesn't support NDK and I added into gradle setting an instance to copy the sharedlibraries into apk.
This procedure doesn't work all time I recompile the .so files I'm investigating on that...
It'll be great if you update the GStreamer tutorial with Android Studio, correct if I'm wrong but your project are designed for Eclipse, right? 
I've right now found a project that explains steps to compile tutorial 5 with Android Studio, take a look: https://github.com/jaroslavas/Gstreamer-Android-example/tree/master/app
You can find two projects with Android Studio support here:
https://github.com/sdroege/gst-launch-remote/
https://github.com/sdroege/gst-player/tree/master/android
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
Loading...