audio - Android MediaCodec for AC-3 -
I am trying to decode AC3 audio with the Android MediaCode API. I can successfully decode AAC if I format csd-0 . To
AC attempting to decode the 3, I use the following MediaFormat in your configuration:
AMEDIAFORMAT_KEY_MIME: "Audio / AC3" AMEDIAFORMAT_KEY_CHANNEL_COUNT: 6 AMEDIAFORMAT_KEY_SAMPLE_RATE : 48000 AMEDIAFORMAT_KEY_IS_ADTS: 0 Do I need to provide some additional data to decoder? I AC3 am unfamiliar with the standard, which may be equal to the elementary stream descriptor AMediaCodec_configure I get the following error message:
01-22 December: 37: 58.760: e / ACodec (10548): [OMX.Nvidia.bypass.decoder] configureCodec return error - + 2147483648 December 1 to 22: 37: 58.760: e / ACodec (10548): signalError (omxError 0x80001001, internalError - + 2147483648) 01-22 December: 37: 58.760: E / MediaCodec (10548): A Deck, Hey 0x80001001 reported, actionCode 0, the state 3 December 1 to 22: 37: 58.760: E / MediaCodec (10548): configured thaw failed with 0x80001001, is reset ... csd-0
How to handle AC-3 OpenMAX IL (which is the standard used internally below MediaCodec) but there is no official imagination, but in spite of this, some manufacturers expose such decoders.
I tried to do the decoding on Samsung Galaxy S3 earlier, where it started working, and I did not have to give any extra data to see the information about this experiment.
I think that this particular Nvidia does not address decoder behaves differently, or if there has been something missing ACodec / MediaCodec levels inbetween, that makes it impossible to use. (The internal OMX API used to be used directly, previously available from MediaCodec.) To complete the answer, I think I should check the experiment on Galaxy S3, both via OMX directly and via MediaCodec, and Then on an Nvidia device (is it a Nexus 9 that you are testing, or something else?).
Comments
Post a Comment