Hardware accelerated decoding causes DTS(-HD) audio desynchronization
@rohitjoins is already working on this.
Since Mar 6, 2025.
- 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
- 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
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.