3
votes

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?

2

2 Answers

2
votes

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

1
votes

Yes, like what @Marlon said, it totally depends on what device you used. For example, I use OPPO A39 which can only create 8 mediacodec instance at the same time.