Android 1.7.90: Missing plugin MPEG-2 AAC

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Android 1.7.90: Missing plugin MPEG-2 AAC

elio.francesconi

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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Android 1.7.90: Missing plugin MPEG-2 AAC

Sebastian Dröge-3
On Sa, 2016-03-19 at 10:50 +0100, elio francesconi wrote:
> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Android 1.7.90: Missing plugin MPEG-2 AAC

elio.francesconi
This is the stream url: http://nr11.newradio.it:9146/stream and the pipeline is just: playbin



2016-03-19 11:30 GMT+01:00 Sebastian Dröge <[hidden email]>:
On Sa, 2016-03-19 at 10:50 +0100, elio francesconi wrote:
> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Android 1.7.90: Missing plugin MPEG-2 AAC

Sebastian Dröge-3
On Sa, 2016-03-19 at 17:39 +0100, elio francesconi wrote:
> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Android 1.7.90: Missing plugin MPEG-2 AAC

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
Thanks for your time
Elio

2016-03-20 10:41 GMT+01:00 Sebastian Dröge <[hidden email]>:
On Sa, 2016-03-19 at 17:39 +0100, elio francesconi wrote:
> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Android 1.7.90: Missing plugin MPEG-2 AAC

Sebastian Dröge-3
On So, 2016-03-20 at 16:15 +0100, elio francesconi wrote:
> 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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment