First pass at adding transcode support

This does a hard-coded audio encode to vorbis-in-ogg. In the long term,
this should use encodebin and real encoding profiles.
This commit is contained in:
Arun Raghavan 2012-11-11 11:06:09 +05:30
parent efecef0a6c
commit e915be9208
4 changed files with 131 additions and 0 deletions

22
jni/Android.mk Normal file
View file

@ -0,0 +1,22 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libtranscode
LOCAL_SRC_FILES := transcode.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -landroid
include $(BUILD_SHARED_LIBRARY)
GSTREAMER_SDK_ROOT := $(GSTREAMER_SDK_ROOT_ANDROID)
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) \
audioparsers id3demux isomp4 ogg vorbis \
amrnb amrwbdec faad mad mpegaudioparse \
amc
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk