Skip to content

Trim gaps from mp4 playback - #1320

Merged
flyingmutant merged 1 commit into
cmus:masterfrom
gavtroy:gapless-mp4
Sep 8, 2024
Merged

flyingmutant merged 1 commit into
cmus:masterfrom
gavtroy:gapless-mp4

Conversation

@gavtroy

@gavtroy gavtroy commented Mar 6, 2024

Copy link
Copy Markdown
Collaborator

At least for me there can sometimes still be soft clicks between tracks that aren't there when playing back the externally decoded wavs, but the buffer looks okay and gapless mp3 has the same clicks so I guess it's an unrelated hitch in the player or on the output side. In any case this is a very mild artifact compared to what we had before.

Closes #1280.

@gavtroy

This comment was marked as outdated.

@gavtroy
gavtroy force-pushed the gapless-mp4 branch 2 times, most recently from e5da15c to 1246a5b Compare March 6, 2024 19:00
@gavtroy
gavtroy marked this pull request as draft March 12, 2024 20:58
@gavtroy
gavtroy marked this pull request as ready for review March 15, 2024 02:30

@pgaskin pgaskin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't really have a good way of testing this, but it compiles, and I can play a MP4. Haven't really reviewed the code.

pgaskin/cmus@2658824 (rpms)

@gavtroy

gavtroy commented May 18, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks. I don't have a messy collection good for finding potential problem tracks, but for reference the tracks I was using to see it work are gapless_m4a_tracks.zip

@pgaskin

pgaskin commented Sep 2, 2024

Copy link
Copy Markdown
Member

Have been running this for a while, and I don't see any problems with MP4s. Also tested with the provided gapless tracks. I don't know enough about AAC or MP4 to properly review this, but it seems fine.

@flyingmutant

@flyingmutant
flyingmutant merged commit 14dfd3f into cmus:master Sep 8, 2024
@flyingmutant

Copy link
Copy Markdown
Member

Thanks! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gapless playback with m4a(MPEG-4)

3 participants