Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I created scripts to build FFmpeg, see my answer here:</p> <p><a href="https://stackoverflow.com/questions/12660043/arm-linux-androideabi-gcc-is-unable-to-create-an-executable-compile-ffmpeg-fo/13244551#13244551">arm-linux-androideabi-gcc is unable to create an executable - compile ffmpeg for android armeabi devices</a></p> <p>One you have FFmpeg compiled create a "jni" folder in the root of your project. In the jni folder create Android.mk with these contents:</p> <pre><code>include $(call all-subdir-makefiles) </code></pre> <p>Then create Application.mk with these contents:</p> <pre><code>APP_ABI := armeabi armeabi-v7a x86 </code></pre> <p>Next, in the jni folder create the following folder structure:</p> <p>ffmpeg/ffmpeg/</p> <p>In the first ffmpeg folder create another Android.mk:</p> <pre><code>LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libavcodec LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libavformat LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libavutil LOCAL_SRC_FILES := ffmpeg/$(TARGET_ARCH_ABI)/lib/$(LOCAL_MODULE).so LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include include $(PREBUILT_SHARED_LIBRARY) LOCAL_PATH:= $(call my-dir) </code></pre> <p>Finally, move the contents of the build folder (from the build script) to /jni/ffmpeg/ffmpeg/</p> <p>From the project root run:</p> <pre><code>ndk-build clean </code></pre> <p>Then run:</p> <pre><code>ndk-build </code></pre> <p>If you are feeling lazy you can simply download the jni folder from my project here and delete the "metadata" and "player" folders:</p> <p><a href="http://svn.code.sf.net/p/servestream/code/trunk/jni/" rel="nofollow noreferrer">http://svn.code.sf.net/p/servestream/code/trunk/jni/</a></p> <p>Let me know if you have any additional questions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload