androidx / androidx/media

H.265 unencrypted stream playback with video black or frozen on MediaTek decoder

Open
#2,765 3 comments 0 reactions 1 assignee View on GitHub

@tonihei is already working on this.

Since Sep 5, 2025.

bug: device specific
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

ExoPlayer 2.15.0

More version details

On XiaoMi TV with Android 14, H.265/HEVC hardware decoding on (MediaTek (MTK) hardware decoder , c2.mtk.hevc.decoder) devices fails to render video. The decoder initializes without throwing errors, but the output surface remains black or frozen.

Image

Please investigate as a potential MediaCodec hardware decoder(c2.mtk.hevc.decoder) failure in the video decoding or rendering process.

This is the the provided log file:

logcat1.txt.zip

Devices that reproduce the issue

On XiaoMi TV with Android 14

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

Play an H.265/HEVC-encoded video with hardware decoding enabled.
Observe playback behavior:

Black screen while audio continues

Expected result

H.265/HEVC content should decode and render smoothly via the MediaTek HEVC hardware decoder.

Actual result

Black screen (audio continues) or frozen video frame.
No MediaCodec renderedFrame or similar logs and no error callback or ExoPlaybackException is reported.

Media

Video Details:
Resolution: e.g., 1920×1080
Frame Rate: e.g., 30 fps
DRM: No
URI: the HLS stream is protected, we can offer a TS segment.
http://t033.cloud.vod03.icntvcdn.com/hls/850K/2025/08/29/3c53b4bc644c4389a60f62a9b2da6bee/20250829T093241-1-0.ts

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

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.