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 .