H264 Encoded TS Videos Cannot Be Played on Some Devices
@icbaker is already working on this.
Since Jun 5, 2025.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.6.1
More version details
No response
Devices that reproduce the issue
see below
Devices that do not reproduce the issue
see below
Reproducible in the demo app?
Not tested
Reproduction steps
Hello, I encountered a problem when writing a project. When playing h264-encoded TS videos, some devices cannot use the hardware decoder for decoding, and all devices can use the software decoder (c2.android.avc.decoder) for decoding.(I have added support for mp2 via FFmpeg.)
The detailed decoding information is as follows:
Devices that successfully decode using the hardware decoder:
- Chromecast with Google TV (Android 12): OMX.amlogic.avc.decoder.awesome
- Pixel 8 Pro (Android 15): c2.exynos.h264.decoder
- Xiaomi Pad 7 Pro (Android 15): c2.qti.avc.decoder
- Hisense TV (Android 11): OMX.amlogic.avc.decoder.awesome2
Devices that cannot decode using the hardware decoder:
- Google TV Streamer (Android 14): c2.mtk.avc.decoder
- Pixel 4 XL (Android 13): c2.qti.avc.decoder
- Pixel 3 XL (Android 12): c2.qti.avc.decoder
I personally speculate whether this is related to the hardware and drivers of a specific device, and I hope to get further answers.
Expected result
The media plays successfully
Actual result
The screen keeps black, also without sound. On Google TV Streamer, the picture sometimes appears, but it is very choppy (one frame for tens of seconds) , and the rest of the time it is a black screen.
Media
1.ts in the zip file.
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.