androidx / androidx/media

Unable to play three specific videos

Open
#2,290 8 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Mar 31, 2025.

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

Description

Version

Media3 1.6.0

More version details

No response

Devices that reproduce the issue

Motorola Moto E2 LTE (Android 10)

Devices that do not reproduce the issue

Pixel 4a 5G (Android 14)

Reproducible in the demo app?

Yes

Reproduction steps

Modify media.exolist.json in the demo app, and add the following section/entry:

  {
    "name": "Mastodon samples",
    "samples": [
      {
        "name": "@stovis example",
        "uri": "https://cdn.fosstodon.org/media_attachments/files/114/211/099/336/417/018/original/1a6da5c3bbddf138.mp4"
      },
      {
        "name": "@pos_yo example",
        "uri": "https://social.hardlimit.com/system/media_attachments/files/114/041/449/599/940/774/original/dd26357a4cc7e664.mp4"
      },
      {
        "name": "@atareao example",
        "uri": "https://files.mastodon.social/media_attachments/files/112/530/912/659/948/728/original/4dbaa200dda380f2.mp4"
      }
    ]
  },
Expected result

All of the three videos play back correctly.

Actual result

For the 1st and the 3rd one: the app shows the following message: "Playback failed" on a black screen.

For the 2nd one: "Unable to instantiate decoder (…)" on a black screen.

Duration is recognized and displayed for all of them. And also, deactivating video tracks and leaving audio alone, they play and you can hear the audio track as expected.

1-@stovis.log
2-@pos_yo.log
3-@atareao.log

I'll try to find a way to clean bugreport zip from sensitive data before I could send it off. Meanwhile, I hope this logs are useful.

Media
  1. https://cdn.fosstodon.org/media_attachments/files/114/211/099/336/417/018/original/1a6da5c3bbddf138.mp4
  2. https://social.hardlimit.com/system/media_attachments/files/114/041/449/599/940/774/original/dd26357a4cc7e664.mp4
  3. https://files.mastodon.social/media_attachments/files/112/530/912/659/948/728/original/4dbaa200dda380f2.mp4
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.