no element ahcsrc

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

no element ahcsrc

mudassar
Hi,

I am trying to use ahcsrc with android tutorial in Android Studio and I am
getting no element ahscr.

I am using gstreamer-1.0-android-universal-1.10.0, my Android.mk file is as
follows

LOCAL_PATH := $(call my-dir)

# Edit this line
GSTREAMER_ROOT_ANDROID :=
/Users/Mudassar/Documents/D/dev/GstAndroidlib/gstreamer-1.0-android-universal-1.10.0/arm


SHELL := PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin /bin/bash

include $(CLEAR_VARS)

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



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         := coreelements androidmedia
$(GSTREAMER_PLUGINS_EFFECTS) $(GSTREAMER_PLUGINS_CAPTURE)
$(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK)
$(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET)
$(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
G_IO_MODULES              := gnutls
GSTREAMER_EXTRA_DEPS      := gstreamer-video-1.0 gstreamer-plugins-base-1.0
gstreamer-bad-video-1.0


include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk


In my logcat output I am getting following message.
gst-android-hardware-camera.c:1616:_init_classes Failed to initialize
android.hardware.Camera classes:

Complete message is here: https://pastebin.com/w9BJwagL

Could anyone help me plz ?




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

Re: no element ahcsrc

iris12
Hi,

You can find the related java files - GstAhcCallback.java,
GstAhsCallback.java and GstAmcOnFrameAvailableListener.java under
arm\share\gst-android\ndk-build\androidmedia folder in your
gstreamer-1.0-android-universal-1.10.

And you should add that files to org/freedesktop/gstreamer/androidmedia
package in your android project.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel