[FFmpeg-devel] [PATCH] add support to Android ndk MediaCodec for encoding/decoding
Martin Storsjö
martin at martin.st
Sat Jun 27 21:54:58 EEST 2020
On Sat, 27 Jun 2020, Olivier Ayache wrote:
> Hi everyone this is the first time I post on this mailing list. I am
> working since several years on a fork of Xuggler for manipulating ffmpeg
> API with Java/Kotlin.
> This work leads me to develop encoder and decoder based on Android NDK
> MediaCodec.
>
> This work can be found on my Github repository
>
> https://github.com/olivierayache/xuggle-xuggler
>
>
> I know that FFmpeg already integrate MediaCodec for decoding via Jni
> wrappers since version 3.1. I began this work on FFmpeg 2.8.x and I choose
> the NDK in order to achieve optimum performance.
If you mean you used the NDK MediaCodec API, I'd suggest you use the same
JNI wrappers as ffmpeg has already, for consistency. The overhead of a few
JNI calls per encoded frame is generally negligible. If it, at a later
time, is decided to drop support for older versions at some point, it
should be straightforward to convert it to use the NDK MediaCodec API
instead.
// Martin
More information about the ffmpeg-devel
mailing list