Use FFMPEG on Android [closed]

You have two options:

  1. use ffmpeg api – google ffmpeg
    sample code. this requires good
    understanding of the api and which
    is very comprehnsive.
  2. 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 .

Leave a Comment