I am trying to create an FFmpeg library for use in my Android application with NDK. The reason for this is because I use the built-in video capture feature in Android, because I really do not want to write my own VCR. However, the built-in video capture only allows high-quality encoding or low-quality encoding. I want something in between, and I believe the solution is to use the FFmpeg library to re-encode high quality video to be easier.
So far, I have managed to create the FFmpeg library according to this guide: http://www.roman10.net/how-to-build-ffmpeg-for-android/ and what few settings I was able to make it work.
However, all that I found seems to be related to writing my own encoder, which seems superfluous to me. All I really want to do is send a command-line string to the main () function of FFmpeg and transcode my video. However, I cannot understand how I create FFmpeg to give me access to the main method. I found this post: Compile ffmpeg.c and call its main () via JNI , which refers to a project that does what I want more less, but for the life of me I can not understand what is happening. It seems to be compiling more than I want, and I would really like to keep my application as light as possible.
Some additional direction would be extremely useful. Thank.
source
share