Search code examples
androidvideomultiple-instancesandroid-mediacodecencoder

Multiple instances of MediaCodec used as video encoder in Android


Is it possible to use two Android MediaCodec instances as video encoder to encode two videos simultaneously?

I know that MediaCodec itself can have multiple instances, for video/audio encoding/decoding. But is there any restriction on hardware/Android version on encoding multiple videos, besides the impact of performance?

More specifically, if considering only Android version 4.3 or higher, is multiple instances of video encoder valid or still be device-dependent?


Solution

  • From my experience it completely depends on a device. And there are devices that are able to support only one instance of video encoder in one time