Gurtaj
Gurtaj

Reputation: 13

MediaCodec Lollipop not decoding raw H264 stream 1080P at 60 FPS

This is my follow up question to below thread

Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2

On the path of debugging the root cause of above issue, I tried various approach to Decode 1080P at 60 FPS.

So My doubts are

  1. Is the decoder capable of playing 1080p@60fps video, with correct Frame rate ?
  2. If so, then why MediaCodec ( using ACodec code internally ) is not capable of playing 1080p@60fps video.
  3. I am not sure if OMXCodec is used in this process, Where can I get OMXCodec sample code to decode my video.

Upvotes: 0

Views: 1135

Answers (1)

szatmary
szatmary

Reputation: 31101

Is the decoder capable of playing 1080p@60fps video, with correct Frame rate ?

Totally depends on the device.

If so, then why MediaCodec ( using ACodec code internally ) is not capable of playing 1080p@60fps video.

h.264 has levels. 1080p@60 requires level 4.2 or higher. If the chip on your device only supports 4.0, then it cant do 1080@60. Why? Money and battery. 1080@60 requires twice the decoding power of 1080@30, cutting into profit margins and battery life for something most people will never notice.

I am not sure if OMXCodec is used in this process, Where can I get OMXCodec sample code to decode my video.

"Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it."

Upvotes: 2

Related Questions