GStreamer Android SDK VP8 failed to initialize encoder

Denis Green zagre.torez at gmail.com
Sun Dec 2 13:31:04 PST 2012


Hi,
I use Tutorial #2

1. File tutorial-2.c changed to
data->pipeline = gst_parse_launch("videotestsrc !
video/x-raw-yuv,framerate=15/1 ! ffmpegcolorspace ! vp8enc ! queue !
webmmux streamable=true ! queue ! tcpserversink port=8555", &error);

2. Makefile changed to the make file from tutorial 5.
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := tutorial-2
LOCAL_SRC_FILES := tutorial-2.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog
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_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
$(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
G_IO_MODULES              := gnutls
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk

3. Android permission set:
<uses-permission android:name="android.permission.INTERNET" />

I get error:
12-02 23:29:33.926: D/GStreamer+tutorial-2(11859): 0:00:03.412432000
0x4d88da00 jni/tutorial-2.c:82:set_ui_message Setting message to:
Error received from element vp8enc0: Failed to initialize encoder


Any help appreciated,
Denis


More information about the gstreamer-android mailing list