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 6910139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:46:34+00:00 2026-05-27T08:46:34+00:00

I am trying to compile FFMPEG to support a single video type (*.mp4). I

  • 0

I am trying to compile FFMPEG to support a single video type (*.mp4).

I have everything working when I compile for all, but I do not want the extra over-head when I will only use a single format.

Here’s my compile FLAGS now (non-working for MP4). I am sure there are other codecs/decoders I need to specifically enable, but am just having a hard time finding them.

Compiler directives showing the build flags below:

FLAGS="$FLAGS --disable-everything"
FLAGS="$FLAGS --enable-encoder=mpeg4video" ## This is the question, what all needs enabling?

I just do not know video standards well enough to know exactly which codecs / encoders / etc. to turn on.

av_register_all();
avdevice_register_all();

byteCtx = av_alloc_put_byte(buffer, BUFFER_SIZE, 0, f, ReadFunc, NULL, SeekFunc);
if (!byteCtx) {
    return;
}
// Open video file (here's the failure, doesn't happen when compiled for all)
inputFormat = av_find_input_format("MP4");
if (!inputFormat) {
    LOGE(ANDROID_LOG_ERROR, "NDK:", "Null inputformat!");
    return;
}
  • 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-05-27T08:46:34+00:00Added an answer on May 27, 2026 at 8:46 am

    Here’s the proper FLAGS for building my libs with only what I needed. There may be one or two that are still unnecessary, but the size of the lib is manageable now.

        FLAGS="$FLAGS --disable-everything"
    FLAGS="$FLAGS --enable-decoder=mpeg4 --enable-decoder=mpegvideo"
    FLAGS="$FLAGS --enable-decoder=aac --enable-decoder=h264"
    FLAGS="$FLAGS --enable-parser=aac --enable-parser=mpeg4video"
    FLAGS="$FLAGS --enable-parser=mpegaudio --enable-parser=mpegvideo"
    FLAGS="$FLAGS --enable-parser=ac3 --enable-parser=h261"
    FLAGS="$FLAGS --enable-parser=h264 --enable-parser=vc1"
    FLAGS="$FLAGS --enable-demuxer=mpegvideo --enable-demuxer=aac"
    FLAGS="$FLAGS --enable-demuxer=m4v --enable-demuxer=mov"
    FLAGS="$FLAGS --enable-demuxer=h264 --enable-demuxer=vc1"
    FLAGS="$FLAGS --enable-muxer=h264 --enable-muxer=mpeg2video"
    FLAGS="$FLAGS --enable-muxer=mp4 --enable-muxer=mov"
    FLAGS="$FLAGS --enable-protocol=file"
    FLAGS="$FLAGS --enable-indev=v4l --enable-indev=v4l2"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just trying to compile some trivial Haskell, but its not finding the c runtimes,
I am trying to compile last FFmpeg for iPhone, but I am getting an
I'm trying to compile 0.4.7 for Heroku support, but I can't seem to get
I'm trying to compile the ffmpeg by using the make and build files in
Im trying to compile but im getting these errors: 1>.\item.cpp(123) : warning C4800: 'int'
I'm trying to extract frames from a video and I've picked ffmpeg ( tell
I'm trying to compile fastboot for Android using this guide , but I'm getting
I have successfully integrated and compiled ffmpeg with libfaac. When I am trying to
Trying to compile a unity3d project in xcode but i'm getting the following compile
Hi trying the compile Objective C++/Protocol code but the compilation fails with error Expected

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.