v4l2src and mpeg4 plugins on Android

Francesco Argese kekko84 at gmail.com
Mon May 13 02:35:34 PDT 2013


2013/5/13 Sebastian Dröge <sebastian.droege at collabora.co.uk>

>
> v4l2 is no public API on Android and not available on many devices.
>
> You can get the MPEG4 encoder when listing the ffmpeg plugin in your
> Android.mk


I have tried to follow your suggestion regarding fffenc_mpeg4 and I have
created the Android.mk below but, when I compile with ndk-build I obtain
the error below.

I have seen that for every plugin available a related library exists with
name libgst$(plugin_name).a in directory
$(GST_ANDROID_ROOT)/lib/gstreamer-0.10/static but, for ffenc_mpeg4, it
doesn't exist and it seems that it was not compiled.

Am I wrong somewhere?

Regarding vrl2src does exist another plugin to read frames from an Android
camera device?

Thank you very much,
Francesco Argese

----------------------------------- NDK compilation error
------------------------------------------------------------------------------------

C:\Sviluppo\Eclipse_workspace\Tutorial3>ndk-build
C:/Sviluppo/android-ndk-r8d/build/core/add-application.mk:128: Android NDK:
WARN
ING: APP_PLATFORM android-14 is larger than android:minSdkVersion 9 in
./Android
Manifest.xml
GStreamer      : [GEN] => gst-build/gstreamer_android.c
GStreamer      : [COMPILE] => gst-build/gstreamer_android.c
GStreamer      : [LINK] => gst-build/libgstreamer_android.so
c:/sviluppo/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/window
s/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin
/ld.gold.exe: error: cannot find -lgstffenc_mpeg4
c:/sviluppo/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/window
s/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin
/ld.gold.exe: gst-build/gstreamer_android.o: in function
gst_android_register_st
atic_plugins:gstreamer_android.c(.text+0x224): error: undefined reference
to 'gs
t_plugin_ffenc_mpeg4_register'
collect2: ld returned 1 exit status
make: *** [buildsharedlibrary] Error 1

C:\Sviluppo\Eclipse_workspace\Tutorial3>



------------------------------------------ Android.mk
----------------------------------------------------------------------------


LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

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

ifndef GSTREAMER_SDK_ROOT
ifndef GSTREAMER_SDK_ROOT_ANDROID
$(error GSTREAMER_SDK_ROOT_ANDROID is not defined!)
endif
GSTREAMER_SDK_ROOT        := $(GSTREAMER_SDK_ROOT_ANDROID)
endif
GSTREAMER_NDK_BUILD_PATH  :=
$(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build/
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE)
$(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)
$(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
$(GSTREAMER_PLUGINS_NET) ffenc_mpeg4
GSTREAMER_EXTRA_DEPS      := gstreamer-interfaces-0.10 gstreamer-video-0.10
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130513/26a0e041/attachment.html>


More information about the gstreamer-android mailing list