Does somebody know how to use FFMPEG on Android to convert YUV420 frame to H.264?
I have ported FFMPEG work on Android with NDK, I just don’t know how to use it. A source code is appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You have two options:
sample code. this requires good
understanding of the api and which
is very comprehnsive.
compile ffmpeg.c and invoke its
main() via jni. This requires that
you understand the command line
parameters. It is rather cumbersome
but works.
You need to look out for the static vars defined in ffmpeg.c and reset them every time you invoke the main function. Also make sure you don’t invoke the main in two threads simultaneously .