androidx / androidx/media

Hardware accelerated decoding causes DTS(-HD) audio desynchronization

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

@rohitjoins is already working on this.

Since Mar 6, 2025.

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

Description

Version

Media3 1.4.0

More version details

No response

Devices that reproduce the issue

Amazon Fire TV Cube (3. Generation): FireOS 7.6.8.8

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps
  1. Play a DTS(-HD) file on the Fire TV Cube (3. Generation)
Expected result

Video playback with in-sync DTS audio and working passthrough

Actual result

When using Stremio with ExoPlayer on the Fire Cube 3rd Gen, DTS audio gradually goes out of sync with the video after a few minutes. Other audio formats work correctly. Disabling hardware acceleration fixes the sync issue but breaks audio passthrough. This results in my soundbar receiving only Multi-Channel PCM instead of Atmos/DTS, etc.. Changing the "tunneled playback" setting does not resolve the issue.
ExoPlayer/MediaPlayer does not seem to support DTS-HD. However, even standard DTS causes the same sync problem.

The only way to get DTS audio working correctly is by using Kodi. The Kodi developers implemented a workaround for the Fire Cube 3rd Gen. Could a similar fix be added to Stremio’s media player?
https://forum.kodi.tv/showthread.php?tid=376161

I understand that ExoPlayer generally relies on decoders provided by the device. The Fire Cube 3rd Gen supports DTS-HD passthrough in Kodi but not in ExoPlayer/MediaPlayer. Could you investigate whether DTS-HD support can be added for the cube 3?

Media

Any DTS(-HD) files

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.