Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9249085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:06:16+00:00 2026-06-18T10:06:16+00:00

I have compiled FFmpeg for Android to suite my needs in terms of codecs,

  • 0

I have compiled FFmpeg for Android to suite my needs in terms of codecs, muxers etc.
Now I have an executable that, from what I understand, should be placed in my project dir under <project-root>/external/<arbitrary-folder-name>/data/data/<my-app-package-name>/app_opt. What I have inside app_opt now is:

    .
├── bin
│   └── ffmpeg
├── include
│   ├── libavcodec
│   │   ├── avcodec.h
│   │   ├── avfft.h
│   │   ├── dxva2.h
│   │   ├── vaapi.h
│   │   ├── vda.h
│   │   ├── vdpau.h
│   │   ├── version.h
│   │   └── xvmc.h
│   ├── libavdevice
│   │   └── avdevice.h
│   ├── libavfilter
│   │   ├── asrc_abuffer.h
│   │   ├── avcodec.h
│   │   ├── avfiltergraph.h
│   │   ├── avfilter.h
│   │   ├── buffersink.h
│   │   ├── buffersrc.h
│   │   ├── version.h
│   │   └── vsrc_buffer.h
│   ├── libavformat
│   │   ├── avformat.h
│   │   ├── avio.h
│   │   └── version.h
│   ├── libavutil
│   │   ├── adler32.h
│   │   ├── aes.h
│   │   ├── attributes.h
│   │   ├── audioconvert.h
│   │   ├── audio_fifo.h
│   │   ├── avassert.h
│   │   ├── avconfig.h
│   │   ├── avstring.h
│   │   ├── avutil.h
│   │   ├── base64.h
│   │   ├── bprint.h
│   │   ├── bswap.h
│   │   ├── common.h
│   │   ├── cpu.h
│   │   ├── crc.h
│   │   ├── dict.h
│   │   ├── error.h
│   │   ├── eval.h
│   │   ├── fifo.h
│   │   ├── file.h
│   │   ├── imgutils.h
│   │   ├── intfloat.h
│   │   ├── intfloat_readwrite.h
│   │   ├── intreadwrite.h
│   │   ├── lfg.h
│   │   ├── log.h
│   │   ├── lzo.h
│   │   ├── mathematics.h
│   │   ├── md5.h
│   │   ├── mem.h
│   │   ├── opt.h
│   │   ├── parseutils.h
│   │   ├── pixdesc.h
│   │   ├── pixfmt.h
│   │   ├── random_seed.h
│   │   ├── rational.h
│   │   ├── samplefmt.h
│   │   ├── sha.h
│   │   ├── timecode.h
│   │   └── timestamp.h
│   ├── libpostproc
│   │   └── postprocess.h
│   ├── libswresample
│   │   └── swresample.h
│   └── libswscale
│       └── swscale.h
├── lib
│   ├── libavcodec.a
│   ├── libavdevice.a
│   ├── libavfilter.a
│   ├── libavformat.a
│   ├── libavutil.a
│   ├── libpostproc.a
│   ├── libswresample.a
│   ├── libswscale.a
│   └── pkgconfig
│       ├── libavcodec.pc
│       ├── libavdevice.pc
│       ├── libavfilter.pc
│       ├── libavformat.pc
│       ├── libavutil.pc
│       ├── libpostproc.pc
│       ├── libswresample.pc
│       └── libswscale.pc
└── share
    └── ffmpeg
        ├── examples
        │   ├── decoding_encoding.c
        │   ├── filtering_audio.c
        │   ├── filtering_video.c
        │   ├── Makefile
        │   ├── metadata.c
        │   └── muxing.c
        ├── ffprobe.xsd
        ├── libvpx-1080p50_60.ffpreset
        ├── libvpx-1080p.ffpreset
        ├── libvpx-360p.ffpreset
        ├── libvpx-720p50_60.ffpreset
        ├── libvpx-720p.ffpreset
        ├── libx264-ipod320.ffpreset
        └── libx264-ipod640.ffpreset

Do I need just the ffmpeg under bin to place in my project’s <project-root>/res/raw dir?

And what is the easiest way to call ffmpeg and feed it with a command string?

I compiled FFmpeg with limited decoders and demuxers, because I need audio extraction only.

See: How can I get FFmpeg to locate installed libraries when –sysroot is pointing to another directory?

I would use it in background and notify the user in notification bar on completion.

I know that, here on SO, other similar questions are present, but they are a bit vague or confusing, at least for me. I understand at this point I lack of competences (actually my App is a jigsaw made of java-code-snippets from the Net that work together).

I’d appreciate some guidance.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:06:17+00:00Added an answer on June 18, 2026 at 10:06 am

    Although an executable ‘ffmpeg’ placed in a bin folder will run on a rooted phone, its actually not the best way to distribute ffmpeg in an app which will be suitable for general distribution.

    The better interface is to use a standard JNI interface where android loads a shared lib permitting an invocation of ffmpeg and then calls the shell, android method serving as a wrapper for a CLI exec of ffmpeg.

    For a great sample , see “android-ffmpeg-x264” project on github.

    The android JNI interface is here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully compiled the FFMPEG library to android using NDK. I want to
I am using a static compiled lib of FFMPEG gotten from BAMBUSER for android.
So we have for example ffmpeg that can be compiled into > than 4
I have tried to compile the last version of ffmpeg with the android ndk
I have compiled FreeImage from source and installed it. When I run sudo make
I have compiled and build my application in Netbeans which includes Java DB. Now
I am compiling a project that uses both ffmpeg and Ogre. Now on Windows,
I have compiled FFmpeg library using NDK and use it to trim videos and
I have successfully integrated and compiled ffmpeg with libfaac. When I am trying to
I have configured, compiled a FFmpeg source code version 0.5 with versions as below:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.