@jasonl
I am getting mpeg2 byte array data which i am creating codec using MediaCodec::CreateByType(codecLooper, mime.c_str(), false/encoder/);
that time failed to create codec when i am trying to create by using MediaCodec::CreateByComponentName(codecLooper, “OMX.google.mpeg2.decoder”)
that time it’s creating codec but codec init failed due to mpegL2 not support for the audio format.
From what i remember mpegL2 is not supported in the android 9 sdk.
and it think it is this codec for the L2 OMX.google.mp2.decoder.
I will add it in my next build, but no promises it will work!
@superceleron
Have you added in source code or build can you tell me what changes required to mpeg2 audio support. Can you please tell the changes require for android pie for audio mpeg2 audio support.
When i am opening direct file with mediaplayer or other player in khadas which is available that’s working audio and video.
But when i am trying to open with media codec
mCodec = MediaCodec::CreateByType(codecLooper, mime.c_str(), false);
it’s showing failed to create mediacode.
mime = “audio/mpeg-L2”
So how can i open mediacodec and init so that it should work because it’s working on the different app which is video player.