Search code examples
androidandroid-ndkhardware-accelerationopenmax

Building android H264 decoder using OpenMAX AL


I am trying to develope an H264 hardware accelerated video decoder using OpenMAX AL API. But this documents states that -

The only supported way to supply multimedia content is via an MPEG-2 transport stream.

But according to Wikipedia, MPEG-2 is H262 and older less advanced version of H264. So should decoding H264 work?

Also, the above documents states that -

The major feature is the ability to play an MPEG-2 transport stream containing a single program stream made up of one H.264 video elementary stream and one AAC audio elementary stream.

So what's the fact here? Would I able to decode H264 Baseline Annex B stream using OpenMax AL? Or do I need to approach with OpenMax IL or stagefright?


Solution

  • Well, OpenMax AL only supports the decoding of MPEG-2 transport stream via a buffer queue. This rules out passing raw h264 NALUs or other media formats for that matter.