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;
}