# Compile FFmpeg for Android

DevFeed: [Compile FFmpeg for Android](<https://devfeed.tech/articles/compile-ffmpeg-for-android-21767.md>)

Original publisher: [Read original article](<https://enoent.fr/posts/compile-ffmpeg-for-android/>)

Author: Marc Plano-Lesay

Published: 2014-06-20T08:40:00Z

Content type: tutorial

Language: en

Sources: [Marc Plano-Lesay](<https://devfeed.tech/sources/marc-plano-lesay.md>)

Topics: [FFmpeg (Fast Forward Moving Picture Experts Group)](<https://devfeed.tech/topics/ffmpeg.md>), [Android](<https://devfeed.tech/topics/android.md>), [C](<https://devfeed.tech/topics/c.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Stack Overflow](<https://devfeed.tech/topics/stackoverflow.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [android](<https://devfeed.tech/tags/android.md>), [build](<https://devfeed.tech/tags/build.md>), [c](<https://devfeed.tech/tags/c.md>), [ffmpeg](<https://devfeed.tech/tags/ffmpeg.md>), [github](<https://devfeed.tech/tags/github.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linux](<https://devfeed.tech/tags/linux.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [software](<https://devfeed.tech/tags/software.md>), [source](<https://devfeed.tech/tags/source.md>)

## AI overview

A tutorial explains how to compile FFmpeg 2.2.3 for Android using the Android SDK and NDK, with steps for Linux, third-party libraries, an NDK module, and JNI wrappers in C and Java.

## Source excerpt

When you have to manipulate audio or video on Android, being used to open-source software, you have a single name which comes directly to you: FFmpeg. However, FFmpeg is a C software, meant to be used as an executable, and not officially supporting Android. There are a lot of partial and/or out-of-date how-to out there on how to get FFmpeg running on Android, like halfninja's build. However, I needed to use FFmpeg concat demuxer, introduced in FFmpeg 1.1. Most builds target 0.9. There's a ton of questions on StackOverflow about getting newer FFmpeg releases working on Android. So, here's a full explanation to get FFmpeg 2.2.3 "Muybridge" working on Android. I'll describe the steps for Linux, but everything is pretty standard shell and should work on any decent OS.