Skip to content

MP3 Gapless issue #3183

Closed
Closed

Description

@Tolriq

Version

Media3 main branch

More version details

Can reproduce on main branch

Devices that reproduce the issue

All

Devices that do not reproduce the issue

N/A

Reproducible in the demo app?

Not tested

Reproduction steps

Play the 2 songs in a playlist.

Expected result

Should be fully gapless (and was previously)

Actual result

There's a small glitch between the files.

Logs shows

2026-04-03 22:03:52.921 Verbose ExoPlayer  Mp3Extractor - Data size mismatch between stream (33218028) and Xing frame (33217900), using Xing value.
2026-04-03 22:04:16.129 Verbose ExoPlayer  Mp3Extractor - Data size mismatch between stream (9268883) and Xing frame (9268755), using Xing value.

Some of the recent changes around that probably trigger this now.

Media

joni 0.zip

Bug Report

Activity

  1. self-assigned this
    on Apr 20, 2026
  2. icbaker commented on Apr 20, 2026

    @icbaker
    Collaborator

    and was previously

    At which version of media3 was the playback gapless?

  3. Tolriq commented on Apr 20, 2026

    @Tolriq
    ContributorAuthor

    Unfortunately the user don't know as always :( But I suppose 1.9 was working.
    From git history maybe f1cb4ab could cause this ?

  4. Tolriq commented on May 5, 2026

    @Tolriq
    ContributorAuthor

    So @icbaker after investigating a little a made a quick fix, I used Codex to review and after it's comment (subtracting delay/padding directly inside computeDurationUs(), is risky because it would inflate CBR bitrate math and change VBR Xing behavior too, so I would not send that upstream.) I used it to actually try to propose the proper fix #3198

  5. added 2 commits that reference this issue on May 6, 2026
    4ade053
    09b7ad2
  6. JannetGen commented on Jul 9, 2026

    @JannetGen
  7. Tolriq commented on Jul 9, 2026

    @Tolriq
    Author
  8. locked and limited conversation to collaborators on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions