no element ahcsrc

mudassar mudassar87 at hotmail.com
Sun Sep 3 08:30:36 UTC 2017


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/


More information about the gstreamer-devel mailing list