Some issues of running gstreamer-android in the emulator

Fang Bao Fang.Bao at arm.com
Thu Apr 21 00:01:29 PDT 2011


Hi,

I tried the gstreamer-android in the emulator running on Ubuntu 10.10 amd64 and followed the documents < http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions>.
Android started playing audio/video failed and printed follow errors:

E/GstDriver(  369): Can't create surfaceflingersink
V/GstDriver(  369): add surfaceflingersink to playbin
E/GstDriver(  369): Can't create audioflingersink
V/GstDriver(  369): add audioflingersink to playbin
E/GstDriver(  369): Pipeline not initialized

I found the plugins surfaceflingersink and audioflingersink were not built in default configuration.

1. audioflingersink is defined as optional tags in gst-plugins-bad/sys/audioflingersink/Android.mk.
So I issue the follow commands to build this library and added it to Android system image:

make libgstaudioflinger
make snod

2. surfaceflingersink is removed from Android.mk. The details is as follow:

commit a8130b5855aad4dd25927f70362fac1ff8e64c89
Author: reynaldo <reynaldo at opendot.cl>
Date:   Wed Apr 13 15:35:40 2011 -0400

    Remove -android2 buildsystem hooks, surfaceflingersink is in gst-android now

diff --git a/Android.mk b/Android.mk
index 98155ac..ea9c30f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -132,7 +132,6 @@ include $(GSTREAMER_AGGREGATE_TOP)/gst-openmax/Android.mk
 include $(GSTREAMER_AGGREGATE_TOP)/gst-plugins-bad/Android.mk
 ifeq ($(NDK_BUILD),false)
 include $(GSTREAMER_AGGREGATE_TOP)/gst-android/Android.mk
-include $(GSTREAMER_AGGREGATE_TOP)/gst-plugins-android2/Android.mk
 endif
 include $(GSTREAMER_AGGREGATE_TOP)/gst-plugins-ugly/Android.mk

So I reverted this change and build whole system again.

After above two steps, the surfaceflingersink and audioflingersink were created successfully and pipeline were initialized ok.

I have a question why setting audioflingersink library tag to optional?



Best Regards,

Fang Bao


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.


More information about the gstreamer-android mailing list