Multiple instances of MediaCodec used as video encoder in Android

前端 未结 2 607
無奈伤痛
無奈伤痛 2020-12-17 05:51

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 instance

相关标签:
2条回答
  • 2020-12-17 06:19

    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

    0 讨论(0)
  • 2020-12-17 06:19

    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.

    0 讨论(0)
提交回复
热议问题