androidx / androidx/media

[Question] HEVC video (without audio) not rendered in PlayerView

Open
#3,026 4 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Jan 23, 2026.

needs triage question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Hello,

I'm playing a locally stored HEVC video track in MP4 container (it doesn't have any audio track) using ExoPlayer (media3 1.4.1) in Android 12L based AAOS. It plays fine after boot up, however subsequent play attempts tend to fail and PlayerView doesn't render any video frames. Upon debugging, AsynchronousMediaCodecCallback claims both availableInputBuffers and availableOutputBuffers to be empty and codec's callback onInputBufferAvailable and onOutputBufferAvailable aren't invoked.

MediaCodecRenderer's feedInputBuffer just keeps failing as it isn't able to dequeue an input buffer from platform's MediaCodec (c2.qti.hevc.decoder). Attaching debugger doesn't help as it changes timing and video renders fine.

So far, these workaround seems to help with successful video playback

  • initialize player and prepare 100 milliseconds after activity's onStart

  • or setup a MergingMediaSource and combine another mp4 having just an audio track of same length without any delay in activity's onState

    Can the team provide any pointers for debugging this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.